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 |
---|---|
ArithmeticOCRResponse |
ArithmeticOCR(ArithmeticOCRRequest req)
本接口支持作业算式题目的自动识别,目前覆盖 K12 学力范围内的 14 种题型,包括加减乘除四则运算、分数四则运算、竖式四则运算、脱式计算等。
|
EnglishOCRResponse |
EnglishOCR(EnglishOCRRequest req)
本接口支持图像英文文字的检测和识别,返回文字框位置与文字内容。支持多场景、任意版面下的英文、字母、数字和常见字符的识别,同时覆盖英文印刷体和英文手写体识别。
|
GeneralAccurateOCRResponse |
GeneralAccurateOCR(GeneralAccurateOCRRequest req)
本接口支持图像整体文字的检测和识别,返回文字框位置与文字内容。相比通用印刷体识别接口,准确率和召回率更高。
|
GeneralBasicOCRResponse |
GeneralBasicOCR(GeneralBasicOCRRequest req)
本接口支持多场景、任意版面下整图文字的识别,包括中英文、字母、数字和日文、韩文的识别。应用场景包括:印刷文档识别、网络图片识别、广告图文字识别、街景店招识别、菜单识别、视频标题识别、头像文字识别等。
|
GeneralFastOCRResponse |
GeneralFastOCR(GeneralFastOCRRequest req)
本接口支持图片中整体文字的检测和识别,返回文字框位置与文字内容。相比通用印刷体识别接口,识别速度更快、支持的 QPS 更高。
|
IDCardOCRResponse |
IDCardOCR(IDCardOCRRequest req)
本接口支持二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限;具备身份证照片、人像照片的裁剪功能和翻拍件、复印件的识别告警功能。
|
TableOCRResponse |
TableOCR(TableOCRRequest req)
本接口支持图片内表格文档的检测和识别,返回每个单元格的文字内容,支持将识别结果保存为 Excel 格式。
|
VinOCRResponse |
VinOCR(VinOCRRequest req)
本接口支持图片内车辆识别代号(VIN)的检测和识别。
|
WaybillOCRResponse |
WaybillOCR(WaybillOCRRequest req)
本接口支持市面上主流版式电子运单的识别,包括收件人和寄件人的姓名、电话、地址以及运单号等字段。
|
call, 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 ArithmeticOCRResponse ArithmeticOCR(ArithmeticOCRRequest req) throws TencentCloudSDKException
req
- ArithmeticOCRRequestTencentCloudSDKException
public EnglishOCRResponse EnglishOCR(EnglishOCRRequest req) throws TencentCloudSDKException
req
- EnglishOCRRequestTencentCloudSDKException
public GeneralAccurateOCRResponse GeneralAccurateOCR(GeneralAccurateOCRRequest req) throws TencentCloudSDKException
req
- GeneralAccurateOCRRequestTencentCloudSDKException
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
public TableOCRResponse TableOCR(TableOCRRequest req) throws TencentCloudSDKException
req
- TableOCRRequestTencentCloudSDKException
public VinOCRResponse VinOCR(VinOCRRequest req) throws TencentCloudSDKException
req
- VinOCRRequestTencentCloudSDKException
public WaybillOCRResponse WaybillOCR(WaybillOCRRequest req) throws TencentCloudSDKException
req
- WaybillOCRRequestTencentCloudSDKException
Copyright © 2019. All rights reserved.