tencentcloud-sdk-nodejs-ocr 4.0.542 → 4.0.544

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.
@@ -724,62 +724,62 @@ export interface DriverLicenseOCRResponse {
724
724
  /**
725
725
  * 姓名
726
726
  */
727
- Name: string
727
+ Name?: string
728
728
 
729
729
  /**
730
730
  * 性别
731
731
  */
732
- Sex: string
732
+ Sex?: string
733
733
 
734
734
  /**
735
735
  * 国籍
736
736
  */
737
- Nationality: string
737
+ Nationality?: string
738
738
 
739
739
  /**
740
740
  * 住址
741
741
  */
742
- Address: string
742
+ Address?: string
743
743
 
744
744
  /**
745
745
  * 出生日期(YYYY-MM-DD)
746
746
  */
747
- DateOfBirth: string
747
+ DateOfBirth?: string
748
748
 
749
749
  /**
750
750
  * 初次领证日期(YYYY-MM-DD)
751
751
  */
752
- DateOfFirstIssue: string
752
+ DateOfFirstIssue?: string
753
753
 
754
754
  /**
755
755
  * 准驾车型
756
756
  */
757
- Class: string
757
+ Class?: string
758
758
 
759
759
  /**
760
760
  * 有效期开始时间(YYYY-MM-DD)
761
761
  */
762
- StartDate: string
762
+ StartDate?: string
763
763
 
764
764
  /**
765
765
  * 有效期截止时间(YYYY-MM-DD)
766
766
  */
767
- EndDate: string
767
+ EndDate?: string
768
768
 
769
769
  /**
770
770
  * 证号
771
771
  */
772
- CardCode: string
772
+ CardCode?: string
773
773
 
774
774
  /**
775
775
  * 档案编号
776
776
  */
777
- ArchivesCode: string
777
+ ArchivesCode?: string
778
778
 
779
779
  /**
780
780
  * 记录
781
781
  */
782
- Record: string
782
+ Record?: string
783
783
 
784
784
  /**
785
785
  * Code 告警码列表和释义:
@@ -788,7 +788,7 @@ export interface DriverLicenseOCRResponse {
788
788
  -9106 ps告警
789
789
  注:告警码可以同时存在多个
790
790
  */
791
- RecognizeWarnCode: Array<number>
791
+ RecognizeWarnCode?: Array<number>
792
792
 
793
793
  /**
794
794
  * 告警码说明:
@@ -797,22 +797,22 @@ WARN_DRIVER_LICENSE_SCREENED_CARD 翻拍件告警
797
797
  WARN_DRIVER_LICENSE_PS_CARD ps告警
798
798
  注:告警信息可以同时存在多个
799
799
  */
800
- RecognizeWarnMsg: Array<string>
800
+ RecognizeWarnMsg?: Array<string>
801
801
 
802
802
  /**
803
803
  * 发证单位
804
804
  */
805
- IssuingAuthority: string
805
+ IssuingAuthority?: string
806
806
 
807
807
  /**
808
808
  * 状态(仅电子驾驶证支持返回该字段)
809
809
  */
810
- State: string
810
+ State?: string
811
811
 
812
812
  /**
813
813
  * 累积记分(仅电子驾驶证支持返回该字段)
814
814
  */
815
- CumulativeScore: string
815
+ CumulativeScore?: string
816
816
 
817
817
  /**
818
818
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -835,6 +835,26 @@ export interface WaybillOCRResponse {
835
835
  RequestId?: string
836
836
  }
837
837
 
838
+ /**
839
+ * CreateAIFormTask请求参数结构体
840
+ */
841
+ export interface CreateAIFormTaskRequest {
842
+ /**
843
+ * 多个文件的URL列表
844
+ */
845
+ FileList: Array<SmartFormFileUrl>
846
+
847
+ /**
848
+ * 备注信息1
849
+ */
850
+ FirstNotes?: string
851
+
852
+ /**
853
+ * 备注信息2
854
+ */
855
+ SecondNotes?: string
856
+ }
857
+
838
858
  /**
839
859
  * 识别出来的单词信息包括单词(包括单词Character和单词置信度confidence)
840
860
  */
@@ -1391,13 +1411,26 @@ export interface InvoiceGeneralInfo {
1391
1411
  }
1392
1412
 
1393
1413
  /**
1394
- * 英文OCR识别出的单词在原图中的四点坐标数组
1414
+ * 增值税发票识别结果
1395
1415
  */
1396
- export interface WordCoordPoint {
1416
+ export interface TextVatInvoice {
1397
1417
  /**
1398
- * 英文OCR识别出的每个单词在原图中的四点坐标。
1418
+ * 识别出的字段名称(关键字)。支持以下字段的识别:
1419
+ 发票代码、 发票号码、 打印发票代码、 打印发票号码、 开票日期、 购买方识别号、 小写金额、 价税合计(大写)、 销售方识别号、 校验码、 购买方名称、 销售方名称、 税额、 复核、 联次名称、 备注、 联次、 密码区、 开票人、 收款人、 (货物或应税劳务、服务名称)、省、 市、 服务类型、 通行费标志、 是否代开、 是否收购、 合计金额、 是否有公司印章、 发票消费类型、 车船税、 机器编号、 成品油标志、 税率、 合计税额、 (购买方地址、电话)、 (销售方地址、电话)、 单价、 金额、 销售方开户行及账号、 购买方开户行及账号、 规格型号、 发票名称、 单位、 数量、 校验码备选、 校验码后六位备选、发票号码备选、车牌号、类型、通行日期起、通行日期止、发票类型。
1420
+ */
1421
+ Name: string
1422
+
1423
+ /**
1424
+ * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
1399
1425
  */
1400
- WordCoordinate: Array<Coord>
1426
+ Value: string
1427
+
1428
+ /**
1429
+ * 字段在原图中的中的四点坐标。
1430
+ 注意:此字段可能返回 null,表示取不到有效值。
1431
+ 注意:此字段可能返回 null,表示取不到有效值。
1432
+ */
1433
+ Polygon: Polygon
1401
1434
  }
1402
1435
 
1403
1436
  /**
@@ -1407,27 +1440,27 @@ export interface InstitutionOCRResponse {
1407
1440
  /**
1408
1441
  * 注册号
1409
1442
  */
1410
- RegId: string
1443
+ RegId?: string
1411
1444
 
1412
1445
  /**
1413
1446
  * 有效期
1414
1447
  */
1415
- ValidDate: string
1448
+ ValidDate?: string
1416
1449
 
1417
1450
  /**
1418
1451
  * 住所
1419
1452
  */
1420
- Location: string
1453
+ Location?: string
1421
1454
 
1422
1455
  /**
1423
1456
  * 名称
1424
1457
  */
1425
- Name: string
1458
+ Name?: string
1426
1459
 
1427
1460
  /**
1428
1461
  * 法定代表人
1429
1462
  */
1430
- LegalPerson: string
1463
+ LegalPerson?: string
1431
1464
 
1432
1465
  /**
1433
1466
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -1706,6 +1739,16 @@ export interface WaybillObj {
1706
1739
  Text: string
1707
1740
  }
1708
1741
 
1742
+ /**
1743
+ * 英文OCR识别出的单词在原图中的四点坐标数组
1744
+ */
1745
+ export interface WordCoordPoint {
1746
+ /**
1747
+ * 英文OCR识别出的每个单词在原图中的四点坐标。
1748
+ */
1749
+ WordCoordinate: Array<Coord>
1750
+ }
1751
+
1709
1752
  /**
1710
1753
  * 票据检测结果
1711
1754
  */
@@ -1896,6 +1939,28 @@ export interface OnlineTaxiItineraryInfo {
1896
1939
  Row: number
1897
1940
  }
1898
1941
 
1942
+ /**
1943
+ * VehicleRegCertOCR请求参数结构体
1944
+ */
1945
+ export interface VehicleRegCertOCRRequest {
1946
+ /**
1947
+ * 图片的 Base64 值。
1948
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
1949
+ 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
1950
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
1951
+ */
1952
+ ImageBase64?: string
1953
+
1954
+ /**
1955
+ * 图片的 Url 地址。
1956
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
1957
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
1958
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
1959
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
1960
+ */
1961
+ ImageUrl?: string
1962
+ }
1963
+
1899
1964
  /**
1900
1965
  * PropOwnerCertOCR返回参数结构体
1901
1966
  */
@@ -2215,26 +2280,48 @@ ItemNames=["姓名","性别"]
2215
2280
  }
2216
2281
 
2217
2282
  /**
2218
- * 增值税发票识别结果
2283
+ * 单元格数据
2219
2284
  */
2220
- export interface TextVatInvoice {
2285
+ export interface TableCellInfo {
2221
2286
  /**
2222
- * 识别出的字段名称(关键字)。支持以下字段的识别:
2223
- 发票代码、 发票号码、 打印发票代码、 打印发票号码、 开票日期、 购买方识别号、 小写金额、 价税合计(大写)、 销售方识别号、 校验码、 购买方名称、 销售方名称、 税额、 复核、 联次名称、 备注、 联次、 密码区、 开票人、 收款人、 (货物或应税劳务、服务名称)、省、 市、 服务类型、 通行费标志、 是否代开、 是否收购、 合计金额、 是否有公司印章、 发票消费类型、 车船税、 机器编号、 成品油标志、 税率、 合计税额、 (购买方地址、电话)、 (销售方地址、电话)、 单价、 金额、 销售方开户行及账号、 购买方开户行及账号、 规格型号、 发票名称、 单位、 数量、 校验码备选、 校验码后六位备选、发票号码备选、车牌号、类型、通行日期起、通行日期止、发票类型。
2224
- */
2225
- Name: string
2287
+ * 单元格左上角的列索引
2288
+ */
2289
+ ColTl: number
2226
2290
 
2227
2291
  /**
2228
- * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
2292
+ * 单元格左上角的行索引
2229
2293
  */
2230
- Value: string
2294
+ RowTl: number
2231
2295
 
2232
2296
  /**
2233
- * 字段在原图中的中的四点坐标。
2234
- 注意:此字段可能返回 null,表示取不到有效值。
2235
- 注意:此字段可能返回 null,表示取不到有效值。
2236
- */
2237
- Polygon: Polygon
2297
+ * 单元格右下角的列索引
2298
+ */
2299
+ ColBr: number
2300
+
2301
+ /**
2302
+ * 单元格右下角的行索引
2303
+ */
2304
+ RowBr: number
2305
+
2306
+ /**
2307
+ * 单元格内识别出的字符串文本,若文本存在多行,以换行符"\n"隔开
2308
+ */
2309
+ Text: string
2310
+
2311
+ /**
2312
+ * 单元格类型
2313
+ */
2314
+ Type: string
2315
+
2316
+ /**
2317
+ * 单元格置信度
2318
+ */
2319
+ Confidence: number
2320
+
2321
+ /**
2322
+ * 单元格在图像中的四点坐标
2323
+ */
2324
+ Polygon: Array<Coord>
2238
2325
  }
2239
2326
 
2240
2327
  /**
@@ -2377,12 +2464,12 @@ export interface GeneralAccurateOCRResponse {
2377
2464
  /**
2378
2465
  * 检测到的文本信息,包括文本行内容、置信度、文本行坐标以及文本行旋转纠正后的坐标,具体内容请点击左侧链接。
2379
2466
  */
2380
- TextDetections: Array<TextDetection>
2467
+ TextDetections?: Array<TextDetection>
2381
2468
 
2382
2469
  /**
2383
2470
  * 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
2384
2471
  */
2385
- Angel: number
2472
+ Angel?: number
2386
2473
 
2387
2474
  /**
2388
2475
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -2515,22 +2602,22 @@ export interface GeneralBasicOCRResponse {
2515
2602
  /**
2516
2603
  * 检测到的文本信息,包括文本行内容、置信度、文本行坐标以及文本行旋转纠正后的坐标,具体内容请点击左侧链接。
2517
2604
  */
2518
- TextDetections: Array<TextDetection>
2605
+ TextDetections?: Array<TextDetection>
2519
2606
 
2520
2607
  /**
2521
2608
  * 检测到的语言类型,目前支持的语言类型参考入参LanguageType说明。
2522
2609
  */
2523
- Language: string
2610
+ Language?: string
2524
2611
 
2525
2612
  /**
2526
2613
  * 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
2527
2614
  */
2528
- Angel: number
2615
+ Angel?: number
2529
2616
 
2530
2617
  /**
2531
2618
  * 图片为PDF时,返回PDF的总页数,默认为0
2532
2619
  */
2533
- PdfPageSize: number
2620
+ PdfPageSize?: number
2534
2621
 
2535
2622
  /**
2536
2623
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -2582,6 +2669,11 @@ export interface RecognizeThaiIDCardOCRResponse {
2582
2669
  */
2583
2670
  EnLastName?: string
2584
2671
 
2672
+ /**
2673
+ * 证件人像照片抠取
2674
+ */
2675
+ PortraitImage?: string
2676
+
2585
2677
  /**
2586
2678
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2587
2679
  */
@@ -2953,27 +3045,27 @@ export interface LicensePlateOCRResponse {
2953
3045
  /**
2954
3046
  * 识别出的车牌号码。
2955
3047
  */
2956
- Number: string
3048
+ Number?: string
2957
3049
 
2958
3050
  /**
2959
3051
  * 置信度,0 - 100 之间。
2960
3052
  */
2961
- Confidence: number
3053
+ Confidence?: number
2962
3054
 
2963
3055
  /**
2964
3056
  * 文本行在原图片中的像素坐标框。
2965
3057
  */
2966
- Rect: Rect
3058
+ Rect?: Rect
2967
3059
 
2968
3060
  /**
2969
3061
  * 识别出的车牌颜色,目前支持颜色包括 “白”、“黑”、“蓝”、“绿“、“黄”、“黄绿”、“临牌”。
2970
3062
  */
2971
- Color: string
3063
+ Color?: string
2972
3064
 
2973
3065
  /**
2974
3066
  * 全部车牌信息。
2975
3067
  */
2976
- LicensePlateInfos: Array<LicensePlateInfo>
3068
+ LicensePlateInfos?: Array<LicensePlateInfo>
2977
3069
 
2978
3070
  /**
2979
3071
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -3122,6 +3214,36 @@ export interface VatInvoiceGoodsInfo {
3122
3214
  TaxAmount: string
3123
3215
  }
3124
3216
 
3217
+ /**
3218
+ * OrgCodeCertOCR返回参数结构体
3219
+ */
3220
+ export interface OrgCodeCertOCRResponse {
3221
+ /**
3222
+ * 代码
3223
+ */
3224
+ OrgCode: string
3225
+
3226
+ /**
3227
+ * 机构名称
3228
+ */
3229
+ Name: string
3230
+
3231
+ /**
3232
+ * 地址
3233
+ */
3234
+ Address: string
3235
+
3236
+ /**
3237
+ * 有效期
3238
+ */
3239
+ ValidDate: string
3240
+
3241
+ /**
3242
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3243
+ */
3244
+ RequestId?: string
3245
+ }
3246
+
3125
3247
  /**
3126
3248
  * PermitOCR请求参数结构体
3127
3249
  */
@@ -3164,6 +3286,11 @@ export interface InvoiceGeneralOCRResponse {
3164
3286
  RequestId?: string
3165
3287
  }
3166
3288
 
3289
+ /**
3290
+ * 智慧表单上传文件信息
3291
+ */
3292
+ export type SmartFormFileUrl = null
3293
+
3167
3294
  /**
3168
3295
  * VatInvoiceVerifyNew返回参数结构体
3169
3296
  */
@@ -3271,9 +3398,9 @@ export interface RecognizeContainerOCRRequest {
3271
3398
  }
3272
3399
 
3273
3400
  /**
3274
- * TextDetect请求参数结构体
3401
+ * EduPaperOCR请求参数结构体
3275
3402
  */
3276
- export interface TextDetectRequest {
3403
+ export interface EduPaperOCRRequest {
3277
3404
  /**
3278
3405
  * 图片的 Base64 值。
3279
3406
  支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
@@ -3290,6 +3417,17 @@ export interface TextDetectRequest {
3290
3417
  非腾讯云存储的 Url 速度和稳定性可能受一定影响。
3291
3418
  */
3292
3419
  ImageUrl?: string
3420
+
3421
+ /**
3422
+ * 扩展配置信息。
3423
+ 配置格式:{"option1":value1,"option2":value2}
3424
+ 1. task_type:任务类型【0: 关闭版式分析与处理 1: 开启版式分析处理】可选参数,Int32类型,默认值为1
3425
+ 2. is_structuralization:是否结构化输出【true:返回包体同时返回通用和结构化输出 false:返回包体返回通用输出】 可选参数,Bool类型,默认值为true
3426
+ 3. if_readable_format:是否按照版式整合通用文本/公式输出结果 可选参数,Bool类型,默认值为false
3427
+ 示例:
3428
+ {"task_type": 1,"is_structuralization": true,"if_readable_format": true}
3429
+ */
3430
+ Config?: string
3293
3431
  }
3294
3432
 
3295
3433
  /**
@@ -3389,6 +3527,12 @@ export interface RecognizeThaiIDCardOCRRequest {
3389
3527
  建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
3390
3528
  */
3391
3529
  ImageUrl?: string
3530
+
3531
+ /**
3532
+ * 图片开关。默认为false,不返回泰国身份证头像照片的base64编码。
3533
+ 设置为true时,返回旋转矫正后的泰国身份证头像照片的base64编码
3534
+ */
3535
+ CropPortrait?: boolean
3392
3536
  }
3393
3537
 
3394
3538
  /**
@@ -3601,12 +3745,12 @@ export interface ImageEnhancementResponse {
3601
3745
  “origin”:原图
3602
3746
  “preprocess”:预处理后的图
3603
3747
  */
3604
- ImageTag: string
3748
+ ImageTag?: string
3605
3749
 
3606
3750
  /**
3607
3751
  * 图片数据,返回预处理后图像或原图像base64字符
3608
3752
  */
3609
- Image: string
3753
+ Image?: string
3610
3754
 
3611
3755
  /**
3612
3756
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -3815,9 +3959,9 @@ export interface VerifyBasicBizLicenseResponse {
3815
3959
  }
3816
3960
 
3817
3961
  /**
3818
- * VehicleRegCertOCR请求参数结构体
3962
+ * TextDetect请求参数结构体
3819
3963
  */
3820
- export interface VehicleRegCertOCRRequest {
3964
+ export interface TextDetectRequest {
3821
3965
  /**
3822
3966
  * 图片的 Base64 值。
3823
3967
  支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
@@ -3843,27 +3987,27 @@ export interface RecognizeTravelCardOCRResponse {
3843
3987
  /**
3844
3988
  * 行程卡更新时间,格式为:XXXX.XX.XX XX:XX:XX
3845
3989
  */
3846
- Time: string
3990
+ Time?: string
3847
3991
 
3848
3992
  /**
3849
3993
  * 行程卡颜色:绿色、黄色、红色
3850
3994
  */
3851
- Color: string
3995
+ Color?: string
3852
3996
 
3853
3997
  /**
3854
3998
  * 7天内到达或途经的城市(自2022年7月8日起,通信行程卡查询结果的覆盖时间范围由“14天”调整为“7天”)
3855
3999
  */
3856
- ReachedCity: Array<string>
4000
+ ReachedCity?: Array<string>
3857
4001
 
3858
4002
  /**
3859
4003
  * 7天内到达或途径存在中高风险地区的城市(自2022年6月29日起,通信行程卡取消“星号”标记,改字段将返回空值)
3860
4004
  */
3861
- RiskArea: Array<string>
4005
+ RiskArea?: Array<string>
3862
4006
 
3863
4007
  /**
3864
4008
  * 电话号码
3865
4009
  */
3866
- Telephone: string
4010
+ Telephone?: string
3867
4011
 
3868
4012
  /**
3869
4013
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -5057,6 +5201,30 @@ export interface TableTitle {
5057
5201
  Text: string
5058
5202
  }
5059
5203
 
5204
+ /**
5205
+ * RecognizeTableAccurateOCR请求参数结构体
5206
+ */
5207
+ export interface RecognizeTableAccurateOCRRequest {
5208
+ /**
5209
+ * 图片/PDF的 Base64 值。
5210
+ 要求图片/PDF经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。
5211
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
5212
+ */
5213
+ ImageBase64?: string
5214
+
5215
+ /**
5216
+ * 图片/PDF的 Url 地址。
5217
+ 要求图片/PDF经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。
5218
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
5219
+ */
5220
+ ImageUrl?: string
5221
+
5222
+ /**
5223
+ * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
5224
+ */
5225
+ PdfPageNumber?: number
5226
+ }
5227
+
5060
5228
  /**
5061
5229
  * 坐标
5062
5230
  */
@@ -5265,18 +5433,28 @@ export interface QuestionObj {
5265
5433
  }
5266
5434
 
5267
5435
  /**
5268
- * VehicleRegCertOCR返回参数结构体
5436
+ * 表格内容检测
5269
5437
  */
5270
- export interface VehicleRegCertOCRResponse {
5438
+ export interface TableInfo {
5271
5439
  /**
5272
- * 机动车登记证书识别结果,具体内容请点击左侧链接。
5273
- */
5274
- VehicleRegCertInfos: Array<VehicleRegCertInfo>
5440
+ * 单元格内容
5441
+ 注意:此字段可能返回 null,表示取不到有效值。
5442
+ */
5443
+ Cells: Array<TableCellInfo>
5275
5444
 
5276
5445
  /**
5277
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5278
- */
5279
- RequestId?: string
5446
+ * 图像中的文本块类型,0 为非表格文本,
5447
+ 1 为有线表格,2 为无线表格
5448
+ 注意:此字段可能返回 null,表示取不到有效值。
5449
+ */
5450
+ Type: number
5451
+
5452
+ /**
5453
+ * 表格主体四个顶点坐标(依次为左上角,
5454
+ 右上角,右下角,左下角)
5455
+ 注意:此字段可能返回 null,表示取不到有效值。
5456
+ */
5457
+ TableCoordPoint: Array<Coord>
5280
5458
  }
5281
5459
 
5282
5460
  /**
@@ -5295,36 +5473,23 @@ export interface VinOCRResponse {
5295
5473
  }
5296
5474
 
5297
5475
  /**
5298
- * EduPaperOCR请求参数结构体
5476
+ * GetTaskState返回参数结构体
5299
5477
  */
5300
- export interface EduPaperOCRRequest {
5478
+ export interface GetTaskStateResponse {
5301
5479
  /**
5302
- * 图片的 Base64 值。
5303
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
5304
- 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
5305
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
5306
- */
5307
- ImageBase64?: string
5308
-
5309
- /**
5310
- * 图片的 Url 地址。
5311
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
5312
- 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
5313
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
5314
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
5480
+ * 1:任务识别完成,还未提交
5481
+ 2:任务已手动关闭
5482
+ 3:任务已提交
5483
+ 4:任务识别中
5484
+ 5:超时:任务超过了可操作的24H时限
5485
+ 6:任务识别失败
5315
5486
  */
5316
- ImageUrl?: string
5487
+ TaskState?: number
5317
5488
 
5318
5489
  /**
5319
- * 扩展配置信息。
5320
- 配置格式:{"option1":value1,"option2":value2}
5321
- 1. task_type:任务类型【0: 关闭版式分析与处理 1: 开启版式分析处理】可选参数,Int32类型,默认值为1
5322
- 2. is_structuralization:是否结构化输出【true:返回包体同时返回通用和结构化输出 false:返回包体返回通用输出】 可选参数,Bool类型,默认值为true
5323
- 3. if_readable_format:是否按照版式整合通用文本/公式输出结果 可选参数,Bool类型,默认值为false
5324
- 示例:
5325
- {"task_type": 1,"is_structuralization": true,"if_readable_format": true}
5326
- */
5327
- Config?: string
5490
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5491
+ */
5492
+ RequestId?: string
5328
5493
  }
5329
5494
 
5330
5495
  /**
@@ -5411,52 +5576,52 @@ export interface RecognizeHealthCodeOCRResponse {
5411
5576
  /**
5412
5577
  * 持码人姓名,如:王*(允许返回空值)
5413
5578
  */
5414
- Name: string
5579
+ Name?: string
5415
5580
 
5416
5581
  /**
5417
5582
  * 持码人身份证号,如:11**************01(允许返回空值)
5418
5583
  */
5419
- IDNumber: string
5584
+ IDNumber?: string
5420
5585
 
5421
5586
  /**
5422
5587
  * 健康码更新时间(允许返回空值)
5423
5588
  */
5424
- Time: string
5589
+ Time?: string
5425
5590
 
5426
5591
  /**
5427
5592
  * 健康码颜色:绿色、黄色、红色(允许返回空值)
5428
5593
  */
5429
- Color: string
5594
+ Color?: string
5430
5595
 
5431
5596
  /**
5432
5597
  * 核酸检测间隔时长(允许返回空值)
5433
5598
  */
5434
- TestingInterval: string
5599
+ TestingInterval?: string
5435
5600
 
5436
5601
  /**
5437
5602
  * 核酸检测结果:阴性、阳性、暂无核酸检测记录(允许返回空值)
5438
5603
  */
5439
- TestingResult: string
5604
+ TestingResult?: string
5440
5605
 
5441
5606
  /**
5442
5607
  * 核酸检测时间(允许返回空值)
5443
5608
  */
5444
- TestingTime: string
5609
+ TestingTime?: string
5445
5610
 
5446
5611
  /**
5447
5612
  * 疫苗接种信息,返回接种针数或接种情况(允许返回空值)
5448
5613
  */
5449
- Vaccination: string
5614
+ Vaccination?: string
5450
5615
 
5451
5616
  /**
5452
5617
  * 场所名称(允许返回空值)
5453
5618
  */
5454
- SpotName: string
5619
+ SpotName?: string
5455
5620
 
5456
5621
  /**
5457
5622
  * 疫苗接种时间
5458
5623
  */
5459
- VaccinationTime: string
5624
+ VaccinationTime?: string
5460
5625
 
5461
5626
  /**
5462
5627
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -5555,28 +5720,20 @@ export interface ItemCoord {
5555
5720
  }
5556
5721
 
5557
5722
  /**
5558
- * OrgCodeCertOCR返回参数结构体
5723
+ * CreateAIFormTask返回参数结构体
5559
5724
  */
5560
- export interface OrgCodeCertOCRResponse {
5725
+ export interface CreateAIFormTaskResponse {
5561
5726
  /**
5562
- * 代码
5563
- */
5564
- OrgCode: string
5565
-
5566
- /**
5567
- * 机构名称
5568
- */
5569
- Name: string
5570
-
5571
- /**
5572
- * 地址
5573
- */
5574
- Address: string
5727
+ * 本次识别任务的唯一身份ID
5728
+ 注意:此字段可能返回 null,表示取不到有效值。
5729
+ */
5730
+ TaskId?: string
5575
5731
 
5576
5732
  /**
5577
- * 有效期
5578
- */
5579
- ValidDate: string
5733
+ * 本次识别任务的操作URL,有效期自生成之时起共24小时
5734
+ 注意:此字段可能返回 null,表示取不到有效值。
5735
+ */
5736
+ OperateUrl?: string
5580
5737
 
5581
5738
  /**
5582
5739
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -5682,142 +5839,142 @@ export interface ResidenceBookletOCRResponse {
5682
5839
  /**
5683
5840
  * 户号
5684
5841
  */
5685
- HouseholdNumber: string
5842
+ HouseholdNumber?: string
5686
5843
 
5687
5844
  /**
5688
5845
  * 姓名
5689
5846
  */
5690
- Name: string
5847
+ Name?: string
5691
5848
 
5692
5849
  /**
5693
5850
  * 性别
5694
5851
  */
5695
- Sex: string
5852
+ Sex?: string
5696
5853
 
5697
5854
  /**
5698
5855
  * 出生地
5699
5856
  */
5700
- BirthPlace: string
5857
+ BirthPlace?: string
5701
5858
 
5702
5859
  /**
5703
5860
  * 民族
5704
5861
  */
5705
- Nation: string
5862
+ Nation?: string
5706
5863
 
5707
5864
  /**
5708
5865
  * 籍贯
5709
5866
  */
5710
- NativePlace: string
5867
+ NativePlace?: string
5711
5868
 
5712
5869
  /**
5713
5870
  * 出生日期
5714
5871
  */
5715
- BirthDate: string
5872
+ BirthDate?: string
5716
5873
 
5717
5874
  /**
5718
5875
  * 公民身份证件编号
5719
5876
  */
5720
- IdCardNumber: string
5877
+ IdCardNumber?: string
5721
5878
 
5722
5879
  /**
5723
5880
  * 文化程度
5724
5881
  */
5725
- EducationDegree: string
5882
+ EducationDegree?: string
5726
5883
 
5727
5884
  /**
5728
5885
  * 服务处所
5729
5886
  */
5730
- ServicePlace: string
5887
+ ServicePlace?: string
5731
5888
 
5732
5889
  /**
5733
5890
  * 户别
5734
5891
  */
5735
- Household: string
5892
+ Household?: string
5736
5893
 
5737
5894
  /**
5738
5895
  * 住址
5739
5896
  */
5740
- Address: string
5897
+ Address?: string
5741
5898
 
5742
5899
  /**
5743
5900
  * 承办人签章文字
5744
5901
  */
5745
- Signature: string
5902
+ Signature?: string
5746
5903
 
5747
5904
  /**
5748
5905
  * 签发日期
5749
5906
  */
5750
- IssueDate: string
5907
+ IssueDate?: string
5751
5908
 
5752
5909
  /**
5753
5910
  * 户主页编号
5754
5911
  */
5755
- HomePageNumber: string
5912
+ HomePageNumber?: string
5756
5913
 
5757
5914
  /**
5758
5915
  * 户主姓名
5759
5916
  */
5760
- HouseholderName: string
5917
+ HouseholderName?: string
5761
5918
 
5762
5919
  /**
5763
5920
  * 户主或与户主关系
5764
5921
  */
5765
- Relationship: string
5922
+ Relationship?: string
5766
5923
 
5767
5924
  /**
5768
5925
  * 本市(县)其他住址
5769
5926
  */
5770
- OtherAddresses: string
5927
+ OtherAddresses?: string
5771
5928
 
5772
5929
  /**
5773
5930
  * 宗教信仰
5774
5931
  */
5775
- ReligiousBelief: string
5932
+ ReligiousBelief?: string
5776
5933
 
5777
5934
  /**
5778
5935
  * 身高
5779
5936
  */
5780
- Height: string
5937
+ Height?: string
5781
5938
 
5782
5939
  /**
5783
5940
  * 血型
5784
5941
  */
5785
- BloodType: string
5942
+ BloodType?: string
5786
5943
 
5787
5944
  /**
5788
5945
  * 婚姻状况
5789
5946
  */
5790
- MaritalStatus: string
5947
+ MaritalStatus?: string
5791
5948
 
5792
5949
  /**
5793
5950
  * 兵役状况
5794
5951
  */
5795
- VeteranStatus: string
5952
+ VeteranStatus?: string
5796
5953
 
5797
5954
  /**
5798
5955
  * 职业
5799
5956
  */
5800
- Profession: string
5957
+ Profession?: string
5801
5958
 
5802
5959
  /**
5803
5960
  * 何时由何地迁来本市(县)
5804
5961
  */
5805
- MoveToCityInformation: string
5962
+ MoveToCityInformation?: string
5806
5963
 
5807
5964
  /**
5808
5965
  * 何时由何地迁来本址
5809
5966
  */
5810
- MoveToSiteInformation: string
5967
+ MoveToSiteInformation?: string
5811
5968
 
5812
5969
  /**
5813
5970
  * 登记日期
5814
5971
  */
5815
- RegistrationDate: string
5972
+ RegistrationDate?: string
5816
5973
 
5817
5974
  /**
5818
5975
  * 曾用名
5819
5976
  */
5820
- FormerName: string
5977
+ FormerName?: string
5821
5978
 
5822
5979
  /**
5823
5980
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -5840,6 +5997,21 @@ export interface CarInvoiceOCRResponse {
5840
5997
  RequestId?: string
5841
5998
  }
5842
5999
 
6000
+ /**
6001
+ * VehicleRegCertOCR返回参数结构体
6002
+ */
6003
+ export interface VehicleRegCertOCRResponse {
6004
+ /**
6005
+ * 机动车登记证书识别结果,具体内容请点击左侧链接。
6006
+ */
6007
+ VehicleRegCertInfos: Array<VehicleRegCertInfo>
6008
+
6009
+ /**
6010
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6011
+ */
6012
+ RequestId?: string
6013
+ }
6014
+
5843
6015
  /**
5844
6016
  * GeneralFastOCR请求参数结构体
5845
6017
  */
@@ -5943,6 +6115,16 @@ export interface InsuranceBillInfo {
5943
6115
  Value: string
5944
6116
  }
5945
6117
 
6118
+ /**
6119
+ * GetTaskState请求参数结构体
6120
+ */
6121
+ export interface GetTaskStateRequest {
6122
+ /**
6123
+ * 智慧表单任务唯一身份ID
6124
+ */
6125
+ TaskId: string
6126
+ }
6127
+
5946
6128
  /**
5947
6129
  * RecognizeMedicalInvoiceOCR请求参数结构体
5948
6130
  */
@@ -6224,6 +6406,39 @@ export interface TextTable {
6224
6406
  AdvancedInfo: string
6225
6407
  }
6226
6408
 
6409
+ /**
6410
+ * RecognizeTableAccurateOCR返回参数结构体
6411
+ */
6412
+ export interface RecognizeTableAccurateOCRResponse {
6413
+ /**
6414
+ * 检测到的文本信息,具体内容请点击左侧链接。
6415
+ 注意:此字段可能返回 null,表示取不到有效值。
6416
+ */
6417
+ TableDetections?: Array<TableInfo>
6418
+
6419
+ /**
6420
+ * Base64 编码后的 Excel 数据。
6421
+ */
6422
+ Data?: string
6423
+
6424
+ /**
6425
+ * 图片为PDF时,返回PDF的总页数,默认为0
6426
+ 注意:此字段可能返回 null,表示取不到有效值。
6427
+ */
6428
+ PdfPageSize?: number
6429
+
6430
+ /**
6431
+ * 图片旋转角度(角度制),文本的水平方向为0°,统一以逆时针方向旋转,逆时针为负,角度范围为-360°至0°。
6432
+ 注意:此字段可能返回 null,表示取不到有效值。
6433
+ */
6434
+ Angle?: number
6435
+
6436
+ /**
6437
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
6438
+ */
6439
+ RequestId?: string
6440
+ }
6441
+
6227
6442
  /**
6228
6443
  * ResidenceBookletOCR请求参数结构体
6229
6444
  */