tencentcloud-sdk-nodejs-ocr 4.0.841 → 4.0.844

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.
@@ -559,6 +559,36 @@ export interface MLIDPassportOCRRequest {
559
559
  ImageUrl?: string
560
560
  }
561
561
 
562
+ /**
563
+ * RecognizeGeneralTextImageWarn返回参数结构体
564
+ */
565
+ export interface RecognizeGeneralTextImageWarnResponse {
566
+ /**
567
+ * 复印告警信息
568
+ */
569
+ Copy?: GeneralWarnInfo
570
+ /**
571
+ * 翻拍告警信息
572
+ */
573
+ Reprint?: GeneralWarnInfo
574
+ /**
575
+ * 模糊告警信息
576
+ */
577
+ Blur?: GeneralWarnInfo
578
+ /**
579
+ * 反光告警信息
580
+ */
581
+ Reflection?: GeneralWarnInfo
582
+ /**
583
+ * 边框不完整告警信息
584
+ */
585
+ BorderIncomplete?: GeneralWarnInfo
586
+ /**
587
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
588
+ */
589
+ RequestId?: string
590
+ }
591
+
562
592
  /**
563
593
  * 智能结构化元素组
564
594
  */
@@ -1394,68 +1424,91 @@ export interface VehicleRegCertInfo {
1394
1424
  }
1395
1425
 
1396
1426
  /**
1397
- * IDCardOCR返回参数结构体
1427
+ * 全电发票(航空运输电子客票行程单)
1398
1428
  */
1399
- export interface IDCardOCRResponse {
1429
+ export interface ElectronicAirTransport {
1400
1430
  /**
1401
- * 姓名(人像面)
1431
+ * 发票代码
1432
+ 注意:此字段可能返回 null,表示取不到有效值。
1402
1433
  */
1403
- Name?: string
1434
+ Code?: string
1404
1435
  /**
1405
- * 性别(人像面)
1436
+ * 发票号码
1437
+ 注意:此字段可能返回 null,表示取不到有效值。
1406
1438
  */
1407
- Sex?: string
1439
+ Number?: string
1408
1440
  /**
1409
- * 民族(人像面)
1441
+ * 开票日期
1442
+ 注意:此字段可能返回 null,表示取不到有效值。
1410
1443
  */
1411
- Nation?: string
1444
+ Date?: string
1412
1445
  /**
1413
- * 出生日期(人像面)
1446
+ * 金额
1447
+ 注意:此字段可能返回 null,表示取不到有效值。
1414
1448
  */
1415
- Birth?: string
1449
+ Amount?: string
1416
1450
  /**
1417
- * 地址(人像面)
1451
+ * 校验码
1452
+ 注意:此字段可能返回 null,表示取不到有效值。
1418
1453
  */
1419
- Address?: string
1454
+ CheckCode?: string
1420
1455
  /**
1421
- * 身份证号(人像面)
1456
+ * 价税合计
1457
+ 注意:此字段可能返回 null,表示取不到有效值。
1422
1458
  */
1423
- IdNum?: string
1459
+ Total?: string
1424
1460
  /**
1425
- * 发证机关(国徽面)
1461
+ * 抵扣标志
1462
+ 注意:此字段可能返回 null,表示取不到有效值。
1426
1463
  */
1427
- Authority?: string
1464
+ DeductionMark?: string
1428
1465
  /**
1429
- * 证件有效期(国徽面)
1466
+ * 发票状态代码,0正常 1 未更新 2作废 3已红冲
1467
+ 注意:此字段可能返回 null,表示取不到有效值。
1430
1468
  */
1431
- ValidDate?: string
1469
+ StateCode?: string
1432
1470
  /**
1433
- * 扩展信息,不请求则不返回,具体输入参考示例3和示例4。
1434
- IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;
1435
- Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;
1436
-
1437
- Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);
1438
- BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);
1439
-
1440
- WarnInfos,告警信息,Code 告警码列表和释义:
1441
- -9100 身份证有效日期不合法告警,
1442
- -9101 身份证边框不完整告警,
1443
- -9102 身份证复印件告警,
1444
- -9103 身份证翻拍告警,
1445
- -9105 身份证框内遮挡告警,
1446
- -9104 临时身份证告警,
1447
- -9106 身份证疑似存在PS痕迹告警,
1448
- -9107 身份证反光告警。
1471
+ * 购方识别号
1472
+ 注意:此字段可能返回 null,表示取不到有效值。
1449
1473
  */
1450
- AdvancedInfo?: string
1474
+ BuyerTaxCode?: string
1451
1475
  /**
1452
- * 反光点覆盖区域详情结果,具体内容请点击左侧链接
1476
+ * 购方名称
1477
+ 注意:此字段可能返回 null,表示取不到有效值。
1453
1478
  */
1454
- ReflectDetailInfos?: Array<ReflectDetailInfo>
1479
+ BuyerName?: string
1455
1480
  /**
1456
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1481
+ * 合计税额
1482
+ 注意:此字段可能返回 null,表示取不到有效值。
1457
1483
  */
1458
- RequestId?: string
1484
+ Tax?: string
1485
+ /**
1486
+ * 国内国际标识
1487
+ 注意:此字段可能返回 null,表示取不到有效值。
1488
+ */
1489
+ DomesticInternationalMark?: string
1490
+ /**
1491
+ * 旅客姓名
1492
+ 注意:此字段可能返回 null,表示取不到有效值。
1493
+ */
1494
+ PassengerName?: string
1495
+ /**
1496
+ * 有效身份证件号码
1497
+ 注意:此字段可能返回 null,表示取不到有效值。
1498
+ */
1499
+ PassengerNo?: string
1500
+ /**
1501
+ * 电子客票号码
1502
+ 注意:此字段可能返回 null,表示取不到有效值。
1503
+ */
1504
+ ElectronicNumber?: string
1505
+ /**
1506
+ * 全电发票(航空运输电子客票行程单)详细信息
1507
+
1508
+
1509
+ 注意:此字段可能返回 null,表示取不到有效值。
1510
+ */
1511
+ ElectronicAirTransportDetails?: Array<ElectronicAirTransportDetail>
1459
1512
  }
1460
1513
 
1461
1514
  /**
@@ -1569,13 +1622,9 @@ export interface SealInfo {
1569
1622
  }
1570
1623
 
1571
1624
  /**
1572
- * RecognizePhilippinesVoteIDOCR请求参数结构体
1625
+ * RecognizeIndonesiaIDCardOCR请求参数结构体
1573
1626
  */
1574
- export interface RecognizePhilippinesVoteIDOCRRequest {
1575
- /**
1576
- * 是否返回人像照片。
1577
- */
1578
- ReturnHeadImage: boolean
1627
+ export interface RecognizeIndonesiaIDCardOCRRequest {
1579
1628
  /**
1580
1629
  * 图片的 Base64 值。
1581
1630
  支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
@@ -1591,6 +1640,17 @@ export interface RecognizePhilippinesVoteIDOCRRequest {
1591
1640
  非腾讯云存储的 Url 速度和稳定性可能受一定影响。
1592
1641
  */
1593
1642
  ImageUrl?: string
1643
+ /**
1644
+ * 是否返回人像照片。
1645
+ */
1646
+ ReturnHeadImage?: boolean
1647
+ /**
1648
+ * 场景参数,默认值为V1
1649
+ 可选值:
1650
+ V1
1651
+ V2
1652
+ */
1653
+ Scene?: string
1594
1654
  }
1595
1655
 
1596
1656
  /**
@@ -3474,91 +3534,23 @@ export interface Key {
3474
3534
  }
3475
3535
 
3476
3536
  /**
3477
- * 全电发票(航空运输电子客票行程单)
3537
+ * 通用告警详情
3478
3538
  */
3479
- export interface ElectronicAirTransport {
3480
- /**
3481
- * 发票代码
3482
- 注意:此字段可能返回 null,表示取不到有效值。
3483
- */
3484
- Code?: string
3485
- /**
3486
- * 发票号码
3487
- 注意:此字段可能返回 null,表示取不到有效值。
3488
- */
3489
- Number?: string
3490
- /**
3491
- * 开票日期
3492
- 注意:此字段可能返回 null,表示取不到有效值。
3493
- */
3494
- Date?: string
3495
- /**
3496
- * 金额
3497
- 注意:此字段可能返回 null,表示取不到有效值。
3498
- */
3499
- Amount?: string
3500
- /**
3501
- * 校验码
3502
- 注意:此字段可能返回 null,表示取不到有效值。
3503
- */
3504
- CheckCode?: string
3505
- /**
3506
- * 价税合计
3507
- 注意:此字段可能返回 null,表示取不到有效值。
3508
- */
3509
- Total?: string
3510
- /**
3511
- * 抵扣标志
3512
- 注意:此字段可能返回 null,表示取不到有效值。
3513
- */
3514
- DeductionMark?: string
3515
- /**
3516
- * 发票状态代码,0正常 1 未更新 2作废 3已红冲
3517
- 注意:此字段可能返回 null,表示取不到有效值。
3518
- */
3519
- StateCode?: string
3520
- /**
3521
- * 购方识别号
3522
- 注意:此字段可能返回 null,表示取不到有效值。
3523
- */
3524
- BuyerTaxCode?: string
3525
- /**
3526
- * 购方名称
3527
- 注意:此字段可能返回 null,表示取不到有效值。
3528
- */
3529
- BuyerName?: string
3530
- /**
3531
- * 合计税额
3532
- 注意:此字段可能返回 null,表示取不到有效值。
3533
- */
3534
- Tax?: string
3535
- /**
3536
- * 国内国际标识
3537
- 注意:此字段可能返回 null,表示取不到有效值。
3538
- */
3539
- DomesticInternationalMark?: string
3539
+ export interface GeneralWarnInfo {
3540
3540
  /**
3541
- * 旅客姓名
3542
- 注意:此字段可能返回 null,表示取不到有效值。
3543
- */
3544
- PassengerName?: string
3545
- /**
3546
- * 有效身份证件号码
3547
- 注意:此字段可能返回 null,表示取不到有效值。
3541
+ * 是否存在该告警
3548
3542
  */
3549
- PassengerNo?: string
3543
+ IsWarn?: boolean
3550
3544
  /**
3551
- * 电子客票号码
3552
- 注意:此字段可能返回 null,表示取不到有效值。
3545
+ * 告警位置四点坐标
3553
3546
  */
3554
- ElectronicNumber?: string
3547
+ Polygon?: Array<Polygon>
3555
3548
  /**
3556
- * 全电发票(航空运输电子客票行程单)详细信息
3549
+ * 特殊判定,支持包括
3557
3550
 
3558
-
3559
- 注意:此字段可能返回 null,表示取不到有效值。
3551
+ Finger:由手指导致的不完整,仅在不完整告警中返回
3560
3552
  */
3561
- ElectronicAirTransportDetails?: Array<ElectronicAirTransportDetail>
3553
+ SpecificMatter?: string
3562
3554
  }
3563
3555
 
3564
3556
  /**
@@ -6195,46 +6187,79 @@ export interface OtherInvoiceList {
6195
6187
  }
6196
6188
 
6197
6189
  /**
6198
- * RecognizeIndonesiaIDCardOCR请求参数结构体
6190
+ * IDCardOCR返回参数结构体
6199
6191
  */
6200
- export interface RecognizeIndonesiaIDCardOCRRequest {
6192
+ export interface IDCardOCRResponse {
6201
6193
  /**
6202
- * 图片的 Base64 值。
6203
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
6204
- 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
6205
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
6194
+ * 姓名(人像面)
6206
6195
  */
6207
- ImageBase64?: string
6196
+ Name?: string
6208
6197
  /**
6209
- * 图片的 Url 地址。
6210
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
6211
- 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
6212
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
6213
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
6198
+ * 性别(人像面)
6214
6199
  */
6215
- ImageUrl?: string
6200
+ Sex?: string
6216
6201
  /**
6217
- * 是否返回人像照片。
6202
+ * 民族(人像面)
6218
6203
  */
6219
- ReturnHeadImage?: boolean
6204
+ Nation?: string
6220
6205
  /**
6221
- * 场景参数,默认值为V1
6222
- 可选值:
6223
- V1
6224
- V2
6206
+ * 出生日期(人像面)
6225
6207
  */
6226
- Scene?: string
6227
- }
6228
-
6229
- /**
6230
- * 轮船票字段信息
6231
- */
6232
- export interface ShipInvoiceInfo {
6208
+ Birth?: string
6233
6209
  /**
6234
- * 识别出的字段名称(关键字),支持以下字段:
6235
- 发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、省、市、币种。
6210
+ * 地址(人像面)
6236
6211
  */
6237
- Name: string
6212
+ Address?: string
6213
+ /**
6214
+ * 身份证号(人像面)
6215
+ */
6216
+ IdNum?: string
6217
+ /**
6218
+ * 发证机关(国徽面)
6219
+ */
6220
+ Authority?: string
6221
+ /**
6222
+ * 证件有效期(国徽面)
6223
+ */
6224
+ ValidDate?: string
6225
+ /**
6226
+ * 扩展信息,不请求则不返回,具体输入参考示例3和示例4。
6227
+ IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;
6228
+ Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;
6229
+
6230
+ Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);
6231
+ BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);
6232
+
6233
+ WarnInfos,告警信息,Code 告警码列表和释义:
6234
+ -9100 身份证有效日期不合法告警,
6235
+ -9101 身份证边框不完整告警,
6236
+ -9102 身份证复印件告警,
6237
+ -9103 身份证翻拍告警,
6238
+ -9105 身份证框内遮挡告警,
6239
+ -9104 临时身份证告警,
6240
+ -9106 身份证疑似存在PS痕迹告警,
6241
+ -9107 身份证反光告警。
6242
+ */
6243
+ AdvancedInfo?: string
6244
+ /**
6245
+ * 反光点覆盖区域详情结果,具体内容请点击左侧链接
6246
+ */
6247
+ ReflectDetailInfos?: Array<ReflectDetailInfo>
6248
+ /**
6249
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6250
+ */
6251
+ RequestId?: string
6252
+ }
6253
+
6254
+ /**
6255
+ * 轮船票字段信息
6256
+ */
6257
+ export interface ShipInvoiceInfo {
6258
+ /**
6259
+ * 识别出的字段名称(关键字),支持以下字段:
6260
+ 发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、省、市、币种。
6261
+ */
6262
+ Name: string
6238
6263
  /**
6239
6264
  * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
6240
6265
  */
@@ -6698,48 +6723,22 @@ export interface Encryption {
6698
6723
  }
6699
6724
 
6700
6725
  /**
6701
- * ArithmeticOCR请求参数结构体
6726
+ * GetTaskState返回参数结构体
6702
6727
  */
6703
- export interface ArithmeticOCRRequest {
6704
- /**
6705
- * 图片的 Base64 值。
6706
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
6707
- 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
6708
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
6709
- */
6710
- ImageBase64?: string
6711
- /**
6712
- * 图片的 Url 地址。
6713
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
6714
- 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
6715
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
6716
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
6717
- */
6718
- ImageUrl?: string
6719
- /**
6720
- * 用于选择是否支持横屏拍摄。打开则支持横屏拍摄图片角度判断,角度信息在返回参数的angle中,默认值为true
6721
- */
6722
- SupportHorizontalImage?: boolean
6723
- /**
6724
- * 是否拒绝非速算图,打开则拒绝非速算图(注:非速算图是指风景人物等明显不是速算图片的图片),默认值为false
6725
- */
6726
- RejectNonArithmeticPic?: boolean
6727
- /**
6728
- * 是否展开耦合算式中的竖式计算,默认值为false
6729
- */
6730
- EnableDispRelatedVertical?: boolean
6731
- /**
6732
- * 是否展示竖式算式的中间结果和格式控制字符,默认值为false
6733
- */
6734
- EnableDispMidResult?: boolean
6728
+ export interface GetTaskStateResponse {
6735
6729
  /**
6736
- * 是否开启pdf识别,默认值为true
6730
+ * 1:任务识别完成,还未提交
6731
+ 2:任务已手动关闭
6732
+ 3:任务已提交
6733
+ 4:任务识别中
6734
+ 5:超时:任务超过了可操作的24H时限
6735
+ 6:任务识别失败
6737
6736
  */
6738
- EnablePdfRecognize?: boolean
6737
+ TaskState?: number
6739
6738
  /**
6740
- * pdf页码,从0开始,默认为0
6739
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6741
6740
  */
6742
- PdfPageIndex?: number
6741
+ RequestId?: string
6743
6742
  }
6744
6743
 
6745
6744
  /**
@@ -7434,22 +7433,48 @@ export interface VinOCRResponse {
7434
7433
  }
7435
7434
 
7436
7435
  /**
7437
- * GetTaskState返回参数结构体
7436
+ * ArithmeticOCR请求参数结构体
7438
7437
  */
7439
- export interface GetTaskStateResponse {
7438
+ export interface ArithmeticOCRRequest {
7440
7439
  /**
7441
- * 1:任务识别完成,还未提交
7442
- 2:任务已手动关闭
7443
- 3:任务已提交
7444
- 4:任务识别中
7445
- 5:超时:任务超过了可操作的24H时限
7446
- 6:任务识别失败
7440
+ * 图片的 Base64 值。
7441
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
7442
+ 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
7443
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
7447
7444
  */
7448
- TaskState?: number
7445
+ ImageBase64?: string
7449
7446
  /**
7450
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7447
+ * 图片的 Url 地址。
7448
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
7449
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
7450
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
7451
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
7451
7452
  */
7452
- RequestId?: string
7453
+ ImageUrl?: string
7454
+ /**
7455
+ * 用于选择是否支持横屏拍摄。打开则支持横屏拍摄图片角度判断,角度信息在返回参数的angle中,默认值为true
7456
+ */
7457
+ SupportHorizontalImage?: boolean
7458
+ /**
7459
+ * 是否拒绝非速算图,打开则拒绝非速算图(注:非速算图是指风景人物等明显不是速算图片的图片),默认值为false
7460
+ */
7461
+ RejectNonArithmeticPic?: boolean
7462
+ /**
7463
+ * 是否展开耦合算式中的竖式计算,默认值为false
7464
+ */
7465
+ EnableDispRelatedVertical?: boolean
7466
+ /**
7467
+ * 是否展示竖式算式的中间结果和格式控制字符,默认值为false
7468
+ */
7469
+ EnableDispMidResult?: boolean
7470
+ /**
7471
+ * 是否开启pdf识别,默认值为true
7472
+ */
7473
+ EnablePdfRecognize?: boolean
7474
+ /**
7475
+ * pdf页码,从0开始,默认为0
7476
+ */
7477
+ PdfPageIndex?: number
7453
7478
  }
7454
7479
 
7455
7480
  /**
@@ -7502,6 +7527,31 @@ export interface TextGeneralHandwriting {
7502
7527
  WordPolygon: Array<Polygon>
7503
7528
  }
7504
7529
 
7530
+ /**
7531
+ * RecognizePhilippinesVoteIDOCR请求参数结构体
7532
+ */
7533
+ export interface RecognizePhilippinesVoteIDOCRRequest {
7534
+ /**
7535
+ * 是否返回人像照片。
7536
+ */
7537
+ ReturnHeadImage: boolean
7538
+ /**
7539
+ * 图片的 Base64 值。
7540
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
7541
+ 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
7542
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
7543
+ */
7544
+ ImageBase64?: string
7545
+ /**
7546
+ * 图片的 Url 地址。
7547
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
7548
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
7549
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
7550
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
7551
+ */
7552
+ ImageUrl?: string
7553
+ }
7554
+
7505
7555
  /**
7506
7556
  * PassportOCR请求参数结构体
7507
7557
  */
@@ -10211,6 +10261,103 @@ export interface QuotaInvoiceOCRResponse {
10211
10261
  RequestId?: string
10212
10262
  }
10213
10263
 
10264
+ /**
10265
+ * RecognizeGeneralTextImageWarn请求参数结构体
10266
+ */
10267
+ export interface RecognizeGeneralTextImageWarnRequest {
10268
+ /**
10269
+ * 图片的 Url 地址。
10270
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
10271
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
10272
+ 支持的图片像素:需介于20-10000px之间。
10273
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
10274
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
10275
+ */
10276
+ ImageUrl?: string
10277
+ /**
10278
+ * 图片的 Base64 值。
10279
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
10280
+ 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
10281
+ 支持的图片像素:需介于20-10000px之间。
10282
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
10283
+ */
10284
+ ImageBase64?: string
10285
+ /**
10286
+ * 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。 示例值:false
10287
+ */
10288
+ EnablePdf?: boolean
10289
+ /**
10290
+ * 需要识别的PDF页面的对应页码,传入时仅支持PDF单页识别,当上传文件为PDF且EnablePdf参数值为true时有效,默认值为1。 示例值:1
10291
+ */
10292
+ PdfPageNumber?: number
10293
+ /**
10294
+ * 支持的模板类型
10295
+ - General 通用告警
10296
+ - LicensePlate 车牌告警
10297
+ */
10298
+ Type?: string
10299
+ }
10300
+
10301
+ /**
10302
+ * RecognizeForeignPermanentResidentIdCard请求参数结构体
10303
+ */
10304
+ export interface RecognizeForeignPermanentResidentIdCardRequest {
10305
+ /**
10306
+ * 图片的 Url 地址。
10307
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
10308
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
10309
+ 支持的图片像素:需介于20-10000px之间。
10310
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
10311
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
10312
+ 示例值:https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/docume
10313
+ */
10314
+ ImageUrl?: string
10315
+ /**
10316
+ * 图片的 Base64 值。
10317
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
10318
+ 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
10319
+ 支持的图片像素:需介于20-10000px之间。
10320
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
10321
+ */
10322
+ ImageBase64?: string
10323
+ /**
10324
+ * 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
10325
+ */
10326
+ EnablePdf?: boolean
10327
+ /**
10328
+ * 需要识别的PDF页面的对应页码,传入时仅支持PDF单页识别,当上传文件为PDF且EnablePdf参数值为true时有效,默认值为1。
10329
+ 示例值:1
10330
+ */
10331
+ PdfPageNumber?: number
10332
+ }
10333
+
10334
+ /**
10335
+ * GeneralFastOCR返回参数结构体
10336
+ */
10337
+ export interface GeneralFastOCRResponse {
10338
+ /**
10339
+ * 检测到的文本信息,具体内容请点击左侧链接。
10340
+ */
10341
+ TextDetections: Array<TextDetection>
10342
+ /**
10343
+ * 检测到的语言,目前支持的语种范围为:简体中文、繁体中文、英文、日文、韩文。未来将陆续新增对更多语种的支持。
10344
+ 返回结果含义为:zh - 中英混合,jap - 日文,kor - 韩文。
10345
+ */
10346
+ Language: string
10347
+ /**
10348
+ * 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负
10349
+ */
10350
+ Angel: number
10351
+ /**
10352
+ * 图片为PDF时,返回PDF的总页数,默认为0
10353
+ */
10354
+ PdfPageSize: number
10355
+ /**
10356
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10357
+ */
10358
+ RequestId?: string
10359
+ }
10360
+
10214
10361
  /**
10215
10362
  * 二手车销售统一发票
10216
10363
  */
@@ -10389,66 +10536,6 @@ export interface UsedCarPurchaseInvoice {
10389
10536
  MachineNumber?: string
10390
10537
  }
10391
10538
 
10392
- /**
10393
- * RecognizeForeignPermanentResidentIdCard请求参数结构体
10394
- */
10395
- export interface RecognizeForeignPermanentResidentIdCardRequest {
10396
- /**
10397
- * 图片的 Url 地址。
10398
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
10399
- 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
10400
- 支持的图片像素:需介于20-10000px之间。
10401
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
10402
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
10403
- 示例值:https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/docume
10404
- */
10405
- ImageUrl?: string
10406
- /**
10407
- * 图片的 Base64 值。
10408
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
10409
- 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
10410
- 支持的图片像素:需介于20-10000px之间。
10411
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
10412
- */
10413
- ImageBase64?: string
10414
- /**
10415
- * 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
10416
- */
10417
- EnablePdf?: boolean
10418
- /**
10419
- * 需要识别的PDF页面的对应页码,传入时仅支持PDF单页识别,当上传文件为PDF且EnablePdf参数值为true时有效,默认值为1。
10420
- 示例值:1
10421
- */
10422
- PdfPageNumber?: number
10423
- }
10424
-
10425
- /**
10426
- * GeneralFastOCR返回参数结构体
10427
- */
10428
- export interface GeneralFastOCRResponse {
10429
- /**
10430
- * 检测到的文本信息,具体内容请点击左侧链接。
10431
- */
10432
- TextDetections: Array<TextDetection>
10433
- /**
10434
- * 检测到的语言,目前支持的语种范围为:简体中文、繁体中文、英文、日文、韩文。未来将陆续新增对更多语种的支持。
10435
- 返回结果含义为:zh - 中英混合,jap - 日文,kor - 韩文。
10436
- */
10437
- Language: string
10438
- /**
10439
- * 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负
10440
- */
10441
- Angel: number
10442
- /**
10443
- * 图片为PDF时,返回PDF的总页数,默认为0
10444
- */
10445
- PdfPageSize: number
10446
- /**
10447
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10448
- */
10449
- RequestId?: string
10450
- }
10451
-
10452
10539
  /**
10453
10540
  * 二维码/条形码坐标信息
10454
10541
  */