tencentcloud-sdk-nodejs-ocr 4.1.135 → 4.1.137

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.
@@ -383,18 +383,38 @@ export interface BankCardOCRRequest {
383
383
  EnableQualityValue?: boolean;
384
384
  }
385
385
  /**
386
- * SmartStructuralOCR返回参数结构体
386
+ * VatInvoiceVerifyNew返回参数结构体
387
387
  */
388
- export interface SmartStructuralOCRResponse {
388
+ export interface VatInvoiceVerifyNewResponse {
389
389
  /**
390
- * 图片旋转角度(角度制),文本的水平方向
391
- 为 0;顺时针为正,逆时针为负
390
+ * 增值税发票、购车发票、全电发票的基础要素字段信息。
392
391
  */
393
- Angle?: number;
392
+ Invoice?: VatInvoice;
394
393
  /**
395
- * 识别信息
394
+ * 机动车销售统一发票详细字段信息。
396
395
  */
397
- StructuralItems?: Array<StructuralItem>;
396
+ VehicleInvoiceInfo?: VehicleInvoiceInfo;
397
+ /**
398
+ * 二手车销售统一发票详细字段信息。
399
+ */
400
+ UsedVehicleInvoiceInfo?: UsedVehicleInvoiceInfo;
401
+ /**
402
+ * 通行费发票详细字段信息。
403
+ */
404
+ PassInvoiceInfoList?: Array<PassInvoiceInfo>;
405
+ /**
406
+ * 全电发票(铁路电子客票)详细字段信息。
407
+
408
+ */
409
+ ElectronicTrainTicket?: ElectronicTrainTicket;
410
+ /**
411
+ * 全电发票(航空运输电子客票行程单)详细字段信息。
412
+ */
413
+ ElectronicAirTransport?: ElectronicAirTransport;
414
+ /**
415
+ * 财政发票详细字段信息
416
+ */
417
+ FinancialBill?: FinancialBill;
398
418
  /**
399
419
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
400
420
  */
@@ -751,109 +771,23 @@ export interface TextDetectResponse {
751
771
  RequestId?: string;
752
772
  }
753
773
  /**
754
- * 铁路电子客票信息
774
+ * 完税凭证
755
775
  */
756
- export interface RailwayTicketInfo {
757
- /**
758
- * 电子发票类型
759
- */
760
- TypeOfVoucher?: string;
761
- /**
762
- * 电子客票号
763
- */
764
- ElectronicTicketNum?: string;
765
- /**
766
- * 开票日期
767
- */
768
- DateOfIssue?: string;
769
- /**
770
- * 售票或退票类型
771
- */
772
- TypeOfBusiness?: string;
773
- /**
774
- * 始发站
775
- */
776
- DepartureStation?: string;
777
- /**
778
- * 始发站英文
779
- */
780
- PhonicsOfDepartureStation?: string;
781
- /**
782
- * 到达站
783
- */
784
- DestinationStation?: string;
785
- /**
786
- * 到达站英文
787
- */
788
- PhonicsOfDestinationStation?: string;
789
- /**
790
- * 火车号
791
- */
792
- TrainNumber?: string;
793
- /**
794
- * 火车出发日期
795
- */
796
- TravelDate?: string;
797
- /**
798
- * 始发时间
799
- */
800
- DepartureTime?: string;
801
- /**
802
- * 空调特点
803
- */
804
- AirConditioningCharacteristics?: string;
805
- /**
806
- * 座位类型
807
- */
808
- SeatLevel?: string;
809
- /**
810
- * 火车第几车
811
- */
812
- Carriage?: string;
813
- /**
814
- * 座位号
815
- */
816
- Seat?: string;
817
- /**
818
- * 票价
819
- */
820
- Fare?: string;
821
- /**
822
- * 发票号码
823
- */
824
- ElectronicInvoiceRailwayETicketNumber?: string;
825
- /**
826
- * 身份证号
827
- */
828
- IdNumber?: string;
829
- /**
830
- * 姓名
831
- */
832
- Name?: string;
833
- /**
834
- * 金额
835
- */
836
- TotalAmountExcludingTax?: string;
837
- /**
838
- * 税率
839
- */
840
- TaxRate?: string;
841
- /**
842
- * 税额
843
- */
844
- TaxAmount?: string;
776
+ export interface TaxPayment {
845
777
  /**
846
- * 购买方名称
778
+ * 发票名称
847
779
  */
848
- NameOfPurchaser?: string;
780
+ Title?: string;
849
781
  /**
850
- * 统一社会信用代码
782
+ * 识别出的字段名称(关键字),支持以下字段:
783
+ 税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。
784
+ 示例值:纳税人识别号
851
785
  */
852
- UnifiedSocialCreditCodeOfPurchaser?: string;
786
+ Content?: Array<OtherInvoiceItem>;
853
787
  /**
854
- * 原发票号码
788
+ * 表格。
855
789
  */
856
- NumberOfOriginalInvoice?: string;
790
+ TableItems?: Array<OtherInvoiceList>;
857
791
  }
858
792
  /**
859
793
  * TollInvoiceOCR返回参数结构体
@@ -1471,23 +1405,70 @@ export interface VehicleRegCertInfo {
1471
1405
  Value?: string;
1472
1406
  }
1473
1407
  /**
1474
- * 通用告警详情
1408
+ * IDCardOCR返回参数结构体
1475
1409
  */
1476
- export interface GeneralWarnInfo {
1410
+ export interface IDCardOCRResponse {
1477
1411
  /**
1478
- * 是否存在该告警
1412
+ * 姓名(人像面)
1479
1413
  */
1480
- IsWarn?: boolean;
1414
+ Name?: string;
1481
1415
  /**
1482
- * 告警位置四点坐标
1416
+ * 性别(人像面)
1483
1417
  */
1484
- Polygon?: Array<Polygon>;
1418
+ Sex?: string;
1419
+ /**
1420
+ * 民族(人像面)
1421
+ */
1422
+ Nation?: string;
1423
+ /**
1424
+ * 出生日期(人像面)
1425
+ */
1426
+ Birth?: string;
1427
+ /**
1428
+ * 地址(人像面)
1429
+ */
1430
+ Address?: string;
1431
+ /**
1432
+ * 身份证号(人像面)
1433
+ */
1434
+ IdNum?: string;
1435
+ /**
1436
+ * 发证机关(国徽面)
1437
+ */
1438
+ Authority?: string;
1439
+ /**
1440
+ * 证件有效期(国徽面)
1441
+ */
1442
+ ValidDate?: string;
1485
1443
  /**
1486
- * 特殊判定,支持包括
1444
+ * 扩展信息,不请求则不返回,具体输入参考示例3和示例4。
1445
+ IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;
1446
+ Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;
1447
+
1448
+ Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);
1449
+ BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);
1450
+
1451
+ WarnInfos,告警信息,Code 告警码列表和释义:
1452
+ -9101 身份证边框不完整告警,
1453
+
1454
+ -9102 身份证复印件告警(黑白及彩色复印件),
1455
+ -9108 身份证复印件告警(仅黑白复印件),
1487
1456
 
1488
- Finger:由手指导致的不完整,仅在不完整告警中返回
1457
+ -9103 身份证翻拍告警,
1458
+ -9105 身份证框内遮挡告警,
1459
+ -9104 临时身份证告警,
1460
+ -9106 身份证疑似存在PS痕迹告警,
1461
+ -9107 身份证反光告警。
1462
+ */
1463
+ AdvancedInfo?: string;
1464
+ /**
1465
+ * 反光点覆盖区域详情结果,具体内容请点击左侧链接
1466
+ */
1467
+ ReflectDetailInfos?: Array<ReflectDetailInfo>;
1468
+ /**
1469
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1489
1470
  */
1490
- SpecificMatter?: string;
1471
+ RequestId?: string;
1491
1472
  }
1492
1473
  /**
1493
1474
  * 机票行程卡条目
@@ -1666,33 +1647,22 @@ export interface TextVatInvoice {
1666
1647
  Polygon?: Polygon;
1667
1648
  }
1668
1649
  /**
1669
- * InstitutionOCR返回参数结构体
1650
+ * 轮船票字段信息
1670
1651
  */
1671
- export interface InstitutionOCRResponse {
1672
- /**
1673
- * 注册号
1674
- */
1675
- RegId?: string;
1676
- /**
1677
- * 有效期
1678
- */
1679
- ValidDate?: string;
1680
- /**
1681
- * 住所
1682
- */
1683
- Location?: string;
1652
+ export interface ShipInvoiceInfo {
1684
1653
  /**
1685
- * 名称
1654
+ * 识别出的字段名称(关键字),支持以下字段:
1655
+ 发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、省、市、币种。
1686
1656
  */
1687
1657
  Name?: string;
1688
1658
  /**
1689
- * 法定代表人
1659
+ * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
1690
1660
  */
1691
- LegalPerson?: string;
1661
+ Value?: string;
1692
1662
  /**
1693
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1663
+ * 文本行在旋转纠正之后的图像中的像素坐标。
1694
1664
  */
1695
- RequestId?: string;
1665
+ Rect?: Rect;
1696
1666
  }
1697
1667
  /**
1698
1668
  * 机动车销售统一发票信息
@@ -2348,39 +2318,6 @@ export interface FlightItemInfo {
2348
2318
  */
2349
2319
  DateEnd?: string;
2350
2320
  }
2351
- /**
2352
- * PropOwnerCertOCR返回参数结构体
2353
- */
2354
- export interface PropOwnerCertOCRResponse {
2355
- /**
2356
- * 房地产权利人
2357
- */
2358
- Owner?: string;
2359
- /**
2360
- * 共有情况
2361
- */
2362
- Possession?: string;
2363
- /**
2364
- * 登记时间
2365
- */
2366
- RegisterTime?: string;
2367
- /**
2368
- * 规划用途
2369
- */
2370
- Purpose?: string;
2371
- /**
2372
- * 房屋性质
2373
- */
2374
- Nature?: string;
2375
- /**
2376
- * 房地坐落
2377
- */
2378
- Location?: string;
2379
- /**
2380
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2381
- */
2382
- RequestId?: string;
2383
- }
2384
2321
  /**
2385
2322
  * 金融票据整单识别单个字段的内容
2386
2323
  */
@@ -4052,29 +3989,49 @@ export interface GroupInfo {
4052
3989
  Groups?: Array<LineInfo>;
4053
3990
  }
4054
3991
  /**
4055
- * OrgCodeCertOCR返回参数结构体
3992
+ * 定额发票
4056
3993
  */
4057
- export interface OrgCodeCertOCRResponse {
3994
+ export interface QuotaInvoice {
4058
3995
  /**
4059
- * 代码
3996
+ * 发票名称
4060
3997
  */
4061
- OrgCode?: string;
3998
+ Title?: string;
4062
3999
  /**
4063
- * 机构名称
4000
+ * 发票代码
4064
4001
  */
4065
- Name?: string;
4002
+ Code?: string;
4066
4003
  /**
4067
- * 地址
4004
+ * 发票号码
4068
4005
  */
4069
- Address?: string;
4006
+ Number?: string;
4070
4007
  /**
4071
- * 有效期
4008
+ * 价税合计(小写)
4072
4009
  */
4073
- ValidDate?: string;
4010
+ Total?: string;
4074
4011
  /**
4075
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4012
+ * 价税合计(大写)
4076
4013
  */
4077
- RequestId?: string;
4014
+ TotalCn?: string;
4015
+ /**
4016
+ * 发票消费类型
4017
+ */
4018
+ Kind?: string;
4019
+ /**
4020
+ * 省
4021
+ */
4022
+ Province?: string;
4023
+ /**
4024
+ * 市
4025
+ */
4026
+ City?: string;
4027
+ /**
4028
+ * 是否存在二维码(1:有,0:无)
4029
+ */
4030
+ QRCodeMark?: number;
4031
+ /**
4032
+ * 是否有公司印章(0:没有,1:有)
4033
+ */
4034
+ CompanySealMark?: number;
4078
4035
  }
4079
4036
  /**
4080
4037
  * 自定义抽取需要的字段名称、字段类型、字段提示词。
@@ -4590,19 +4547,6 @@ export interface RecognizeContainerOCRRequest {
4590
4547
  */
4591
4548
  ImageUrl?: string;
4592
4549
  }
4593
- /**
4594
- * SubmitExtractDocAgentJob返回参数结构体
4595
- */
4596
- export interface SubmitExtractDocAgentJobResponse {
4597
- /**
4598
- * 任务唯一ID。由服务端生成。
4599
- */
4600
- JobId?: string;
4601
- /**
4602
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4603
- */
4604
- RequestId?: string;
4605
- }
4606
4550
  /**
4607
4551
  * 火车票
4608
4552
  */
@@ -5319,17 +5263,17 @@ export interface PassportRecognizeInfos {
5319
5263
  IssuingAuthority?: string;
5320
5264
  }
5321
5265
  /**
5322
- * PropOwnerCertOCR请求参数结构体
5266
+ * SubmitExtractDocAgentJob返回参数结构体
5323
5267
  */
5324
- export interface PropOwnerCertOCRRequest {
5268
+ export interface SubmitExtractDocAgentJobResponse {
5325
5269
  /**
5326
- * 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
5270
+ * 任务唯一ID。由服务端生成。
5327
5271
  */
5328
- ImageBase64?: string;
5272
+ JobId?: string;
5329
5273
  /**
5330
- * 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
5274
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5331
5275
  */
5332
- ImageUrl?: string;
5276
+ RequestId?: string;
5333
5277
  }
5334
5278
  /**
5335
5279
  * ImageEnhancement返回参数结构体
@@ -5547,25 +5491,6 @@ export interface CardWarnInfo {
5547
5491
  */
5548
5492
  ElectronCheck?: number;
5549
5493
  }
5550
- /**
5551
- * 完税凭证
5552
- */
5553
- export interface TaxPayment {
5554
- /**
5555
- * 发票名称
5556
- */
5557
- Title?: string;
5558
- /**
5559
- * 识别出的字段名称(关键字),支持以下字段:
5560
- 税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。
5561
- 示例值:纳税人识别号
5562
- */
5563
- Content?: Array<OtherInvoiceItem>;
5564
- /**
5565
- * 表格。
5566
- */
5567
- TableItems?: Array<OtherInvoiceList>;
5568
- }
5569
5494
  /**
5570
5495
  * VehicleRegCertOCR请求参数结构体
5571
5496
  */
@@ -6337,44 +6262,18 @@ export interface VatElectronicInfo {
6337
6262
  InvoicePageIndex?: string;
6338
6263
  }
6339
6264
  /**
6340
- * RecognizeValidIDCardOCR返回参数结构体
6265
+ * SmartStructuralOCR返回参数结构体
6341
6266
  */
6342
- export interface RecognizeValidIDCardOCRResponse {
6343
- /**
6344
- * 卡证类型
6345
- 身份证人像面
6346
- 身份证国徽面
6347
-
6348
- 临时身份证人像面
6349
- 临时身份证人像面
6350
-
6351
- 港澳台居住证人像面
6352
- 港澳台居住证国徽面
6353
-
6354
- 外国人永久居留证人像面
6355
- 外国人永久居留证国徽面
6356
- */
6357
- Type?: string;
6358
- /**
6359
- * 身份证信息
6360
- 注意:此字段可能返回 null,表示取不到有效值。
6361
- */
6362
- IDCardInfo?: IDCardInfo;
6363
- /**
6364
- * 临时身份证信息
6365
- 注意:此字段可能返回 null,表示取不到有效值。
6366
- */
6367
- TemporaryIDCardInfo?: TemporaryIDCardInfo;
6267
+ export interface SmartStructuralOCRResponse {
6368
6268
  /**
6369
- * 港澳台居住证信息
6370
- 注意:此字段可能返回 null,表示取不到有效值。
6269
+ * 图片旋转角度(角度制),文本的水平方向
6270
+ 0;顺时针为正,逆时针为负
6371
6271
  */
6372
- ResidencePermitInfo?: ResidencePermitInfo;
6272
+ Angle?: number;
6373
6273
  /**
6374
- * 外国人永久居留证信息
6375
- 注意:此字段可能返回 null,表示取不到有效值。
6274
+ * 识别信息
6376
6275
  */
6377
- PermanentResidencePermitInfo?: PermanentResidencePermitInfo;
6276
+ StructuralItems?: Array<StructuralItem>;
6378
6277
  /**
6379
6278
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6380
6279
  */
@@ -6443,162 +6342,170 @@ export interface IDCardInfo {
6443
6342
  PortraitImage?: ContentInfo;
6444
6343
  }
6445
6344
  /**
6446
- * IDCardOCR返回参数结构体
6345
+ * 医疗发票识别结果
6447
6346
  */
6448
- export interface IDCardOCRResponse {
6347
+ export interface MedicalInvoiceItem {
6449
6348
  /**
6450
- * 姓名(人像面)
6349
+ * 识别出的字段名称
6350
+ <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>
6451
6351
  */
6452
- Name?: string;
6352
+ Name: string;
6453
6353
  /**
6454
- * 性别(人像面)
6354
+ * 识别出的字段名称对应的值,也就是字段name对应的字符串结果
6455
6355
  */
6456
- Sex?: string;
6356
+ Content: string;
6457
6357
  /**
6458
- * 民族(人像面)
6358
+ * 识别出的文本行四点坐标
6359
+ 注意:此字段可能返回 null,表示取不到有效值。
6459
6360
  */
6460
- Nation?: string;
6361
+ Vertex: Polygon;
6461
6362
  /**
6462
- * 出生日期(人像面)
6363
+ * 识别出的文本行在旋转纠正之后的图像中的像素坐标
6364
+ 注意:此字段可能返回 null,表示取不到有效值。
6463
6365
  */
6464
- Birth?: string;
6366
+ Coord: Rect;
6367
+ }
6368
+ /**
6369
+ * GeneralAccurateOCR请求参数结构体
6370
+ */
6371
+ export interface GeneralAccurateOCRRequest {
6465
6372
  /**
6466
- * 地址(人像面)
6373
+ * 图片/PDF的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
6467
6374
  */
6468
- Address?: string;
6375
+ ImageBase64?: string;
6469
6376
  /**
6470
- * 身份证号(人像面)
6377
+ * 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
6471
6378
  */
6472
- IdNum?: string;
6379
+ ImageUrl?: string;
6473
6380
  /**
6474
- * 发证机关(国徽面)
6381
+ * 是否返回单字信息,默认关
6475
6382
  */
6476
- Authority?: string;
6383
+ IsWords?: boolean;
6477
6384
  /**
6478
- * 证件有效期(国徽面)
6385
+ * 是否开启原图切图检测功能,开启后可提升“整图面积大,但单字符占比面积小”(例如:试卷)场景下的识别效果,默认关,注:仅ConfigID配置为OCR时支持。
6479
6386
  */
6480
- ValidDate?: string;
6387
+ EnableDetectSplit?: boolean;
6481
6388
  /**
6482
- * 扩展信息,不请求则不返回,具体输入参考示例3和示例4。
6483
- IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;
6484
- Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;
6485
-
6486
- Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);
6487
- BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);
6488
-
6489
- WarnInfos,告警信息,Code 告警码列表和释义:
6490
- -9101 身份证边框不完整告警,
6491
-
6492
- -9102 身份证复印件告警(黑白及彩色复印件),
6493
- -9108 身份证复印件告警(仅黑白复印件),
6494
-
6495
- -9103 身份证翻拍告警,
6496
- -9105 身份证框内遮挡告警,
6497
- -9104 临时身份证告警,
6498
- -9106 身份证疑似存在PS痕迹告警,
6499
- -9107 身份证反光告警。
6389
+ * 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
6500
6390
  */
6501
- AdvancedInfo?: string;
6391
+ IsPdf?: boolean;
6502
6392
  /**
6503
- * 反光点覆盖区域详情结果,具体内容请点击左侧链接
6393
+ * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
6504
6394
  */
6505
- ReflectDetailInfos?: Array<ReflectDetailInfo>;
6395
+ PdfPageNumber?: number;
6506
6396
  /**
6507
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6397
+ * 文本检测开关,默认为true。设置为false可直接进行单行识别,适用于仅包含正向单行文本的图片场景。
6508
6398
  */
6509
- RequestId?: string;
6399
+ EnableDetectText?: boolean;
6400
+ /**
6401
+ * 配置ID支持: OCR -- 通用场景 MulOCR--多语种场景,注:仅ConfigID配置为OCR时支持
6402
+ */
6403
+ ConfigID?: string;
6510
6404
  }
6511
6405
  /**
6512
- * 轮船票字段信息
6406
+ * 铁路电子客票信息
6513
6407
  */
6514
- export interface ShipInvoiceInfo {
6408
+ export interface RailwayTicketInfo {
6515
6409
  /**
6516
- * 识别出的字段名称(关键字),支持以下字段:
6517
- 发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、省、市、币种。
6410
+ * 电子发票类型
6518
6411
  */
6519
- Name?: string;
6412
+ TypeOfVoucher?: string;
6520
6413
  /**
6521
- * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
6414
+ * 电子客票号
6522
6415
  */
6523
- Value?: string;
6416
+ ElectronicTicketNum?: string;
6524
6417
  /**
6525
- * 文本行在旋转纠正之后的图像中的像素坐标。
6418
+ * 开票日期
6526
6419
  */
6527
- Rect?: Rect;
6528
- }
6529
- /**
6530
- * 医疗发票识别结果
6531
- */
6532
- export interface MedicalInvoiceItem {
6420
+ DateOfIssue?: string;
6533
6421
  /**
6534
- * 识别出的字段名称
6535
- <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>
6422
+ * 售票或退票类型
6536
6423
  */
6537
- Name: string;
6424
+ TypeOfBusiness?: string;
6538
6425
  /**
6539
- * 识别出的字段名称对应的值,也就是字段name对应的字符串结果
6426
+ * 始发站
6540
6427
  */
6541
- Content: string;
6428
+ DepartureStation?: string;
6542
6429
  /**
6543
- * 识别出的文本行四点坐标
6544
- 注意:此字段可能返回 null,表示取不到有效值。
6430
+ * 始发站英文
6545
6431
  */
6546
- Vertex: Polygon;
6432
+ PhonicsOfDepartureStation?: string;
6547
6433
  /**
6548
- * 识别出的文本行在旋转纠正之后的图像中的像素坐标
6549
- 注意:此字段可能返回 null,表示取不到有效值。
6434
+ * 到达站
6550
6435
  */
6551
- Coord: Rect;
6552
- }
6553
- /**
6554
- * GeneralAccurateOCR请求参数结构体
6555
- */
6556
- export interface GeneralAccurateOCRRequest {
6436
+ DestinationStation?: string;
6437
+ /**
6438
+ * 到达站英文
6439
+ */
6440
+ PhonicsOfDestinationStation?: string;
6441
+ /**
6442
+ * 火车号
6443
+ */
6444
+ TrainNumber?: string;
6445
+ /**
6446
+ * 火车出发日期
6447
+ */
6448
+ TravelDate?: string;
6449
+ /**
6450
+ * 始发时间
6451
+ */
6452
+ DepartureTime?: string;
6453
+ /**
6454
+ * 空调特点
6455
+ */
6456
+ AirConditioningCharacteristics?: string;
6457
+ /**
6458
+ * 座位类型
6459
+ */
6460
+ SeatLevel?: string;
6461
+ /**
6462
+ * 火车第几车
6463
+ */
6464
+ Carriage?: string;
6465
+ /**
6466
+ * 座位号
6467
+ */
6468
+ Seat?: string;
6557
6469
  /**
6558
- * 图片/PDF的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
6470
+ * 票价
6559
6471
  */
6560
- ImageBase64?: string;
6472
+ Fare?: string;
6561
6473
  /**
6562
- * 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
6474
+ * 发票号码
6563
6475
  */
6564
- ImageUrl?: string;
6476
+ ElectronicInvoiceRailwayETicketNumber?: string;
6565
6477
  /**
6566
- * 是否返回单字信息,默认关
6478
+ * 身份证号
6567
6479
  */
6568
- IsWords?: boolean;
6480
+ IdNumber?: string;
6569
6481
  /**
6570
- * 是否开启原图切图检测功能,开启后可提升“整图面积大,但单字符占比面积小”(例如:试卷)场景下的识别效果,默认关,注:仅ConfigID配置为OCR时支持。
6482
+ * 姓名
6571
6483
  */
6572
- EnableDetectSplit?: boolean;
6484
+ Name?: string;
6573
6485
  /**
6574
- * 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
6486
+ * 金额
6575
6487
  */
6576
- IsPdf?: boolean;
6488
+ TotalAmountExcludingTax?: string;
6577
6489
  /**
6578
- * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
6490
+ * 税率
6579
6491
  */
6580
- PdfPageNumber?: number;
6492
+ TaxRate?: string;
6581
6493
  /**
6582
- * 文本检测开关,默认为true。设置为false可直接进行单行识别,适用于仅包含正向单行文本的图片场景。
6494
+ * 税额
6583
6495
  */
6584
- EnableDetectText?: boolean;
6496
+ TaxAmount?: string;
6585
6497
  /**
6586
- * 配置ID支持: OCR -- 通用场景 MulOCR--多语种场景,注:仅ConfigID配置为OCR时支持
6498
+ * 购买方名称
6587
6499
  */
6588
- ConfigID?: string;
6589
- }
6590
- /**
6591
- * OrgCodeCertOCR请求参数结构体
6592
- */
6593
- export interface OrgCodeCertOCRRequest {
6500
+ NameOfPurchaser?: string;
6594
6501
  /**
6595
- * 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
6502
+ * 统一社会信用代码
6596
6503
  */
6597
- ImageBase64?: string;
6504
+ UnifiedSocialCreditCodeOfPurchaser?: string;
6598
6505
  /**
6599
- * 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
6506
+ * 原发票号码
6600
6507
  */
6601
- ImageUrl?: string;
6508
+ NumberOfOriginalInvoice?: string;
6602
6509
  }
6603
6510
  /**
6604
6511
  * RecognizeFormulaOCR请求参数结构体
@@ -6730,19 +6637,6 @@ export interface VatInvoiceVerifyNewRequest {
6730
6637
  */
6731
6638
  EnableTodayInvoice?: boolean;
6732
6639
  }
6733
- /**
6734
- * InstitutionOCR请求参数结构体
6735
- */
6736
- export interface InstitutionOCRRequest {
6737
- /**
6738
- * 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
6739
- */
6740
- ImageBase64?: string;
6741
- /**
6742
- * 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
6743
- */
6744
- ImageUrl?: string;
6745
- }
6746
6640
  /**
6747
6641
  * 购车发票识别结果
6748
6642
  */
@@ -7044,35 +6938,6 @@ export interface Encryption {
7044
6938
  */
7045
6939
  EncryptList?: Array<string>;
7046
6940
  }
7047
- /**
7048
- * RecognizeGeneralTextImageWarn返回参数结构体
7049
- */
7050
- export interface RecognizeGeneralTextImageWarnResponse {
7051
- /**
7052
- * 复印告警信息
7053
- */
7054
- Copy?: GeneralWarnInfo;
7055
- /**
7056
- * 翻拍告警信息
7057
- */
7058
- Reprint?: GeneralWarnInfo;
7059
- /**
7060
- * 模糊告警信息
7061
- */
7062
- Blur?: GeneralWarnInfo;
7063
- /**
7064
- * 反光告警信息
7065
- */
7066
- Reflection?: GeneralWarnInfo;
7067
- /**
7068
- * 边框不完整告警信息
7069
- */
7070
- BorderIncomplete?: GeneralWarnInfo;
7071
- /**
7072
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7073
- */
7074
- RequestId?: string;
7075
- }
7076
6941
  /**
7077
6942
  * ArithmeticOCR请求参数结构体
7078
6943
  */
@@ -7638,9 +7503,9 @@ export interface OnlineTaxiItinerary {
7638
7503
  */
7639
7504
  Title?: string;
7640
7505
  /**
7641
- * 识别出的字段名称(关键字)
7506
+ * 识别出的字段名称
7642
7507
  */
7643
- Content?: Array<OtherInvoiceItem>;
7508
+ Content?: Array<OnlineTaxiItineraryInfo>;
7644
7509
  }
7645
7510
  /**
7646
7511
  * 文本的坐标,以四个顶点坐标表示
@@ -9044,18 +8909,11 @@ export interface MedicalInvoice {
9044
8909
  */
9045
8910
  export interface HmtResidentPermitOCRRequest {
9046
8911
  /**
9047
- * 图片的 Base64 值。
9048
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
9049
- 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
9050
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
8912
+ * 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
9051
8913
  */
9052
8914
  ImageBase64?: string;
9053
8915
  /**
9054
- * 图片的 Url 地址。
9055
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
9056
- 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
9057
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
9058
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
8916
+ * 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
9059
8917
  */
9060
8918
  ImageUrl?: string;
9061
8919
  /**
@@ -9957,55 +9815,6 @@ export interface ImageCoordinates {
9957
9815
  */
9958
9816
  Height?: number;
9959
9817
  }
9960
- /**
9961
- * RecognizeForeignPermanentResidentIdCard返回参数结构体
9962
- */
9963
- export interface RecognizeForeignPermanentResidentIdCardResponse {
9964
- /**
9965
- * 中文姓名。
9966
- */
9967
- CnName?: string;
9968
- /**
9969
- * 英文名。
9970
- */
9971
- EnName?: string;
9972
- /**
9973
- * 性别。
9974
- */
9975
- Sex?: string;
9976
- /**
9977
- * 出生日期。规范格式为 XXXX年XX月XX日。
9978
- */
9979
- DateOfBirth?: string;
9980
- /**
9981
- * 国籍。
9982
- */
9983
- Nationality?: string;
9984
- /**
9985
- * 有效期限。
9986
- */
9987
- PeriodOfValidity?: string;
9988
- /**
9989
- * 证件号码。
9990
- */
9991
- No?: string;
9992
- /**
9993
- * 曾持证件号码。
9994
- */
9995
- PreviousNumber?: string;
9996
- /**
9997
- * 签发机关。
9998
- */
9999
- IssuedAuthority?: string;
10000
- /**
10001
- * 头像和坐标信息。
10002
- */
10003
- PortraitImageInfo?: PortraitImageInfo;
10004
- /**
10005
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10006
- */
10007
- RequestId?: string;
10008
- }
10009
9818
  /**
10010
9819
  * BusInvoiceOCR请求参数结构体
10011
9820
  */
@@ -10379,51 +10188,6 @@ export interface PermitOCRResponse {
10379
10188
  */
10380
10189
  RequestId?: string;
10381
10190
  }
10382
- /**
10383
- * 定额发票
10384
- */
10385
- export interface QuotaInvoice {
10386
- /**
10387
- * 发票名称
10388
- */
10389
- Title?: string;
10390
- /**
10391
- * 发票代码
10392
- */
10393
- Code?: string;
10394
- /**
10395
- * 发票号码
10396
- */
10397
- Number?: string;
10398
- /**
10399
- * 价税合计(小写)
10400
- */
10401
- Total?: string;
10402
- /**
10403
- * 价税合计(大写)
10404
- */
10405
- TotalCn?: string;
10406
- /**
10407
- * 发票消费类型
10408
- */
10409
- Kind?: string;
10410
- /**
10411
- * 省
10412
- */
10413
- Province?: string;
10414
- /**
10415
- * 市
10416
- */
10417
- City?: string;
10418
- /**
10419
- * 是否存在二维码(1:有,0:无)
10420
- */
10421
- QRCodeMark?: number;
10422
- /**
10423
- * 是否有公司印章(0:没有,1:有)
10424
- */
10425
- CompanySealMark?: number;
10426
- }
10427
10191
  /**
10428
10192
  * InsuranceBillOCR请求参数结构体
10429
10193
  */
@@ -10917,44 +10681,6 @@ export interface RideHailingTransportLicenseOCRRequest {
10917
10681
  */
10918
10682
  ImageUrl?: string;
10919
10683
  }
10920
- /**
10921
- * VatInvoiceVerifyNew返回参数结构体
10922
- */
10923
- export interface VatInvoiceVerifyNewResponse {
10924
- /**
10925
- * 增值税发票、购车发票、全电发票的基础要素字段信息。
10926
- */
10927
- Invoice?: VatInvoice;
10928
- /**
10929
- * 机动车销售统一发票详细字段信息。
10930
- */
10931
- VehicleInvoiceInfo?: VehicleInvoiceInfo;
10932
- /**
10933
- * 二手车销售统一发票详细字段信息。
10934
- */
10935
- UsedVehicleInvoiceInfo?: UsedVehicleInvoiceInfo;
10936
- /**
10937
- * 通行费发票详细字段信息。
10938
- */
10939
- PassInvoiceInfoList?: Array<PassInvoiceInfo>;
10940
- /**
10941
- * 全电发票(铁路电子客票)详细字段信息。
10942
-
10943
- */
10944
- ElectronicTrainTicket?: ElectronicTrainTicket;
10945
- /**
10946
- * 全电发票(航空运输电子客票行程单)详细字段信息。
10947
- */
10948
- ElectronicAirTransport?: ElectronicAirTransport;
10949
- /**
10950
- * 财政发票详细字段信息
10951
- */
10952
- FinancialBill?: FinancialBill;
10953
- /**
10954
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10955
- */
10956
- RequestId?: string;
10957
- }
10958
10684
  /**
10959
10685
  * MLIDCardOCR返回参数结构体
10960
10686
  */
@@ -11455,57 +11181,48 @@ export interface FinanBillOCRRequest {
11455
11181
  ImageUrl?: string;
11456
11182
  }
11457
11183
  /**
11458
- * RecognizeGeneralTextImageWarn请求参数结构体
11184
+ * RecognizeValidIDCardOCR返回参数结构体
11459
11185
  */
11460
- export interface RecognizeGeneralTextImageWarnRequest {
11461
- /**
11462
- * 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
11463
- */
11464
- ImageUrl?: string;
11465
- /**
11466
- * 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
11467
- */
11468
- ImageBase64?: string;
11469
- /**
11470
- * 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。 示例值:false
11471
- */
11472
- EnablePdf?: boolean;
11473
- /**
11474
- * 需要识别的PDF页面的对应页码,传入时仅支持PDF单页识别,当上传文件为PDF且EnablePdf参数值为true时有效,默认值为1。 示例值:1
11475
- */
11476
- PdfPageNumber?: number;
11186
+ export interface RecognizeValidIDCardOCRResponse {
11477
11187
  /**
11478
- * 支持的模板类型
11479
- - General 通用告警(支持所有类型告警)
11480
- - LicensePlate 车牌告警(支持翻拍告警)
11188
+ * 卡证类型
11189
+ 身份证人像面
11190
+ 身份证国徽面
11191
+
11192
+ 临时身份证人像面
11193
+ 临时身份证人像面
11194
+
11195
+ 港澳台居住证人像面
11196
+ 港澳台居住证国徽面
11197
+
11198
+ 外国人永久居留证人像面
11199
+ 外国人永久居留证国徽面
11481
11200
  */
11482
11201
  Type?: string;
11483
- }
11484
- /**
11485
- * RecognizeForeignPermanentResidentIdCard请求参数结构体
11486
- */
11487
- export interface RecognizeForeignPermanentResidentIdCardRequest {
11488
11202
  /**
11489
- * 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。示例值:https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/docume
11203
+ * 身份证信息
11204
+ 注意:此字段可能返回 null,表示取不到有效值。
11490
11205
  */
11491
- ImageUrl?: string;
11206
+ IDCardInfo?: IDCardInfo;
11492
11207
  /**
11493
- * 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
11208
+ * 临时身份证信息
11209
+ 注意:此字段可能返回 null,表示取不到有效值。
11494
11210
  */
11495
- ImageBase64?: string;
11211
+ TemporaryIDCardInfo?: TemporaryIDCardInfo;
11496
11212
  /**
11497
- * 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
11213
+ * 港澳台居住证信息
11214
+ 注意:此字段可能返回 null,表示取不到有效值。
11498
11215
  */
11499
- EnablePdf?: boolean;
11216
+ ResidencePermitInfo?: ResidencePermitInfo;
11500
11217
  /**
11501
- * 需要识别的PDF页面的对应页码,传入时仅支持PDF单页识别,当上传文件为PDF且EnablePdf参数值为true时有效,默认值为1。
11502
- 示例值:1
11218
+ * 外国人永久居留证信息
11219
+ 注意:此字段可能返回 null,表示取不到有效值。
11503
11220
  */
11504
- PdfPageNumber?: number;
11221
+ PermanentResidencePermitInfo?: PermanentResidencePermitInfo;
11505
11222
  /**
11506
- * 是否返回头像和位置坐标
11223
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11507
11224
  */
11508
- CropPortrait?: boolean;
11225
+ RequestId?: string;
11509
11226
  }
11510
11227
  /**
11511
11228
  * GeneralFastOCR返回参数结构体