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 种题型,包括加减乘除四则运算、分数四则运算、竖式四则运算、脱式计算等。
|
BankCardOCRResponse |
BankCardOCR(BankCardOCRRequest req)
本接口支持对中国大陆主流银行卡的卡号、银行信息、有效期等关键字段的检测与识别。
|
BizLicenseOCRResponse |
BizLicenseOCR(BizLicenseOCRRequest req)
本接口支持快速精准识别营业执照上的字段,包括注册号、公司名称、经营场所、主体类型、法定代表人、注册资金、组成形式、成立日期、营业期限和经营范围等字段。
|
BusinessCardOCRResponse |
BusinessCardOCR(BusinessCardOCRRequest req)
本接口支持名片各字段的自动定位与识别,包含姓名、电话、手机号、邮箱、公司、部门、职位、网址、地址、QQ、微信、MSN等。
|
DriverLicenseOCRResponse |
DriverLicenseOCR(DriverLicenseOCRRequest req)
本接口支持对驾驶证主页所有字段的自动定位与识别,包含证号、姓名、性别、国籍、住址、出生日期、初次领证日期、准驾车型、有效期限等。
|
EnglishOCRResponse |
EnglishOCR(EnglishOCRRequest req)
本接口支持图像英文文字的检测和识别,返回文字框位置与文字内容。支持多场景、任意版面下的英文、字母、数字和常见字符的识别,同时覆盖英文印刷体和英文手写体识别。
|
GeneralAccurateOCRResponse |
GeneralAccurateOCR(GeneralAccurateOCRRequest req)
本接口支持图像整体文字的检测和识别,返回文字框位置与文字内容。相比通用印刷体识别接口,准确率和召回率更高。
|
GeneralBasicOCRResponse |
GeneralBasicOCR(GeneralBasicOCRRequest req)
本接口支持多场景、任意版面下整图文字的识别。支持自动识别语言类型,同时支持自选语言种类(推荐),除中英文外,支持日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语等多种语言。应用场景包括:印刷文档识别、网络图片识别、广告图文字识别、街景店招识别、菜单识别、视频标题识别、头像文字识别等。
|
GeneralFastOCRResponse |
GeneralFastOCR(GeneralFastOCRRequest req)
本接口支持图片中整体文字的检测和识别,返回文字框位置与文字内容。相比通用印刷体识别接口,识别速度更快、支持的 QPS 更高。
|
GeneralHandwritingOCRResponse |
GeneralHandwritingOCR(GeneralHandwritingOCRRequest req)
本接口支持图片内手写体文字的检测和识别,针对手写字体无规则、字迹潦草、模糊等特点进行了识别能力的增强。
|
IDCardOCRResponse |
IDCardOCR(IDCardOCRRequest req)
本接口支持二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限;具备身份证照片、人像照片的裁剪功能和翻拍件、复印件的识别告警功能。
|
LicensePlateOCRResponse |
LicensePlateOCR(LicensePlateOCRRequest req)
本接口支持对中国大陆机动车车牌的自动定位和识别,返回地域编号和车牌号信息。
|
TableOCRResponse |
TableOCR(TableOCRRequest req)
本接口支持图片内表格文档的检测和识别,返回每个单元格的文字内容,支持将识别结果保存为 Excel 格式。
|
VatInvoiceOCRResponse |
VatInvoiceOCR(VatInvoiceOCRRequest req)
本接口支持增值税专用发票、增值税普通发票、增值税电子发票全字段的内容检测和识别,包括发票代码、发票号码、开票日期、合计金额、校验码、税率、合计税额、价税合计、购买方识别号、复核、销售方识别号、开票人、密码区1、密码区2、密码区3、密码区4、发票名称、购买方名称、销售方名称、服务名称、备注、规格型号、数量、单价、金额、税额、收款人等字段。
|
VehicleLicenseOCRResponse |
VehicleLicenseOCR(VehicleLicenseOCRRequest req)
本接口支持行驶证主页和副页所有字段的自动定位与识别,包含车牌号码、车辆类型、所有人、住址、使用性质、品牌型号、车辆识别代码、发动机号、注册日期、发证日期等。
|
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 BankCardOCRResponse BankCardOCR(BankCardOCRRequest req) throws TencentCloudSDKException
req
- BankCardOCRRequestTencentCloudSDKException
public BizLicenseOCRResponse BizLicenseOCR(BizLicenseOCRRequest req) throws TencentCloudSDKException
req
- BizLicenseOCRRequestTencentCloudSDKException
public BusinessCardOCRResponse BusinessCardOCR(BusinessCardOCRRequest req) throws TencentCloudSDKException
req
- BusinessCardOCRRequestTencentCloudSDKException
public DriverLicenseOCRResponse DriverLicenseOCR(DriverLicenseOCRRequest req) throws TencentCloudSDKException
req
- DriverLicenseOCRRequestTencentCloudSDKException
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 GeneralHandwritingOCRResponse GeneralHandwritingOCR(GeneralHandwritingOCRRequest req) throws TencentCloudSDKException
req
- GeneralHandwritingOCRRequestTencentCloudSDKException
public IDCardOCRResponse IDCardOCR(IDCardOCRRequest req) throws TencentCloudSDKException
req
- IDCardOCRRequestTencentCloudSDKException
public LicensePlateOCRResponse LicensePlateOCR(LicensePlateOCRRequest req) throws TencentCloudSDKException
req
- LicensePlateOCRRequestTencentCloudSDKException
public TableOCRResponse TableOCR(TableOCRRequest req) throws TencentCloudSDKException
req
- TableOCRRequestTencentCloudSDKException
public VatInvoiceOCRResponse VatInvoiceOCR(VatInvoiceOCRRequest req) throws TencentCloudSDKException
req
- VatInvoiceOCRRequestTencentCloudSDKException
public VehicleLicenseOCRResponse VehicleLicenseOCR(VehicleLicenseOCRRequest req) throws TencentCloudSDKException
req
- VehicleLicenseOCRRequestTencentCloudSDKException
public VinOCRResponse VinOCR(VinOCRRequest req) throws TencentCloudSDKException
req
- VinOCRRequestTencentCloudSDKException
public WaybillOCRResponse WaybillOCR(WaybillOCRRequest req) throws TencentCloudSDKException
req
- WaybillOCRRequestTencentCloudSDKException
Copyright © 2019. All rights reserved.