tencentcloud-sdk-nodejs-ocr 4.0.437 → 4.0.440

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
- import { RecognizeOnlineTaxiItineraryOCRResponse, BankSlipOCRRequest, BusinessCardOCRResponse, HKIDCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, RecognizePhilippinesDrivingLicenseOCRRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, VerifyBizLicenseResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, VerifyBizLicenseRequest, PermitOCRResponse, InvoiceGeneralOCRRequest, MLIDCardOCRRequest, VehicleLicenseOCRRequest, EnterpriseLicenseOCRResponse, RecognizePhilippinesVoteIDOCRRequest, InstitutionOCRResponse, DriverLicenseOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, EnterpriseLicenseOCRRequest, BankCardOCRRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, InsuranceBillOCRResponse, GeneralAccurateOCRResponse, HmtResidentPermitOCRRequest, QrcodeOCRRequest, TaxiInvoiceOCRResponse, GeneralBasicOCRResponse, RecognizeThaiIDCardOCRResponse, RecognizePhilippinesDrivingLicenseOCRResponse, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VatInvoiceVerifyNewRequest, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, IDCardOCRResponse, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, TaxiInvoiceOCRRequest, PropOwnerCertOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, TableOCRRequest, PassportOCRResponse, VerifyBasicBizLicenseResponse, VehicleRegCertOCRRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, RecognizeIndonesiaIDCardOCRResponse, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, EnglishOCRRequest, VatInvoiceVerifyResponse, SmartStructuralOCRResponse, VerifyEnterpriseFourFactorsRequest, RecognizeIndonesiaIDCardOCRRequest, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, FlightInvoiceOCRResponse, InstitutionOCRRequest, QueryBarCodeResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, MLIDPassportOCRResponse, VatRollInvoiceOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, VinOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, RecognizePhilippinesVoteIDOCRResponse, QueryBarCodeRequest, OrgCodeCertOCRResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, ResidenceBookletOCRRequest, BusInvoiceOCRResponse, MainlandPermitOCRResponse, HmtResidentPermitOCRResponse, EnglishOCRResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, TableOCRResponse, AdvertiseOCRResponse, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, VinOCRRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, VerifyBasicBizLicenseRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRResponse, BusinessCardOCRRequest, FinanBillOCRRequest, VerifyEnterpriseFourFactorsResponse, GeneralFastOCRResponse } from "./ocr_models";
2
+ import { RecognizeOnlineTaxiItineraryOCRResponse, BankSlipOCRRequest, BusinessCardOCRResponse, HKIDCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, RecognizePhilippinesDrivingLicenseOCRRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, VerifyBizLicenseResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, VerifyBizLicenseRequest, PermitOCRResponse, InvoiceGeneralOCRRequest, MLIDCardOCRRequest, VehicleLicenseOCRRequest, EnterpriseLicenseOCRResponse, RecognizePhilippinesVoteIDOCRRequest, InstitutionOCRResponse, DriverLicenseOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, EnterpriseLicenseOCRRequest, BankCardOCRRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, InsuranceBillOCRResponse, GeneralAccurateOCRResponse, HmtResidentPermitOCRRequest, QrcodeOCRRequest, TaxiInvoiceOCRResponse, GeneralBasicOCRResponse, RecognizeThaiIDCardOCRResponse, RecognizeMedicalInvoiceOCRResponse, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VatInvoiceVerifyNewRequest, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, IDCardOCRResponse, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, TaxiInvoiceOCRRequest, PropOwnerCertOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, TableOCRRequest, PassportOCRResponse, VerifyBasicBizLicenseResponse, VehicleRegCertOCRRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, RecognizeIndonesiaIDCardOCRResponse, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, EnglishOCRRequest, VatInvoiceVerifyResponse, SmartStructuralOCRResponse, VerifyEnterpriseFourFactorsRequest, RecognizeIndonesiaIDCardOCRRequest, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, FlightInvoiceOCRResponse, InstitutionOCRRequest, QueryBarCodeResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, MLIDPassportOCRResponse, VatRollInvoiceOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, VehicleRegCertOCRResponse, VinOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, RecognizePhilippinesVoteIDOCRResponse, QueryBarCodeRequest, OrgCodeCertOCRResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, RecognizeMedicalInvoiceOCRRequest, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, ResidenceBookletOCRRequest, BusInvoiceOCRResponse, MainlandPermitOCRResponse, HmtResidentPermitOCRResponse, EnglishOCRResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, TableOCRResponse, AdvertiseOCRResponse, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, VinOCRRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, VerifyBasicBizLicenseRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRResponse, BusinessCardOCRRequest, RecognizePhilippinesDrivingLicenseOCRResponse, FinanBillOCRRequest, VerifyEnterpriseFourFactorsResponse, GeneralFastOCRResponse } from "./ocr_models";
3
3
  /**
4
4
  * ocr client
5
5
  * @class
@@ -242,6 +242,11 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
242
242
  * 本接口支持对通用机打发票的发票代码、发票号码、日期、购买方识别号、销售方识别号、校验码、小写金额等关键字段的识别。
243
243
  */
244
244
  InvoiceGeneralOCR(req: InvoiceGeneralOCRRequest, cb?: (error: string, rep: InvoiceGeneralOCRResponse) => void): Promise<InvoiceGeneralOCRResponse>;
245
+ /**
246
+ * 医疗发票识别目前支持全国统一门诊发票、全国统一住院发票、以及部分地方的门诊和住院发票的识别。
247
+
248
+ */
249
+ RecognizeMedicalInvoiceOCR(req: RecognizeMedicalInvoiceOCRRequest, cb?: (error: string, rep: RecognizeMedicalInvoiceOCRResponse) => void): Promise<RecognizeMedicalInvoiceOCRResponse>;
245
250
  /**
246
251
  * 本接口支持网约车行程单关键字段的识别,包括行程起止日期、上车时间、起点、终点、里程、金额等字段。
247
252
  */
@@ -317,6 +317,13 @@ class Client extends TencentCloudCommon.AbstractClient {
317
317
  async InvoiceGeneralOCR(req, cb) {
318
318
  return this.request("InvoiceGeneralOCR", req, cb);
319
319
  }
320
+ /**
321
+ * 医疗发票识别目前支持全国统一门诊发票、全国统一住院发票、以及部分地方的门诊和住院发票的识别。
322
+
323
+ */
324
+ async RecognizeMedicalInvoiceOCR(req, cb) {
325
+ return this.request("RecognizeMedicalInvoiceOCR", req, cb);
326
+ }
320
327
  /**
321
328
  * 本接口支持网约车行程单关键字段的识别,包括行程起止日期、上车时间、起点、终点、里程、金额等字段。
322
329
  */
@@ -2087,57 +2087,17 @@ export interface CellContent {
2087
2087
  WordSize: number;
2088
2088
  }
2089
2089
  /**
2090
- * RecognizePhilippinesDrivingLicenseOCR返回参数结构体
2090
+ * RecognizeMedicalInvoiceOCR返回参数结构体
2091
2091
  */
2092
- export interface RecognizePhilippinesDrivingLicenseOCRResponse {
2093
- /**
2094
- * 人像照片Base64后的结果
2095
- */
2096
- HeadPortrait: TextDetectionResult;
2092
+ export interface RecognizeMedicalInvoiceOCRResponse {
2097
2093
  /**
2098
- * 姓名
2099
- */
2100
- Name: TextDetectionResult;
2101
- /**
2102
- * 姓氏
2094
+ * 识别出的字段信息
2103
2095
  */
2104
- LastName: TextDetectionResult;
2096
+ MedicalInvoiceInfos: Array<MedicalInvoiceInfo>;
2105
2097
  /**
2106
- * 首姓名
2107
- */
2108
- FirstName: TextDetectionResult;
2109
- /**
2110
- * 中间姓名
2111
- */
2112
- MiddleName: TextDetectionResult;
2113
- /**
2114
- * 国籍
2115
- */
2116
- Nationality: TextDetectionResult;
2117
- /**
2118
- * 性别
2119
- */
2120
- Sex: TextDetectionResult;
2121
- /**
2122
- * 地址
2123
- */
2124
- Address: TextDetectionResult;
2125
- /**
2126
- * 证号
2127
- */
2128
- LicenseNo: TextDetectionResult;
2129
- /**
2130
- * 有效期
2131
- */
2132
- ExpiresDate: TextDetectionResult;
2133
- /**
2134
- * 机构代码
2135
- */
2136
- AgencyCode: TextDetectionResult;
2137
- /**
2138
- * 出生日期
2098
+ * 图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负。
2139
2099
  */
2140
- Birthday: TextDetectionResult;
2100
+ Angle: number;
2141
2101
  /**
2142
2102
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2143
2103
  */
@@ -2503,6 +2463,15 @@ export interface HKIDCardOCRResponse {
2503
2463
  */
2504
2464
  RequestId?: string;
2505
2465
  }
2466
+ /**
2467
+ * 医疗发票识别结果
2468
+ */
2469
+ export interface MedicalInvoiceInfo {
2470
+ /**
2471
+ * 医疗发票识别结果条目
2472
+ */
2473
+ MedicalInvoiceItems: Array<MedicalInvoiceItem>;
2474
+ }
2506
2475
  /**
2507
2476
  * 发票商品
2508
2477
  */
@@ -3673,6 +3642,28 @@ export interface ShipInvoiceInfo {
3673
3642
  */
3674
3643
  Rect: Rect;
3675
3644
  }
3645
+ /**
3646
+ * 文本的坐标,以四个顶点坐标表示
3647
+ 注意:此字段可能返回 null,表示取不到有效值
3648
+ */
3649
+ export interface Polygon {
3650
+ /**
3651
+ * 左上顶点坐标
3652
+ */
3653
+ LeftTop: Coord;
3654
+ /**
3655
+ * 右上顶点坐标
3656
+ */
3657
+ RightTop: Coord;
3658
+ /**
3659
+ * 右下顶点坐标
3660
+ */
3661
+ RightBottom: Coord;
3662
+ /**
3663
+ * 左下顶点坐标
3664
+ */
3665
+ LeftBottom: Coord;
3666
+ }
3676
3667
  /**
3677
3668
  * GeneralAccurateOCR请求参数结构体
3678
3669
  */
@@ -4271,6 +4262,19 @@ export interface QuestionObj {
4271
4262
  */
4272
4263
  QuestionImageCoords: Array<Rect>;
4273
4264
  }
4265
+ /**
4266
+ * VehicleRegCertOCR返回参数结构体
4267
+ */
4268
+ export interface VehicleRegCertOCRResponse {
4269
+ /**
4270
+ * 机动车登记证书识别结果,具体内容请点击左侧链接。
4271
+ */
4272
+ VehicleRegCertInfos: Array<VehicleRegCertInfo>;
4273
+ /**
4274
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4275
+ */
4276
+ RequestId?: string;
4277
+ }
4274
4278
  /**
4275
4279
  * VinOCR返回参数结构体
4276
4280
  */
@@ -4749,26 +4753,28 @@ export interface GeneralFastOCRRequest {
4749
4753
  PdfPageNumber?: number;
4750
4754
  }
4751
4755
  /**
4752
- * 文本的坐标,以四个顶点坐标表示
4753
- 注意:此字段可能返回 null,表示取不到有效值
4756
+ * 医疗发票识别结果
4754
4757
  */
4755
- export interface Polygon {
4758
+ export interface MedicalInvoiceItem {
4756
4759
  /**
4757
- * 左上顶点坐标
4758
- */
4759
- LeftTop: Coord;
4760
+ * 识别出的字段名称
4761
+ <table><tr><td>分类</td><td>name</td></tr><tr><td>票据基本信息</td><td>发票名称</td></tr><tr><td></td><td>票据代码</td></tr><tr><td></td><td>票据号码</td></tr><tr><td></td><td>电子票据代码</td></tr><tr><td></td><td>电子票据号码</td></tr><tr><td></td><td>交款人统一社会信用代码</td></tr><tr><td></td><td>校验码</td></tr><tr><td></td><td>交款人</td></tr><tr><td></td><td>开票日期</td></tr><tr><td></td><td>收款单位</td></tr><tr><td></td><td>复核人</td></tr><tr><td></td><td>收款人</td></tr><tr><td></td><td>业务流水号</td></tr><tr><td></td><td>门诊号</td></tr><tr><td></td><td>就诊日期</td></tr><tr><td></td><td>医疗机构类型</td></tr><tr><td></td><td>医保类型</td></tr><tr><td></td><td>医保编号</td></tr><tr><td></td><td>性别</td></tr><tr><td></td><td>医保统筹基金支付</td></tr><tr><td></td><td>其他支付</td></tr><tr><td></td><td>个人账户支付</td></tr><tr><td></td><td>个人现金支付</td></tr><tr><td></td><td>个人自付</td></tr><tr><td></td><td>个人自费</td></tr><tr><td></td><td>病历号</td></tr><tr><td></td><td>住院号</td></tr><tr><td></td><td>住院科别</td></tr><tr><td></td><td>住院时间</td></tr><tr><td></td><td>预缴金额</td></tr><tr><td></td><td>补缴金额</td></tr><tr><td></td><td>退费金额</td></tr><tr><td></td><td>发票属地</td></tr><tr><td></td><td>发票类型</td></tr><tr><td>总金额</td><td>总金额大写</td></tr><tr><td></td><td>总金额小写</td></tr><tr><td>收费大项</td><td>大项名称</td></tr><tr><td></td><td>大项金额</td></tr><tr><td>收费细项</td><td>项目名称</td></tr><tr><td></td><td>数量</td></tr><tr><td></td><td>单位</td></tr><tr><td></td><td>金额</td></tr><tr><td></td><td>备注</td></tr><tr><td>票据其他信息</td><td>入院时间</td></tr><tr><td></td><td>出院时间</td></tr><tr><td></td><td>住院天数</td></tr><tr><td></td><td>自付二</td></tr><tr><td></td><td>自付一</td></tr><tr><td></td><td>起付金额</td></tr><tr><td></td><td>超封顶金额</td></tr><tr><td></td><td>自费</td></tr><tr><td></td><td>本次医保范围内金额</td></tr><tr><td></td><td>累计医保内范围金额</td></tr><tr><td></td><td>门诊大额支付</td></tr><tr><td></td><td>残军补助支付</td></tr><tr><td></td><td>年度门诊大额累计支付</td></tr><tr><td></td><td>单位补充险[原公疗]支付</td></tr><tr><td></td><td>社会保障卡号</td></tr><tr><td></td><td>姓名</td></tr><tr><td></td><td>交易流水号</td></tr><tr><td></td><td>本次支付后个人账户余额</td></tr><tr><td></td><td>基金支付</td></tr><tr><td></td><td>现金支付</td></tr><tr><td></td><td>复核</td></tr><tr><td></td><td>自负</td></tr><tr><td></td><td>结算方式</td></tr><tr><td></td><td>医保统筹/公医记账</td></tr><tr><td></td><td>其他</td></tr><tr><td></td><td>个人支付金额</td></tr><tr><td></td><td>欠费</td></tr><tr><td></td><td>退休补充支付</td></tr><tr><td></td><td>医院类型</td></tr><tr><td></td><td>退款</td></tr><tr><td></td><td>补收</td></tr><tr><td></td><td>附加支付</td></tr><tr><td></td><td>分类自负</td></tr><tr><td></td><td>其它</td></tr><tr><td></td><td>预交款</td></tr><tr><td></td><td>个人缴费</td></tr></table>
4762
+ */
4763
+ Name: string;
4760
4764
  /**
4761
- * 右上顶点坐标
4765
+ * 识别出的字段名称对应的值,也就是字段name对应的字符串结果
4762
4766
  */
4763
- RightTop: Coord;
4767
+ Content: string;
4764
4768
  /**
4765
- * 右下顶点坐标
4766
- */
4767
- RightBottom: Coord;
4769
+ * 识别出的文本行四点坐标
4770
+ 注意:此字段可能返回 null,表示取不到有效值。
4771
+ */
4772
+ Vertex: Polygon;
4768
4773
  /**
4769
- * 左下顶点坐标
4770
- */
4771
- LeftBottom: Coord;
4774
+ * 识别出的文本行在旋转纠正之后的图像中的像素坐标
4775
+ 注意:此字段可能返回 null,表示取不到有效值。
4776
+ */
4777
+ Coord: Rect;
4772
4778
  }
4773
4779
  /**
4774
4780
  * ShipInvoiceOCR返回参数结构体
@@ -4809,17 +4815,32 @@ export interface InsuranceBillInfo {
4809
4815
  Value: string;
4810
4816
  }
4811
4817
  /**
4812
- * VehicleRegCertOCR返回参数结构体
4818
+ * RecognizeMedicalInvoiceOCR请求参数结构体
4813
4819
  */
4814
- export interface VehicleRegCertOCRResponse {
4820
+ export interface RecognizeMedicalInvoiceOCRRequest {
4815
4821
  /**
4816
- * 机动车登记证书识别结果,具体内容请点击左侧链接。
4822
+ * 图片的Base64 值。
4823
+ 支持的文件格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
4824
+ 支持的图片大小:所下载文件经Base64编码后不超过 7M。文件下载时间不超过 3 秒。
4825
+ 输入参数 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
4826
+ */
4827
+ ImageBase64?: string;
4828
+ /**
4829
+ * 图片的Url 地址。
4830
+ 支持的文件格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
4831
+ 支持的图片大小:所下载文件经 Base64 编码后不超过 7M。文件下载时间不超过 3 秒。
4832
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
4833
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
4834
+ */
4835
+ ImageUrl?: string;
4836
+ /**
4837
+ * 是否需要返回识别出的文本行在原图上的四点坐标,默认不返回
4817
4838
  */
4818
- VehicleRegCertInfos: Array<VehicleRegCertInfo>;
4839
+ ReturnVertex?: boolean;
4819
4840
  /**
4820
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4841
+ * 是否需要返回识别出的文本行在旋转纠正之后的图像中的四点坐标,默认不返回
4821
4842
  */
4822
- RequestId?: string;
4843
+ ReturnCoord?: boolean;
4823
4844
  }
4824
4845
  /**
4825
4846
  * 卡证智能分类结果
@@ -6136,6 +6157,63 @@ export interface BusinessCardOCRRequest {
6136
6157
  */
6137
6158
  Config?: string;
6138
6159
  }
6160
+ /**
6161
+ * RecognizePhilippinesDrivingLicenseOCR返回参数结构体
6162
+ */
6163
+ export interface RecognizePhilippinesDrivingLicenseOCRResponse {
6164
+ /**
6165
+ * 人像照片Base64后的结果
6166
+ */
6167
+ HeadPortrait: TextDetectionResult;
6168
+ /**
6169
+ * 姓名
6170
+ */
6171
+ Name: TextDetectionResult;
6172
+ /**
6173
+ * 姓氏
6174
+ */
6175
+ LastName: TextDetectionResult;
6176
+ /**
6177
+ * 首姓名
6178
+ */
6179
+ FirstName: TextDetectionResult;
6180
+ /**
6181
+ * 中间姓名
6182
+ */
6183
+ MiddleName: TextDetectionResult;
6184
+ /**
6185
+ * 国籍
6186
+ */
6187
+ Nationality: TextDetectionResult;
6188
+ /**
6189
+ * 性别
6190
+ */
6191
+ Sex: TextDetectionResult;
6192
+ /**
6193
+ * 地址
6194
+ */
6195
+ Address: TextDetectionResult;
6196
+ /**
6197
+ * 证号
6198
+ */
6199
+ LicenseNo: TextDetectionResult;
6200
+ /**
6201
+ * 有效期
6202
+ */
6203
+ ExpiresDate: TextDetectionResult;
6204
+ /**
6205
+ * 机构代码
6206
+ */
6207
+ AgencyCode: TextDetectionResult;
6208
+ /**
6209
+ * 出生日期
6210
+ */
6211
+ Birthday: TextDetectionResult;
6212
+ /**
6213
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6214
+ */
6215
+ RequestId?: string;
6216
+ }
6139
6217
  /**
6140
6218
  * FinanBillOCR请求参数结构体
6141
6219
  */