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等。
|
BusInvoiceOCRResponse |
BusInvoiceOCR(BusInvoiceOCRRequest req)
本接口支持识别公路汽车客票的发票代码、发票号码、日期、姓名、票价等字段。
|
CarInvoiceOCRResponse |
CarInvoiceOCR(CarInvoiceOCRRequest req)
本接口支持机动车销售统一发票和二手车销售统一发票的识别,包括发票号码、发票代码、合计金额、合计税额等二十多个字段。
|
DriverLicenseOCRResponse |
DriverLicenseOCR(DriverLicenseOCRRequest req)
本接口支持对驾驶证主页所有字段的自动定位与识别,包含证号、姓名、性别、国籍、住址、出生日期、初次领证日期、准驾车型、有效期限等。
|
DutyPaidProofOCRResponse |
DutyPaidProofOCR(DutyPaidProofOCRRequest req)
本接口支持对完税证明的税号、纳税人识别号、纳税人名称、金额合计大写、金额合计小写、填发日期、税务机关、填票人等关键字段的识别。
|
EnglishOCRResponse |
EnglishOCR(EnglishOCRRequest req)
本接口支持图像英文文字的检测和识别,返回文字框位置与文字内容。支持多场景、任意版面下的英文、字母、数字和常见字符的识别,同时覆盖英文印刷体和英文手写体识别。
|
FlightInvoiceOCRResponse |
FlightInvoiceOCR(FlightInvoiceOCRRequest req)
本接口支持机票行程单关键字段的识别,包括姓名、身份证件号码、航班号、票价 、合计、电子客票号码、填开日期等。
|
GeneralAccurateOCRResponse |
GeneralAccurateOCR(GeneralAccurateOCRRequest req)
本接口支持图像整体文字的检测和识别,返回文字框位置与文字内容。相比通用印刷体识别接口,准确率和召回率更高。
|
GeneralBasicOCRResponse |
GeneralBasicOCR(GeneralBasicOCRRequest req)
本接口支持多场景、任意版面下整图文字的识别。支持自动识别语言类型,同时支持自选语言种类(推荐),除中英文外,支持日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语等多种语言。应用场景包括:印刷文档识别、网络图片识别、广告图文字识别、街景店招识别、菜单识别、视频标题识别、头像文字识别等。
|
GeneralEfficientOCRResponse |
GeneralEfficientOCR(GeneralEfficientOCRRequest req)
本接口支持多场景、任意版面下整图文字的识别。相较于“通用印刷体识别”接口,精简版接口在准召率有一定损失的情况下,耗时更短。适用于对接口耗时较为敏感的客户。
|
GeneralFastOCRResponse |
GeneralFastOCR(GeneralFastOCRRequest req)
本接口支持图片中整体文字的检测和识别,返回文字框位置与文字内容。相比通用印刷体识别接口,识别速度更快、支持的 QPS 更高。
|
GeneralHandwritingOCRResponse |
GeneralHandwritingOCR(GeneralHandwritingOCRRequest req)
本接口支持图片内手写体文字的检测和识别,针对手写字体无规则、字迹潦草、模糊等特点进行了识别能力的增强。
|
IDCardOCRResponse |
IDCardOCR(IDCardOCRRequest req)
本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限;具备身份证照片、人像照片的裁剪功能和翻拍、PS、复印件告警功能,以及边框和框内遮挡告警、临时身份证告警和身份证有效期不合法告警等扩展功能。
|
InvoiceGeneralOCRResponse |
InvoiceGeneralOCR(InvoiceGeneralOCRRequest req)
本接口支持对通用机打发票的发票代码、发票号码、日期、购买方识别号、销售方识别号、校验码、小写金额等关键字段的识别。
|
LicensePlateOCRResponse |
LicensePlateOCR(LicensePlateOCRRequest req)
本接口支持对中国大陆机动车车牌的自动定位和识别,返回地域编号和车牌号信息。
|
MixedInvoiceDetectResponse |
MixedInvoiceDetect(MixedInvoiceDetectRequest req)
本接口支持多张、多类型票据的混合检测和自动分类,返回对应票据类型。目前已支持增值税发票、增值税发票(卷票)、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票、酒店账单、客运限额发票、购物小票、完税证明共15种票据。
|
MixedInvoiceOCRResponse |
MixedInvoiceOCR(MixedInvoiceOCRRequest req)
本接口支持多张、多类型票据的混合识别,系统自动实现分割、分类和识别。目前已支持增值税发票、增值税发票(卷票)、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共11种票据。
|
MLIDCardOCRResponse |
MLIDCardOCR(MLIDCardOCRRequest req)
本接口支持马来西亚身份证识别,识别字段包括身份证号、姓名、性别、地址;具备身份证人像照片的裁剪功能和翻拍、复印件告警功能。
本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
|
MLIDPassportOCRResponse |
MLIDPassportOCR(MLIDPassportOCRRequest req)
本接口支持马来西亚身护照识别,识别字段包括护照ID、姓名、出生日期、性别、有效期、发行国、国籍;具备护照人像照片的裁剪功能和翻拍、复印件告警功能。
本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
|
PassportOCRResponse |
PassportOCR(PassportOCRRequest req)
本接口支持中国大陆护照、中国香港护照、泰国护照及其他国外护照个人资料页多个字段的检测与识别。其中中国大陆居民护照识别,已支持字段包括英文姓名、中文姓名、国家码、护照号、出生地、出生日期、国籍英文、性别英文、有效期、签发地点英文、签发日期、持证人签名、护照机读码(MRZ码)等。中国香港护照、泰国护照及其他国外护照识别,已支持字段包括英文姓名、国籍、签发日期、性别、护照号码等。
|
PermitOCRResponse |
PermitOCR(PermitOCRRequest req)
本接口支持对卡式港澳台通行证的识别,包括签发地点、签发机关、有效期限、性别、出生日期、英文姓名、姓名、证件号等字段。
|
QuotaInvoiceOCRResponse |
QuotaInvoiceOCR(QuotaInvoiceOCRRequest req)
本接口支持定额发票的发票号码、发票代码及金额等关键字段的识别。
|
ShipInvoiceOCRResponse |
ShipInvoiceOCR(ShipInvoiceOCRRequest req)
本接口支持识别轮船票的发票代码、发票号码、日期、姓名、票价等字段。
|
TableOCRResponse |
TableOCR(TableOCRRequest req)
本接口支持图片内表格文档的检测和识别,返回每个单元格的文字内容,支持将识别结果保存为 Excel 格式。
|
TaxiInvoiceOCRResponse |
TaxiInvoiceOCR(TaxiInvoiceOCRRequest req)
本接口支持出租车发票关键字段的识别,包括发票号码、发票代码、金额、日期等字段。
|
TextDetectResponse |
TextDetect(TextDetectRequest req)
本接口通过检测图片中的文字信息特征,快速判断图片中有无文字并返回判断结果,帮助用户过滤无文字的图片。
|
TollInvoiceOCRResponse |
TollInvoiceOCR(TollInvoiceOCRRequest req)
本接口支持对过路过桥费发票的发票代码、发票号码、日期、小写金额等关键字段的识别。
|
TrainTicketOCRResponse |
TrainTicketOCR(TrainTicketOCRRequest req)
本接口支持火车票全字段的识别,包括编号、票价、姓名、座位号、出发时间、出发站、到达站、车次、席别等。
|
VatInvoiceOCRResponse |
VatInvoiceOCR(VatInvoiceOCRRequest req)
本接口支持增值税专用发票、增值税普通发票、增值税电子发票全字段的内容检测和识别,包括发票代码、发票号码、开票日期、合计金额、校验码、税率、合计税额、价税合计、购买方识别号、复核、销售方识别号、开票人、密码区1、密码区2、密码区3、密码区4、发票名称、购买方名称、销售方名称、服务名称、备注、规格型号、数量、单价、金额、税额、收款人等字段。
|
VatRollInvoiceOCRResponse |
VatRollInvoiceOCR(VatRollInvoiceOCRRequest req)
本接口支持对增值税发票(卷票)的发票代码、发票号码、日期、校验码、合计金额(小写)等关键字段的识别。
|
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 BusInvoiceOCRResponse BusInvoiceOCR(BusInvoiceOCRRequest req) throws TencentCloudSDKException
req
- BusInvoiceOCRRequestTencentCloudSDKException
public BusinessCardOCRResponse BusinessCardOCR(BusinessCardOCRRequest req) throws TencentCloudSDKException
req
- BusinessCardOCRRequestTencentCloudSDKException
public CarInvoiceOCRResponse CarInvoiceOCR(CarInvoiceOCRRequest req) throws TencentCloudSDKException
req
- CarInvoiceOCRRequestTencentCloudSDKException
public DriverLicenseOCRResponse DriverLicenseOCR(DriverLicenseOCRRequest req) throws TencentCloudSDKException
req
- DriverLicenseOCRRequestTencentCloudSDKException
public DutyPaidProofOCRResponse DutyPaidProofOCR(DutyPaidProofOCRRequest req) throws TencentCloudSDKException
req
- DutyPaidProofOCRRequestTencentCloudSDKException
public EnglishOCRResponse EnglishOCR(EnglishOCRRequest req) throws TencentCloudSDKException
req
- EnglishOCRRequestTencentCloudSDKException
public FlightInvoiceOCRResponse FlightInvoiceOCR(FlightInvoiceOCRRequest req) throws TencentCloudSDKException
req
- FlightInvoiceOCRRequestTencentCloudSDKException
public GeneralAccurateOCRResponse GeneralAccurateOCR(GeneralAccurateOCRRequest req) throws TencentCloudSDKException
req
- GeneralAccurateOCRRequestTencentCloudSDKException
public GeneralBasicOCRResponse GeneralBasicOCR(GeneralBasicOCRRequest req) throws TencentCloudSDKException
req
- GeneralBasicOCRRequestTencentCloudSDKException
public GeneralEfficientOCRResponse GeneralEfficientOCR(GeneralEfficientOCRRequest req) throws TencentCloudSDKException
req
- GeneralEfficientOCRRequestTencentCloudSDKException
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 InvoiceGeneralOCRResponse InvoiceGeneralOCR(InvoiceGeneralOCRRequest req) throws TencentCloudSDKException
req
- InvoiceGeneralOCRRequestTencentCloudSDKException
public LicensePlateOCRResponse LicensePlateOCR(LicensePlateOCRRequest req) throws TencentCloudSDKException
req
- LicensePlateOCRRequestTencentCloudSDKException
public MLIDCardOCRResponse MLIDCardOCR(MLIDCardOCRRequest req) throws TencentCloudSDKException
req
- MLIDCardOCRRequestTencentCloudSDKException
public MLIDPassportOCRResponse MLIDPassportOCR(MLIDPassportOCRRequest req) throws TencentCloudSDKException
req
- MLIDPassportOCRRequestTencentCloudSDKException
public MixedInvoiceDetectResponse MixedInvoiceDetect(MixedInvoiceDetectRequest req) throws TencentCloudSDKException
req
- MixedInvoiceDetectRequestTencentCloudSDKException
public MixedInvoiceOCRResponse MixedInvoiceOCR(MixedInvoiceOCRRequest req) throws TencentCloudSDKException
req
- MixedInvoiceOCRRequestTencentCloudSDKException
public PassportOCRResponse PassportOCR(PassportOCRRequest req) throws TencentCloudSDKException
req
- PassportOCRRequestTencentCloudSDKException
public PermitOCRResponse PermitOCR(PermitOCRRequest req) throws TencentCloudSDKException
req
- PermitOCRRequestTencentCloudSDKException
public QuotaInvoiceOCRResponse QuotaInvoiceOCR(QuotaInvoiceOCRRequest req) throws TencentCloudSDKException
req
- QuotaInvoiceOCRRequestTencentCloudSDKException
public ShipInvoiceOCRResponse ShipInvoiceOCR(ShipInvoiceOCRRequest req) throws TencentCloudSDKException
req
- ShipInvoiceOCRRequestTencentCloudSDKException
public TableOCRResponse TableOCR(TableOCRRequest req) throws TencentCloudSDKException
req
- TableOCRRequestTencentCloudSDKException
public TaxiInvoiceOCRResponse TaxiInvoiceOCR(TaxiInvoiceOCRRequest req) throws TencentCloudSDKException
req
- TaxiInvoiceOCRRequestTencentCloudSDKException
public TextDetectResponse TextDetect(TextDetectRequest req) throws TencentCloudSDKException
req
- TextDetectRequestTencentCloudSDKException
public TollInvoiceOCRResponse TollInvoiceOCR(TollInvoiceOCRRequest req) throws TencentCloudSDKException
req
- TollInvoiceOCRRequestTencentCloudSDKException
public TrainTicketOCRResponse TrainTicketOCR(TrainTicketOCRRequest req) throws TencentCloudSDKException
req
- TrainTicketOCRRequestTencentCloudSDKException
public VatInvoiceOCRResponse VatInvoiceOCR(VatInvoiceOCRRequest req) throws TencentCloudSDKException
req
- VatInvoiceOCRRequestTencentCloudSDKException
public VatRollInvoiceOCRResponse VatRollInvoiceOCR(VatRollInvoiceOCRRequest req) throws TencentCloudSDKException
req
- VatRollInvoiceOCRRequestTencentCloudSDKException
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.