Documentation ¶
Index ¶
- func GenReqDefForRecognizeAutoClassification() *def.HttpRequestDef
- func GenReqDefForRecognizeBankcard() *def.HttpRequestDef
- func GenReqDefForRecognizeBusinessCard() *def.HttpRequestDef
- func GenReqDefForRecognizeBusinessLicense() *def.HttpRequestDef
- func GenReqDefForRecognizeChileIdCard() *def.HttpRequestDef
- func GenReqDefForRecognizeDriverLicense() *def.HttpRequestDef
- func GenReqDefForRecognizeFinancialStatement() *def.HttpRequestDef
- func GenReqDefForRecognizeFlightItinerary() *def.HttpRequestDef
- func GenReqDefForRecognizeGeneralTable() *def.HttpRequestDef
- func GenReqDefForRecognizeGeneralText() *def.HttpRequestDef
- func GenReqDefForRecognizeHandwriting() *def.HttpRequestDef
- func GenReqDefForRecognizeHealthCode() *def.HttpRequestDef
- func GenReqDefForRecognizeIdCard() *def.HttpRequestDef
- func GenReqDefForRecognizeInsurancePolicy() *def.HttpRequestDef
- func GenReqDefForRecognizeInvoiceVerification() *def.HttpRequestDef
- func GenReqDefForRecognizeLicensePlate() *def.HttpRequestDef
- func GenReqDefForRecognizeMvsInvoice() *def.HttpRequestDef
- func GenReqDefForRecognizeMyanmarDriverLicense() *def.HttpRequestDef
- func GenReqDefForRecognizeMyanmarIdcard() *def.HttpRequestDef
- func GenReqDefForRecognizePassport() *def.HttpRequestDef
- func GenReqDefForRecognizeQualificationCertificate() *def.HttpRequestDef
- func GenReqDefForRecognizeQuotaInvoice() *def.HttpRequestDef
- func GenReqDefForRecognizeTaxiInvoice() *def.HttpRequestDef
- func GenReqDefForRecognizeThailandIdcard() *def.HttpRequestDef
- func GenReqDefForRecognizeThailandLicensePlate() *def.HttpRequestDef
- func GenReqDefForRecognizeTollInvoice() *def.HttpRequestDef
- func GenReqDefForRecognizeTrainTicket() *def.HttpRequestDef
- func GenReqDefForRecognizeTransportationLicense() *def.HttpRequestDef
- func GenReqDefForRecognizeVatInvoice() *def.HttpRequestDef
- func GenReqDefForRecognizeVehicleLicense() *def.HttpRequestDef
- func GenReqDefForRecognizeVin() *def.HttpRequestDef
- func GenReqDefForRecognizeWaybillElectronic() *def.HttpRequestDef
- func GenReqDefForRecognizeWebImage() *def.HttpRequestDef
- func OcrClientBuilder() *http_client.HcHttpClientBuilder
- type OcrClient
- func (c *OcrClient) RecognizeAutoClassification(request *model.RecognizeAutoClassificationRequest) (*model.RecognizeAutoClassificationResponse, error)
- func (c *OcrClient) RecognizeBankcard(request *model.RecognizeBankcardRequest) (*model.RecognizeBankcardResponse, error)
- func (c *OcrClient) RecognizeBusinessCard(request *model.RecognizeBusinessCardRequest) (*model.RecognizeBusinessCardResponse, error)
- func (c *OcrClient) RecognizeBusinessLicense(request *model.RecognizeBusinessLicenseRequest) (*model.RecognizeBusinessLicenseResponse, error)
- func (c *OcrClient) RecognizeChileIdCard(request *model.RecognizeChileIdCardRequest) (*model.RecognizeChileIdCardResponse, error)
- func (c *OcrClient) RecognizeDriverLicense(request *model.RecognizeDriverLicenseRequest) (*model.RecognizeDriverLicenseResponse, error)
- func (c *OcrClient) RecognizeFinancialStatement(request *model.RecognizeFinancialStatementRequest) (*model.RecognizeFinancialStatementResponse, error)
- func (c *OcrClient) RecognizeFlightItinerary(request *model.RecognizeFlightItineraryRequest) (*model.RecognizeFlightItineraryResponse, error)
- func (c *OcrClient) RecognizeGeneralTable(request *model.RecognizeGeneralTableRequest) (*model.RecognizeGeneralTableResponse, error)
- func (c *OcrClient) RecognizeGeneralText(request *model.RecognizeGeneralTextRequest) (*model.RecognizeGeneralTextResponse, error)
- func (c *OcrClient) RecognizeHandwriting(request *model.RecognizeHandwritingRequest) (*model.RecognizeHandwritingResponse, error)
- func (c *OcrClient) RecognizeHealthCode(request *model.RecognizeHealthCodeRequest) (*model.RecognizeHealthCodeResponse, error)
- func (c *OcrClient) RecognizeIdCard(request *model.RecognizeIdCardRequest) (*model.RecognizeIdCardResponse, error)
- func (c *OcrClient) RecognizeInsurancePolicy(request *model.RecognizeInsurancePolicyRequest) (*model.RecognizeInsurancePolicyResponse, error)
- func (c *OcrClient) RecognizeInvoiceVerification(request *model.RecognizeInvoiceVerificationRequest) (*model.RecognizeInvoiceVerificationResponse, error)
- func (c *OcrClient) RecognizeLicensePlate(request *model.RecognizeLicensePlateRequest) (*model.RecognizeLicensePlateResponse, error)
- func (c *OcrClient) RecognizeMvsInvoice(request *model.RecognizeMvsInvoiceRequest) (*model.RecognizeMvsInvoiceResponse, error)
- func (c *OcrClient) RecognizeMyanmarDriverLicense(request *model.RecognizeMyanmarDriverLicenseRequest) (*model.RecognizeMyanmarDriverLicenseResponse, error)
- func (c *OcrClient) RecognizeMyanmarIdcard(request *model.RecognizeMyanmarIdcardRequest) (*model.RecognizeMyanmarIdcardResponse, error)
- func (c *OcrClient) RecognizePassport(request *model.RecognizePassportRequest) (*model.RecognizePassportResponse, error)
- func (c *OcrClient) RecognizeQualificationCertificate(request *model.RecognizeQualificationCertificateRequest) (*model.RecognizeQualificationCertificateResponse, error)
- func (c *OcrClient) RecognizeQuotaInvoice(request *model.RecognizeQuotaInvoiceRequest) (*model.RecognizeQuotaInvoiceResponse, error)
- func (c *OcrClient) RecognizeTaxiInvoice(request *model.RecognizeTaxiInvoiceRequest) (*model.RecognizeTaxiInvoiceResponse, error)
- func (c *OcrClient) RecognizeThailandIdcard(request *model.RecognizeThailandIdcardRequest) (*model.RecognizeThailandIdcardResponse, error)
- func (c *OcrClient) RecognizeThailandLicensePlate(request *model.RecognizeThailandLicensePlateRequest) (*model.RecognizeThailandLicensePlateResponse, error)
- func (c *OcrClient) RecognizeTollInvoice(request *model.RecognizeTollInvoiceRequest) (*model.RecognizeTollInvoiceResponse, error)
- func (c *OcrClient) RecognizeTrainTicket(request *model.RecognizeTrainTicketRequest) (*model.RecognizeTrainTicketResponse, error)
- func (c *OcrClient) RecognizeTransportationLicense(request *model.RecognizeTransportationLicenseRequest) (*model.RecognizeTransportationLicenseResponse, error)
- func (c *OcrClient) RecognizeVatInvoice(request *model.RecognizeVatInvoiceRequest) (*model.RecognizeVatInvoiceResponse, error)
- func (c *OcrClient) RecognizeVehicleLicense(request *model.RecognizeVehicleLicenseRequest) (*model.RecognizeVehicleLicenseResponse, error)
- func (c *OcrClient) RecognizeVin(request *model.RecognizeVinRequest) (*model.RecognizeVinResponse, error)
- func (c *OcrClient) RecognizeWaybillElectronic(request *model.RecognizeWaybillElectronicRequest) (*model.RecognizeWaybillElectronicResponse, error)
- func (c *OcrClient) RecognizeWebImage(request *model.RecognizeWebImageRequest) (*model.RecognizeWebImageResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenReqDefForRecognizeAutoClassification ¶
func GenReqDefForRecognizeAutoClassification() *def.HttpRequestDef
func GenReqDefForRecognizeBankcard ¶
func GenReqDefForRecognizeBankcard() *def.HttpRequestDef
func GenReqDefForRecognizeBusinessCard ¶
func GenReqDefForRecognizeBusinessCard() *def.HttpRequestDef
func GenReqDefForRecognizeBusinessLicense ¶
func GenReqDefForRecognizeBusinessLicense() *def.HttpRequestDef
func GenReqDefForRecognizeChileIdCard ¶ added in v0.0.72
func GenReqDefForRecognizeChileIdCard() *def.HttpRequestDef
func GenReqDefForRecognizeDriverLicense ¶
func GenReqDefForRecognizeDriverLicense() *def.HttpRequestDef
func GenReqDefForRecognizeFinancialStatement ¶ added in v0.0.67
func GenReqDefForRecognizeFinancialStatement() *def.HttpRequestDef
func GenReqDefForRecognizeFlightItinerary ¶
func GenReqDefForRecognizeFlightItinerary() *def.HttpRequestDef
func GenReqDefForRecognizeGeneralTable ¶
func GenReqDefForRecognizeGeneralTable() *def.HttpRequestDef
func GenReqDefForRecognizeGeneralText ¶
func GenReqDefForRecognizeGeneralText() *def.HttpRequestDef
func GenReqDefForRecognizeHandwriting ¶
func GenReqDefForRecognizeHandwriting() *def.HttpRequestDef
func GenReqDefForRecognizeHealthCode ¶ added in v0.0.88
func GenReqDefForRecognizeHealthCode() *def.HttpRequestDef
func GenReqDefForRecognizeIdCard ¶
func GenReqDefForRecognizeIdCard() *def.HttpRequestDef
func GenReqDefForRecognizeInsurancePolicy ¶ added in v0.0.67
func GenReqDefForRecognizeInsurancePolicy() *def.HttpRequestDef
func GenReqDefForRecognizeInvoiceVerification ¶ added in v0.0.59
func GenReqDefForRecognizeInvoiceVerification() *def.HttpRequestDef
func GenReqDefForRecognizeLicensePlate ¶
func GenReqDefForRecognizeLicensePlate() *def.HttpRequestDef
func GenReqDefForRecognizeMvsInvoice ¶
func GenReqDefForRecognizeMvsInvoice() *def.HttpRequestDef
func GenReqDefForRecognizeMyanmarDriverLicense ¶ added in v0.0.72
func GenReqDefForRecognizeMyanmarDriverLicense() *def.HttpRequestDef
func GenReqDefForRecognizeMyanmarIdcard ¶ added in v0.0.72
func GenReqDefForRecognizeMyanmarIdcard() *def.HttpRequestDef
func GenReqDefForRecognizePassport ¶
func GenReqDefForRecognizePassport() *def.HttpRequestDef
func GenReqDefForRecognizeQualificationCertificate ¶ added in v0.0.67
func GenReqDefForRecognizeQualificationCertificate() *def.HttpRequestDef
func GenReqDefForRecognizeQuotaInvoice ¶
func GenReqDefForRecognizeQuotaInvoice() *def.HttpRequestDef
func GenReqDefForRecognizeTaxiInvoice ¶
func GenReqDefForRecognizeTaxiInvoice() *def.HttpRequestDef
func GenReqDefForRecognizeThailandIdcard ¶ added in v0.0.72
func GenReqDefForRecognizeThailandIdcard() *def.HttpRequestDef
func GenReqDefForRecognizeThailandLicensePlate ¶ added in v0.0.72
func GenReqDefForRecognizeThailandLicensePlate() *def.HttpRequestDef
func GenReqDefForRecognizeTollInvoice ¶
func GenReqDefForRecognizeTollInvoice() *def.HttpRequestDef
func GenReqDefForRecognizeTrainTicket ¶
func GenReqDefForRecognizeTrainTicket() *def.HttpRequestDef
func GenReqDefForRecognizeTransportationLicense ¶
func GenReqDefForRecognizeTransportationLicense() *def.HttpRequestDef
func GenReqDefForRecognizeVatInvoice ¶
func GenReqDefForRecognizeVatInvoice() *def.HttpRequestDef
func GenReqDefForRecognizeVehicleLicense ¶
func GenReqDefForRecognizeVehicleLicense() *def.HttpRequestDef
func GenReqDefForRecognizeVin ¶
func GenReqDefForRecognizeVin() *def.HttpRequestDef
func GenReqDefForRecognizeWaybillElectronic ¶ added in v0.0.83
func GenReqDefForRecognizeWaybillElectronic() *def.HttpRequestDef
func GenReqDefForRecognizeWebImage ¶
func GenReqDefForRecognizeWebImage() *def.HttpRequestDef
func OcrClientBuilder ¶
func OcrClientBuilder() *http_client.HcHttpClientBuilder
Types ¶
type OcrClient ¶
type OcrClient struct {
HcClient *http_client.HcHttpClient
}
func NewOcrClient ¶
func NewOcrClient(hcClient *http_client.HcHttpClient) *OcrClient
func (*OcrClient) RecognizeAutoClassification ¶
func (c *OcrClient) RecognizeAutoClassification(request *model.RecognizeAutoClassificationRequest) (*model.RecognizeAutoClassificationResponse, error)
智能分类识别
检测定位图片上指定要识别的票证(票据、证件或其他文字载体),并对其进行结构化识别。接口以列表形式返回图片上要识别票证的位置坐标、结构化识别的内容以及对应的类别。
计费次数说明:
只对识别成功的票证进行计费,识别失败的票证不计费。例如图片中包含三张票证,有两张识别成功,一张识别失败,此时接口计费两次。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeBankcard ¶
func (c *OcrClient) RecognizeBankcard(request *model.RecognizeBankcardRequest) (*model.RecognizeBankcardResponse, error)
银行卡识别
识别银行卡上的关键文字信息,并返回识别的结构化结果。
说明:
如果图片中包含多张卡证票据,请调用[智能分类识别](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=OCR&api=AutoClassification)服务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeBusinessCard ¶
func (c *OcrClient) RecognizeBusinessCard(request *model.RecognizeBusinessCardRequest) (*model.RecognizeBusinessCardResponse, error)
名片识别
识别名片图片上的文字信息,并返回识别的结构化结果。支持对多种不同版式名片进行结构化信息提取。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeBusinessLicense ¶
func (c *OcrClient) RecognizeBusinessLicense(request *model.RecognizeBusinessLicenseRequest) (*model.RecognizeBusinessLicenseResponse, error)
营业执照识别
识别营业执照首页图片中的文字信息,并返回识别的结构化结果。
说明:
如果图片中包含多张卡证票据,请调用[智能分类识别](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=OCR&api=AutoClassification)服务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeChileIdCard ¶ added in v0.0.72
func (c *OcrClient) RecognizeChileIdCard(request *model.RecognizeChileIdCardRequest) (*model.RecognizeChileIdCardResponse, error)
智利身份证识别
识别智利身份证图片中的文字内容,并返回识别的结构化结果。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeDriverLicense ¶
func (c *OcrClient) RecognizeDriverLicense(request *model.RecognizeDriverLicenseRequest) (*model.RecognizeDriverLicenseResponse, error)
驾驶证识别
识别用户上传的驾驶证图片(或者用户提供的华为云上OBS的驾驶证图片文件的URL)中主页与副页的文字内容,并将识别的结果返回给用户。
说明:
如果图片中包含多张卡证票据,请调用智能分类识别服务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeFinancialStatement ¶ added in v0.0.67
func (c *OcrClient) RecognizeFinancialStatement(request *model.RecognizeFinancialStatementRequest) (*model.RecognizeFinancialStatementResponse, error)
财务报表识别
识别用户上传的表格图片中的文字内容,并将识别的结果返回给用户。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeFlightItinerary ¶
func (c *OcrClient) RecognizeFlightItinerary(request *model.RecognizeFlightItineraryRequest) (*model.RecognizeFlightItineraryResponse, error)
飞机行程单识别
识别飞机行程单中的文字信息,并返回识别的结构化结果。
说明:
如果图片中包含多张卡证票据,请调用智能分类识别服务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeGeneralTable ¶
func (c *OcrClient) RecognizeGeneralTable(request *model.RecognizeGeneralTableRequest) (*model.RecognizeGeneralTableResponse, error)
通用表格识别
识别用于识别用户上传的通用表格图片(或者用户提供的华为云上OBS的通用表格图片文件的URL)中的文字内容,并将识别的结果返回给用户。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeGeneralText ¶
func (c *OcrClient) RecognizeGeneralText(request *model.RecognizeGeneralTextRequest) (*model.RecognizeGeneralTextResponse, error)
通用文字识别
识别图片上的文字信息,返回识别的文字和坐标。支持扫描文件、电子文档、书籍、票据和表单等多种场景的文字识别。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeHandwriting ¶
func (c *OcrClient) RecognizeHandwriting(request *model.RecognizeHandwritingRequest) (*model.RecognizeHandwritingResponse, error)
手写文字识别
识别文档中的手写文字信息,并将识别的结构化结果返回给用户。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeHealthCode ¶ added in v0.0.88
func (c *OcrClient) RecognizeHealthCode(request *model.RecognizeHealthCodeRequest) (*model.RecognizeHealthCodeResponse, error)
防疫健康码识别
识别防疫健康码中的文字信息,并将识别的结构化结果返回给用户。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeIdCard ¶
func (c *OcrClient) RecognizeIdCard(request *model.RecognizeIdCardRequest) (*model.RecognizeIdCardResponse, error)
身份证识别
识别身份证图片中的文字内容,并将识别的结果返回给用户。
说明:
身份证识别支持中华人民共和国居民身份证识别。
如果图片中包含多张卡证票据,请调用[智能分类识别](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=OCR&api=AutoClassification)服务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeInsurancePolicy ¶ added in v0.0.67
func (c *OcrClient) RecognizeInsurancePolicy(request *model.RecognizeInsurancePolicyRequest) (*model.RecognizeInsurancePolicyResponse, error)
保险单识别
识别保险单图片上的文字信息,并将识别的结构化结果返回给用户。支持对多板式保险单的扫描图片及手机照片进行结构化信息提取。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeInvoiceVerification ¶ added in v0.0.59
func (c *OcrClient) RecognizeInvoiceVerification(request *model.RecognizeInvoiceVerificationRequest) (*model.RecognizeInvoiceVerificationResponse, error)
发票验真
发票验真服务支持9种增值税发票的信息核验,包括增值税专用发票、增值税普通发票、增值税普通发票(卷式)、增值税电子专用发票、增值税电子普通发票、增值税电子普通发票(通行费)、二手车销售统一发票、机动车销售统一发票、区块链电子发票,支持返回票面的全部信息。该接口的使用限制请参见[约束与限制](https://support.huaweicloud.com/productdesc-ocr/ocr_01_0006.html),详细使用指导请参见[OCR服务使用简介](https://support.huaweicloud.com/qs-ocr/ocr_05_0001.html)章节。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeLicensePlate ¶
func (c *OcrClient) RecognizeLicensePlate(request *model.RecognizeLicensePlateRequest) (*model.RecognizeLicensePlateResponse, error)
车牌识别
识别输入图片中的车牌信息,并返回其坐标和内容。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeMvsInvoice ¶
func (c *OcrClient) RecognizeMvsInvoice(request *model.RecognizeMvsInvoiceRequest) (*model.RecognizeMvsInvoiceResponse, error)
机动车销售发票识别
识别机动车销售发票图片中的文字内容,并将识别的结果返回给用户。
说明:
该增值税发票仅限于中华人民共和国境内使用的增值税发票。
如果图片中包含多张卡证票据,请调用[智能分类识别](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=OCR&api=AutoClassification)服务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeMyanmarDriverLicense ¶ added in v0.0.72
func (c *OcrClient) RecognizeMyanmarDriverLicense(request *model.RecognizeMyanmarDriverLicenseRequest) (*model.RecognizeMyanmarDriverLicenseResponse, error)
缅文驾驶证识别
识别缅甸驾驶证中的文字信息,并返回识别的结构化结果。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeMyanmarIdcard ¶ added in v0.0.72
func (c *OcrClient) RecognizeMyanmarIdcard(request *model.RecognizeMyanmarIdcardRequest) (*model.RecognizeMyanmarIdcardResponse, error)
缅文身份证识别
识别缅文身份证中的文字信息,并返回识别的结构化结果。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizePassport ¶
func (c *OcrClient) RecognizePassport(request *model.RecognizePassportRequest) (*model.RecognizePassportResponse, error)
护照识别
识别用户上传的护照首页图片中的文字信息,并返回识别的结构化结果。当前版本支持中国护照的全字段识别。外国护照支持护照下方两行国际标准化的机读码识别,并可从中提取6-7个关键字段信息。
说明:
如果图片中包含多张卡证票据,请调用[智能分类识别](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=OCR&api=AutoClassification)服务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeQualificationCertificate ¶ added in v0.0.67
func (c *OcrClient) RecognizeQualificationCertificate(request *model.RecognizeQualificationCertificateRequest) (*model.RecognizeQualificationCertificateResponse, error)
从业资格证识别
识别道路运输从业资格证上的关键文字信息,并返回识别的结构化结果。
说明:
如果图片中包含多张卡证票据,请调用[智能分类识别](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=OCR&api=AutoClassification)服务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeQuotaInvoice ¶
func (c *OcrClient) RecognizeQuotaInvoice(request *model.RecognizeQuotaInvoiceRequest) (*model.RecognizeQuotaInvoiceResponse, error)
定额发票识别
识别定额发票中的文字信息,并返回识别的结构化结果。
说明:
如果图片中包含多张卡证票据,请调用[智能分类识别](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=OCR&api=AutoClassification)服务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeTaxiInvoice ¶
func (c *OcrClient) RecognizeTaxiInvoice(request *model.RecognizeTaxiInvoiceRequest) (*model.RecognizeTaxiInvoiceResponse, error)
出租车发票识别
识别出租车发票中的文字信息,并返回识别的结构化结果。
说明:
如果图片中包含多张卡证票据,请调用智能分类识别服务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeThailandIdcard ¶ added in v0.0.72
func (c *OcrClient) RecognizeThailandIdcard(request *model.RecognizeThailandIdcardRequest) (*model.RecognizeThailandIdcardResponse, error)
泰文身份证识别
识别泰国身份证中的文字信息,并返回识别的结构化结果。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeThailandLicensePlate ¶ added in v0.0.72
func (c *OcrClient) RecognizeThailandLicensePlate(request *model.RecognizeThailandLicensePlateRequest) (*model.RecognizeThailandLicensePlateResponse, error)
泰国车牌识别
识别泰国车牌图片中的车牌信息,并返回识别的结构化结果。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeTollInvoice ¶
func (c *OcrClient) RecognizeTollInvoice(request *model.RecognizeTollInvoiceRequest) (*model.RecognizeTollInvoiceResponse, error)
车辆通行费发票识别
识别车辆通行费发票中的文字信息,并返回识别的结构化结果。
说明:
如果图片中包含多张卡证票据,请调用[智能分类识别](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=OCR&api=AutoClassification)服务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeTrainTicket ¶
func (c *OcrClient) RecognizeTrainTicket(request *model.RecognizeTrainTicketRequest) (*model.RecognizeTrainTicketResponse, error)
火车票识别
识别火车票中的文字信息,并返回识别的结构化结果。
说明:
如果图片中包含多张卡证票据,请调用[智能分类识别](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=OCR&api=AutoClassification)服务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeTransportationLicense ¶
func (c *OcrClient) RecognizeTransportationLicense(request *model.RecognizeTransportationLicenseRequest) (*model.RecognizeTransportationLicenseResponse, error)
道路运输证识别
识别道路运输证首页中的文字信息,并返回识别的结构化结果。
说明: 如果图片中包含多张卡证票据,请调用智能分类识别服务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeVatInvoice ¶
func (c *OcrClient) RecognizeVatInvoice(request *model.RecognizeVatInvoiceRequest) (*model.RecognizeVatInvoiceResponse, error)
增值税发票识别
识别用户上传的增值税发票图片(或者用户提供的华为云上OBS的增值税发票图片文件的URL)中的文字内容,并将识别的结果返回给用户。
说明:
该增值税发票仅限于中华人民共和国境内使用的增值税发票。
如果图片中包含多张卡证票据,请调用智能分类识别服务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeVehicleLicense ¶
func (c *OcrClient) RecognizeVehicleLicense(request *model.RecognizeVehicleLicenseRequest) (*model.RecognizeVehicleLicenseResponse, error)
行驶证识别
识别用户上传的行驶证图片(或者用户提供的华为云上OBS的行驶证图片文件的URL)中主页和副页的文字内容,并将识别的结果返回给用户。
说明:
如果图片中包含多张卡证票据,请调用智能分类识别服务。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeVin ¶
func (c *OcrClient) RecognizeVin(request *model.RecognizeVinRequest) (*model.RecognizeVinResponse, error)
VIN码识别
识别图片中的车架号信息,并将识别结果返回给用户。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeWaybillElectronic ¶ added in v0.0.83
func (c *OcrClient) RecognizeWaybillElectronic(request *model.RecognizeWaybillElectronicRequest) (*model.RecognizeWaybillElectronicResponse, error)
电子面单识别
识别用户上传的韵达电子面单图片中的文字内容,并将识别的结果以json格式返回给用户。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.
func (*OcrClient) RecognizeWebImage ¶
func (c *OcrClient) RecognizeWebImage(request *model.RecognizeWebImageRequest) (*model.RecognizeWebImageResponse, error)
网络图片识别
识别网络图片中的文字内容,并返回识别的结构化结果。
详细说明请参考华为云API Explorer。 Please refer to Huawei cloud API Explorer for details.