public class OcrClient
extends com.tencentcloudapi.common.AbstractClient
Constructor and Description |
---|
OcrClient(com.tencentcloudapi.common.Credential credential,
String region) |
OcrClient(com.tencentcloudapi.common.Credential credential,
String region,
com.tencentcloudapi.common.profile.ClientProfile profile) |
Modifier and Type | Method and Description |
---|---|
BankCardOCRResponse |
BankCardOCR(BankCardOCRRequest req)
This API is used to detect and recognize key fields such as the card number, bank information, and expiration date on mainstream bank cards in Mainland China.
|
GeneralAccurateOCRResponse |
GeneralAccurateOCR(GeneralAccurateOCRRequest req)
This API is used to detect and recognize characters in an image.
|
GeneralBasicOCRResponse |
GeneralBasicOCR(GeneralBasicOCRRequest req)
This API is used to detect and recognize characters in an image in the following 20 languages: Chinese, English, Japanese, Korean, Spanish, French, German, Portuguese, Vietnamese, Malay, Russian, Italian, Dutch, Swedish, Finnish, Danish, Norwegian, Hungarian, Thai, and Arabic.
|
HKIDCardOCRResponse |
HKIDCardOCR(HKIDCardOCRRequest req)
This API is used to recognize key fields on the photo side of a Hong Kong (China) identity card, including name in Chinese, name in English, telecode for name, date of birth, gender, document symbol, date of the first issue, date of the last receipt, identity card number, and permanent residency attribute.
|
HmtResidentPermitOCRResponse |
HmtResidentPermitOCR(HmtResidentPermitOCRRequest req)
This API is used to recognize key fields on the front and back sides of a residence permit for Hong Kong, Macao, or Taiwan residents, including name, gender, date of birth, address, ID number, issuing authority, validity period, number of issues, and permit number.
|
IDCardOCRResponse |
IDCardOCR(IDCardOCRRequest req)
This API is used to recognize all fields on the front and back sides of a second-generation resident identity card for the Chinese mainland: name, gender, ethnicity, date of birth, domicile, identification number, issuing authority, and validity period, with a recognition accuracy of over 99%.
|
LicensePlateOCRResponse |
LicensePlateOCR(LicensePlateOCRRequest req)
This API is used to recognize a license plate attached to a motor vehicle in the Chinese mainland and return the regional code, license plate number, and license plate color.
|
MainlandPermitOCRResponse |
MainlandPermitOCR(MainlandPermitOCRRequest req)
This API is used to recognize all fields on the front of a mainland travel permit for Hong Kong, Macao, or Taiwan residents: name in Chinese, name in English, gender, date of birth, issuing authority, validity period, document number, place of issuance, number of issues, and document type.
|
MLIDCardOCRResponse |
MLIDCardOCR(MLIDCardOCRRequest req)
This API is used to recognize a Malaysian identity card, including identity card number, name, gender, and address.
|
MLIDPassportOCRResponse |
MLIDPassportOCR(MLIDPassportOCRRequest req)
This API is used to recognize a passport issued in Hong Kong/Macao/Taiwan (China) or other countries/regions.
|
PermitOCRResponse |
PermitOCR(PermitOCRRequest req)
This API is used to recognize the fields on an exit/entry permit (card) for traveling to and from Hong Kong, Macao, or Taiwan, including place of issuance, issuing authority, validity period, gender, date of birth, name in English, name in Chinese, and document number.
|
RecognizeGeneralInvoiceResponse |
RecognizeGeneralInvoice(RecognizeGeneralInvoiceRequest req)
This API is used to recognize various types of invoices or tickets in an image or PDF file.
|
RecognizeIndonesiaIDCardOCRResponse |
RecognizeIndonesiaIDCardOCR(RecognizeIndonesiaIDCardOCRRequest req)
This API is used to recognize an Indonesian identity card.
|
RecognizeKoreanDrivingLicenseOCRResponse |
RecognizeKoreanDrivingLicenseOCR(RecognizeKoreanDrivingLicenseOCRRequest req)
This API is used to recognize a South Korean driver's license.
|
RecognizeKoreanIDCardOCRResponse |
RecognizeKoreanIDCardOCR(RecognizeKoreanIDCardOCRRequest req)
This API is used to recognize a South Korean ID card.
|
RecognizePhilippinesDrivingLicenseOCRResponse |
RecognizePhilippinesDrivingLicenseOCR(RecognizePhilippinesDrivingLicenseOCRRequest req)
This API is used to recognize a Philippine driver's license.
|
RecognizePhilippinesSssIDOCRResponse |
RecognizePhilippinesSssIDOCR(RecognizePhilippinesSssIDOCRRequest req)
This API is used to recognize a Philippine SSSID/UMID card.
|
RecognizePhilippinesTinIDOCRResponse |
RecognizePhilippinesTinIDOCR(RecognizePhilippinesTinIDOCRRequest req)
This API is used to recognize a Philippine TIN ID card.
|
RecognizePhilippinesUMIDOCRResponse |
RecognizePhilippinesUMIDOCR(RecognizePhilippinesUMIDOCRRequest req)
This API is used to recognize a Philippine Unified Multi-Purpose ID (UMID) card.
|
RecognizePhilippinesVoteIDOCRResponse |
RecognizePhilippinesVoteIDOCR(RecognizePhilippinesVoteIDOCRRequest req)
This API is used to recognize a Philippine voters ID card.
|
RecognizeTableAccurateOCRResponse |
RecognizeTableAccurateOCR(RecognizeTableAccurateOCRRequest req)
This API is used to recognize regular tables, borderless tables, or multi-tables in images or PDF files containing Chinese and English texts.
|
RecognizeThaiIDCardOCRResponse |
RecognizeThaiIDCardOCR(RecognizeThaiIDCardOCRRequest req)
This API is used to recognize the fields on a Thai identity card, including name in Thai, name in English, address, date of birth, identification number, date of issue, and date of expiry.
|
SealOCRResponse |
SealOCR(SealOCRRequest req)
This API is used to recognize various types of seals, including invoice seals and finance seals.
|
SmartStructuralOCRV2Response |
SmartStructuralOCRV2(SmartStructuralOCRV2Request req)
This API is used to recognize fields from cards, documents, bills, forms, contracts, and other structured information.
|
TableOCRResponse |
TableOCR(TableOCRRequest req)
This API is used to detect and recognize Chinese and English forms in images.
|
VinOCRResponse |
VinOCR(VinOCRRequest req)
This API is used to recognize the vehicle identification number (VIN) in an image.
|
call, callOctetStream, getClientProfile, getCredential, getRegion, getRegionBreaker, internalRequest, internalRequest, internalRequestRaw, processResponseJson, processResponseSSE, retry, setClientProfile, setCredential, setRegion, setRegionBreaker
public OcrClient(com.tencentcloudapi.common.Credential credential, String region)
public OcrClient(com.tencentcloudapi.common.Credential credential, String region, com.tencentcloudapi.common.profile.ClientProfile profile)
public BankCardOCRResponse BankCardOCR(BankCardOCRRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req
- BankCardOCRRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public GeneralAccurateOCRResponse GeneralAccurateOCR(GeneralAccurateOCRRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req
- GeneralAccurateOCRRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public GeneralBasicOCRResponse GeneralBasicOCR(GeneralBasicOCRRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req
- GeneralBasicOCRRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public HKIDCardOCRResponse HKIDCardOCR(HKIDCardOCRRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req
- HKIDCardOCRRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public HmtResidentPermitOCRResponse HmtResidentPermitOCR(HmtResidentPermitOCRRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req
- HmtResidentPermitOCRRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public IDCardOCRResponse IDCardOCR(IDCardOCRRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
Capability | Description |
---|---|
Cropping | Crops the ID card photo (by removing extra edges outside the ID card and automatically correcting the shooting angle). |
Crops the profile photo (by automatically cutting out the face area in the ID card). | |
Warning | Warns about invalid ID card validity periods. |
Warns about incomplete ID card borders. | |
Warns about photocopied images. | |
Warns about spoofed images. | |
Warns about border and frame occlusions. | |
Warns about temporary ID cards. | |
Warns about photoshopped images. | |
Warns about blurry ID card images (blurriness can be determined based on the image quality score). |
req
- IDCardOCRRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public LicensePlateOCRResponse LicensePlateOCR(LicensePlateOCRRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req
- LicensePlateOCRRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public MLIDCardOCRResponse MLIDCardOCR(MLIDCardOCRRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req
- MLIDCardOCRRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public MLIDPassportOCRResponse MLIDPassportOCR(MLIDPassportOCRRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req
- MLIDPassportOCRRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public MainlandPermitOCRResponse MainlandPermitOCR(MainlandPermitOCRRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req
- MainlandPermitOCRRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public PermitOCRResponse PermitOCR(PermitOCRRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req
- PermitOCRRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public RecognizeGeneralInvoiceResponse RecognizeGeneralInvoice(RecognizeGeneralInvoiceRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
SubType | TypeDescription | Type |
---|---|---|
VatSpecialInvoice | Special VAT invoice | 3 |
VatCommonInvoice | General VAT invoice | 3 |
VatElectronicCommonInvoice | Electronic general VAT invoice | 3 |
VatElectronicSpecialInvoice | Electronic special VAT invoice | 3 |
VatElectronicInvoiceBlockchain | Blockchain electronic invoice | 3 |
VatElectronicInvoiceToll | Electronic general VAT invoice (toll) | 3 |
VatElectronicSpecialInvoiceFull | Electronic invoice (special) | 16 |
VatElectronicInvoiceFull | Electronic invoice (general) | 16 |
MotorVehicleSaleInvoice | Motor vehicle sales invoice | 12 |
UsedCarPurchaseInvoice | Used car invoice | 12 |
VatInvoiceRoll | General VAT invoice (roll) | 11 |
TaxiTicket | Taxi receipt | 0 |
QuotaInvoice | Quota invoice | 1 |
TrainTicket | Train ticket | 2 |
AirTransport | Itinerary/Receipt of e-ticket for air transportation | 5 |
MachinePrintedInvoice | General machine-printed invoice | 8 |
BusInvoice | Bus ticket | 9 |
ShippingInvoice | Ship ticket | 10 |
NonTaxIncomeGeneralBill | General receipt for non-tax revenue | 15 |
NonTaxIncomeElectronicBill | General payment voucher for non-tax revenue (electronic) | 15 |
TollInvoice | Toll receipt | 13 |
OtherInvoice | Other | -1 |
req
- RecognizeGeneralInvoiceRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public RecognizeIndonesiaIDCardOCRResponse RecognizeIndonesiaIDCardOCR(RecognizeIndonesiaIDCardOCRRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req
- RecognizeIndonesiaIDCardOCRRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public RecognizeKoreanDrivingLicenseOCRResponse RecognizeKoreanDrivingLicenseOCR(RecognizeKoreanDrivingLicenseOCRRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req
- RecognizeKoreanDrivingLicenseOCRRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public RecognizeKoreanIDCardOCRResponse RecognizeKoreanIDCardOCR(RecognizeKoreanIDCardOCRRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req
- RecognizeKoreanIDCardOCRRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public RecognizePhilippinesDrivingLicenseOCRResponse RecognizePhilippinesDrivingLicenseOCR(RecognizePhilippinesDrivingLicenseOCRRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req
- RecognizePhilippinesDrivingLicenseOCRRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public RecognizePhilippinesSssIDOCRResponse RecognizePhilippinesSssIDOCR(RecognizePhilippinesSssIDOCRRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req
- RecognizePhilippinesSssIDOCRRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public RecognizePhilippinesTinIDOCRResponse RecognizePhilippinesTinIDOCR(RecognizePhilippinesTinIDOCRRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req
- RecognizePhilippinesTinIDOCRRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public RecognizePhilippinesUMIDOCRResponse RecognizePhilippinesUMIDOCR(RecognizePhilippinesUMIDOCRRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req
- RecognizePhilippinesUMIDOCRRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public RecognizePhilippinesVoteIDOCRResponse RecognizePhilippinesVoteIDOCR(RecognizePhilippinesVoteIDOCRRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req
- RecognizePhilippinesVoteIDOCRRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public RecognizeTableAccurateOCRResponse RecognizeTableAccurateOCR(RecognizeTableAccurateOCRRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req
- RecognizeTableAccurateOCRRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public RecognizeThaiIDCardOCRResponse RecognizeThaiIDCardOCR(RecognizeThaiIDCardOCRRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req
- RecognizeThaiIDCardOCRRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public SealOCRResponse SealOCR(SealOCRRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req
- SealOCRRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public SmartStructuralOCRV2Response SmartStructuralOCRV2(SmartStructuralOCRV2Request req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req
- SmartStructuralOCRV2Requestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public TableOCRResponse TableOCR(TableOCRRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req
- TableOCRRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
public VinOCRResponse VinOCR(VinOCRRequest req) throws com.tencentcloudapi.common.exception.TencentCloudSDKException
req
- VinOCRRequestcom.tencentcloudapi.common.exception.TencentCloudSDKException
Copyright © 2023. All rights reserved.