public class OcrClient extends AbstractClient
gson, HTTP_RSP_OK, SDK_VERSION
Constructor and Description |
---|
OcrClient(Credential credential,
String region)
构造client
|
OcrClient(Credential credential,
String region,
ClientProfile profile)
构造client
|
Modifier and Type | Method and Description |
---|---|
GeneralBasicOCRResponse |
GeneralBasicOCR(GeneralBasicOCRRequest req)
通用印刷体识别接口用于提供图像整体文字的检测和识别服务,返回文字框位置与文字内容。支持多场景、任意版面下整图文字的识别,以及中英文、字母、数字和日文、韩文的识别。应用场景包括:印刷文档识别、网络图片识别、广告图文字识别、街景店招识别、菜单识别、视频标题识别、头像文字识别等。
|
GeneralFastOCRResponse |
GeneralFastOCR(GeneralFastOCRRequest req)
通用印刷体识别(高速版)接口用于提供图像整体文字的检测和识别服务,返回文字框位置与文字内容。相比通用印刷体识别接口,识别速度更快、支持的QPS更高。
|
IDCardOCRResponse |
IDCardOCR(IDCardOCRRequest req)
身份证识别接口支持二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限;具备身份证照片、人像照片的裁剪功能和翻拍件、复印件的识别告警功能。应用场景包括:银行开户、用户注册、人脸核身等各种身份证信息有效性核验场景。
|
getClientProfile, getCredential, getRegion, internalRequest, setClientProfile, setCredential, setRegion
public OcrClient(Credential credential, String region)
credential
- 认证信息实例region
- 产品地域public OcrClient(Credential credential, String region, ClientProfile profile)
credential
- 认证信息实例region
- 产品地域profile
- 配置实例public GeneralBasicOCRResponse GeneralBasicOCR(GeneralBasicOCRRequest req) throws TencentCloudSDKException
req
- GeneralBasicOCRRequestTencentCloudSDKException
public GeneralFastOCRResponse GeneralFastOCR(GeneralFastOCRRequest req) throws TencentCloudSDKException
req
- GeneralFastOCRRequestTencentCloudSDKException
public IDCardOCRResponse IDCardOCR(IDCardOCRRequest req) throws TencentCloudSDKException
req
- IDCardOCRRequestTencentCloudSDKException
Copyright © 2019. All rights reserved.