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.
- package/CHANGELOG.md +509 -0
- package/SERVICE_CHANGELOG.md +648 -37
- package/package.json +1 -1
- package/products.md +32 -32
- package/src/services/ocr/v20181119/ocr_client.ts +67 -25
- package/src/services/ocr/v20181119/ocr_models.ts +365 -150
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +26 -11
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +33 -12
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +331 -147
@@ -599,51 +599,51 @@ export interface DriverLicenseOCRResponse {
|
|
599
599
|
/**
|
600
600
|
* 姓名
|
601
601
|
*/
|
602
|
-
Name
|
602
|
+
Name?: string;
|
603
603
|
/**
|
604
604
|
* 性别
|
605
605
|
*/
|
606
|
-
Sex
|
606
|
+
Sex?: string;
|
607
607
|
/**
|
608
608
|
* 国籍
|
609
609
|
*/
|
610
|
-
Nationality
|
610
|
+
Nationality?: string;
|
611
611
|
/**
|
612
612
|
* 住址
|
613
613
|
*/
|
614
|
-
Address
|
614
|
+
Address?: string;
|
615
615
|
/**
|
616
616
|
* 出生日期(YYYY-MM-DD)
|
617
617
|
*/
|
618
|
-
DateOfBirth
|
618
|
+
DateOfBirth?: string;
|
619
619
|
/**
|
620
620
|
* 初次领证日期(YYYY-MM-DD)
|
621
621
|
*/
|
622
|
-
DateOfFirstIssue
|
622
|
+
DateOfFirstIssue?: string;
|
623
623
|
/**
|
624
624
|
* 准驾车型
|
625
625
|
*/
|
626
|
-
Class
|
626
|
+
Class?: string;
|
627
627
|
/**
|
628
628
|
* 有效期开始时间(YYYY-MM-DD)
|
629
629
|
*/
|
630
|
-
StartDate
|
630
|
+
StartDate?: string;
|
631
631
|
/**
|
632
632
|
* 有效期截止时间(YYYY-MM-DD)
|
633
633
|
*/
|
634
|
-
EndDate
|
634
|
+
EndDate?: string;
|
635
635
|
/**
|
636
636
|
* 证号
|
637
637
|
*/
|
638
|
-
CardCode
|
638
|
+
CardCode?: string;
|
639
639
|
/**
|
640
640
|
* 档案编号
|
641
641
|
*/
|
642
|
-
ArchivesCode
|
642
|
+
ArchivesCode?: string;
|
643
643
|
/**
|
644
644
|
* 记录
|
645
645
|
*/
|
646
|
-
Record
|
646
|
+
Record?: string;
|
647
647
|
/**
|
648
648
|
* Code 告警码列表和释义:
|
649
649
|
-9102 复印件告警
|
@@ -651,7 +651,7 @@ export interface DriverLicenseOCRResponse {
|
|
651
651
|
-9106 ps告警
|
652
652
|
注:告警码可以同时存在多个
|
653
653
|
*/
|
654
|
-
RecognizeWarnCode
|
654
|
+
RecognizeWarnCode?: Array<number>;
|
655
655
|
/**
|
656
656
|
* 告警码说明:
|
657
657
|
WARN_DRIVER_LICENSE_COPY_CARD 复印件告警
|
@@ -659,19 +659,19 @@ export interface DriverLicenseOCRResponse {
|
|
659
659
|
WARN_DRIVER_LICENSE_PS_CARD ps告警
|
660
660
|
注:告警信息可以同时存在多个
|
661
661
|
*/
|
662
|
-
RecognizeWarnMsg
|
662
|
+
RecognizeWarnMsg?: Array<string>;
|
663
663
|
/**
|
664
664
|
* 发证单位
|
665
665
|
*/
|
666
|
-
IssuingAuthority
|
666
|
+
IssuingAuthority?: string;
|
667
667
|
/**
|
668
668
|
* 状态(仅电子驾驶证支持返回该字段)
|
669
669
|
*/
|
670
|
-
State
|
670
|
+
State?: string;
|
671
671
|
/**
|
672
672
|
* 累积记分(仅电子驾驶证支持返回该字段)
|
673
673
|
*/
|
674
|
-
CumulativeScore
|
674
|
+
CumulativeScore?: string;
|
675
675
|
/**
|
676
676
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
677
677
|
*/
|
@@ -690,6 +690,23 @@ export interface WaybillOCRResponse {
|
|
690
690
|
*/
|
691
691
|
RequestId?: string;
|
692
692
|
}
|
693
|
+
/**
|
694
|
+
* CreateAIFormTask请求参数结构体
|
695
|
+
*/
|
696
|
+
export interface CreateAIFormTaskRequest {
|
697
|
+
/**
|
698
|
+
* 多个文件的URL列表
|
699
|
+
*/
|
700
|
+
FileList: Array<SmartFormFileUrl>;
|
701
|
+
/**
|
702
|
+
* 备注信息1
|
703
|
+
*/
|
704
|
+
FirstNotes?: string;
|
705
|
+
/**
|
706
|
+
* 备注信息2
|
707
|
+
*/
|
708
|
+
SecondNotes?: string;
|
709
|
+
}
|
693
710
|
/**
|
694
711
|
* 识别出来的单词信息包括单词(包括单词Character和单词置信度confidence)
|
695
712
|
*/
|
@@ -1166,13 +1183,24 @@ export interface InvoiceGeneralInfo {
|
|
1166
1183
|
Rect: Rect;
|
1167
1184
|
}
|
1168
1185
|
/**
|
1169
|
-
*
|
1186
|
+
* 增值税发票识别结果
|
1170
1187
|
*/
|
1171
|
-
export interface
|
1188
|
+
export interface TextVatInvoice {
|
1172
1189
|
/**
|
1173
|
-
|
1190
|
+
* 识别出的字段名称(关键字)。支持以下字段的识别:
|
1191
|
+
发票代码、 发票号码、 打印发票代码、 打印发票号码、 开票日期、 购买方识别号、 小写金额、 价税合计(大写)、 销售方识别号、 校验码、 购买方名称、 销售方名称、 税额、 复核、 联次名称、 备注、 联次、 密码区、 开票人、 收款人、 (货物或应税劳务、服务名称)、省、 市、 服务类型、 通行费标志、 是否代开、 是否收购、 合计金额、 是否有公司印章、 发票消费类型、 车船税、 机器编号、 成品油标志、 税率、 合计税额、 (购买方地址、电话)、 (销售方地址、电话)、 单价、 金额、 销售方开户行及账号、 购买方开户行及账号、 规格型号、 发票名称、 单位、 数量、 校验码备选、 校验码后六位备选、发票号码备选、车牌号、类型、通行日期起、通行日期止、发票类型。
|
1192
|
+
*/
|
1193
|
+
Name: string;
|
1194
|
+
/**
|
1195
|
+
* 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
|
1174
1196
|
*/
|
1175
|
-
|
1197
|
+
Value: string;
|
1198
|
+
/**
|
1199
|
+
* 字段在原图中的中的四点坐标。
|
1200
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1201
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1202
|
+
*/
|
1203
|
+
Polygon: Polygon;
|
1176
1204
|
}
|
1177
1205
|
/**
|
1178
1206
|
* InstitutionOCR返回参数结构体
|
@@ -1181,23 +1209,23 @@ export interface InstitutionOCRResponse {
|
|
1181
1209
|
/**
|
1182
1210
|
* 注册号
|
1183
1211
|
*/
|
1184
|
-
RegId
|
1212
|
+
RegId?: string;
|
1185
1213
|
/**
|
1186
1214
|
* 有效期
|
1187
1215
|
*/
|
1188
|
-
ValidDate
|
1216
|
+
ValidDate?: string;
|
1189
1217
|
/**
|
1190
1218
|
* 住所
|
1191
1219
|
*/
|
1192
|
-
Location
|
1220
|
+
Location?: string;
|
1193
1221
|
/**
|
1194
1222
|
* 名称
|
1195
1223
|
*/
|
1196
|
-
Name
|
1224
|
+
Name?: string;
|
1197
1225
|
/**
|
1198
1226
|
* 法定代表人
|
1199
1227
|
*/
|
1200
|
-
LegalPerson
|
1228
|
+
LegalPerson?: string;
|
1201
1229
|
/**
|
1202
1230
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1203
1231
|
*/
|
@@ -1430,6 +1458,15 @@ export interface WaybillObj {
|
|
1430
1458
|
*/
|
1431
1459
|
Text: string;
|
1432
1460
|
}
|
1461
|
+
/**
|
1462
|
+
* 英文OCR识别出的单词在原图中的四点坐标数组
|
1463
|
+
*/
|
1464
|
+
export interface WordCoordPoint {
|
1465
|
+
/**
|
1466
|
+
* 英文OCR识别出的每个单词在原图中的四点坐标。
|
1467
|
+
*/
|
1468
|
+
WordCoordinate: Array<Coord>;
|
1469
|
+
}
|
1433
1470
|
/**
|
1434
1471
|
* 票据检测结果
|
1435
1472
|
*/
|
@@ -1595,6 +1632,26 @@ export interface OnlineTaxiItineraryInfo {
|
|
1595
1632
|
*/
|
1596
1633
|
Row: number;
|
1597
1634
|
}
|
1635
|
+
/**
|
1636
|
+
* VehicleRegCertOCR请求参数结构体
|
1637
|
+
*/
|
1638
|
+
export interface VehicleRegCertOCRRequest {
|
1639
|
+
/**
|
1640
|
+
* 图片的 Base64 值。
|
1641
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
1642
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
1643
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
1644
|
+
*/
|
1645
|
+
ImageBase64?: string;
|
1646
|
+
/**
|
1647
|
+
* 图片的 Url 地址。
|
1648
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
1649
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
1650
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
1651
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
1652
|
+
*/
|
1653
|
+
ImageUrl?: string;
|
1654
|
+
}
|
1598
1655
|
/**
|
1599
1656
|
* PropOwnerCertOCR返回参数结构体
|
1600
1657
|
*/
|
@@ -1863,24 +1920,41 @@ export interface SmartStructuralOCRRequest {
|
|
1863
1920
|
ReturnFullText?: boolean;
|
1864
1921
|
}
|
1865
1922
|
/**
|
1866
|
-
*
|
1923
|
+
* 单元格数据
|
1867
1924
|
*/
|
1868
|
-
export interface
|
1925
|
+
export interface TableCellInfo {
|
1869
1926
|
/**
|
1870
|
-
|
1871
|
-
|
1872
|
-
|
1873
|
-
Name: string;
|
1927
|
+
* 单元格左上角的列索引
|
1928
|
+
*/
|
1929
|
+
ColTl: number;
|
1874
1930
|
/**
|
1875
|
-
*
|
1931
|
+
* 单元格左上角的行索引
|
1876
1932
|
*/
|
1877
|
-
|
1933
|
+
RowTl: number;
|
1878
1934
|
/**
|
1879
|
-
|
1880
|
-
|
1881
|
-
|
1882
|
-
|
1883
|
-
|
1935
|
+
* 单元格右下角的列索引
|
1936
|
+
*/
|
1937
|
+
ColBr: number;
|
1938
|
+
/**
|
1939
|
+
* 单元格右下角的行索引
|
1940
|
+
*/
|
1941
|
+
RowBr: number;
|
1942
|
+
/**
|
1943
|
+
* 单元格内识别出的字符串文本,若文本存在多行,以换行符"\n"隔开
|
1944
|
+
*/
|
1945
|
+
Text: string;
|
1946
|
+
/**
|
1947
|
+
* 单元格类型
|
1948
|
+
*/
|
1949
|
+
Type: string;
|
1950
|
+
/**
|
1951
|
+
* 单元格置信度
|
1952
|
+
*/
|
1953
|
+
Confidence: number;
|
1954
|
+
/**
|
1955
|
+
* 单元格在图像中的四点坐标
|
1956
|
+
*/
|
1957
|
+
Polygon: Array<Coord>;
|
1884
1958
|
}
|
1885
1959
|
/**
|
1886
1960
|
* GeneralHandwritingOCR请求参数结构体
|
@@ -2005,11 +2079,11 @@ export interface GeneralAccurateOCRResponse {
|
|
2005
2079
|
/**
|
2006
2080
|
* 检测到的文本信息,包括文本行内容、置信度、文本行坐标以及文本行旋转纠正后的坐标,具体内容请点击左侧链接。
|
2007
2081
|
*/
|
2008
|
-
TextDetections
|
2082
|
+
TextDetections?: Array<TextDetection>;
|
2009
2083
|
/**
|
2010
2084
|
* 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
|
2011
2085
|
*/
|
2012
|
-
Angel
|
2086
|
+
Angel?: number;
|
2013
2087
|
/**
|
2014
2088
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2015
2089
|
*/
|
@@ -2122,19 +2196,19 @@ export interface GeneralBasicOCRResponse {
|
|
2122
2196
|
/**
|
2123
2197
|
* 检测到的文本信息,包括文本行内容、置信度、文本行坐标以及文本行旋转纠正后的坐标,具体内容请点击左侧链接。
|
2124
2198
|
*/
|
2125
|
-
TextDetections
|
2199
|
+
TextDetections?: Array<TextDetection>;
|
2126
2200
|
/**
|
2127
2201
|
* 检测到的语言类型,目前支持的语言类型参考入参LanguageType说明。
|
2128
2202
|
*/
|
2129
|
-
Language
|
2203
|
+
Language?: string;
|
2130
2204
|
/**
|
2131
2205
|
* 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
|
2132
2206
|
*/
|
2133
|
-
Angel
|
2207
|
+
Angel?: number;
|
2134
2208
|
/**
|
2135
2209
|
* 图片为PDF时,返回PDF的总页数,默认为0
|
2136
2210
|
*/
|
2137
|
-
PdfPageSize
|
2211
|
+
PdfPageSize?: number;
|
2138
2212
|
/**
|
2139
2213
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2140
2214
|
*/
|
@@ -2176,6 +2250,10 @@ export interface RecognizeThaiIDCardOCRResponse {
|
|
2176
2250
|
* 英文姓名
|
2177
2251
|
*/
|
2178
2252
|
EnLastName?: string;
|
2253
|
+
/**
|
2254
|
+
* 证件人像照片抠取
|
2255
|
+
*/
|
2256
|
+
PortraitImage?: string;
|
2179
2257
|
/**
|
2180
2258
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2181
2259
|
*/
|
@@ -2499,23 +2577,23 @@ export interface LicensePlateOCRResponse {
|
|
2499
2577
|
/**
|
2500
2578
|
* 识别出的车牌号码。
|
2501
2579
|
*/
|
2502
|
-
Number
|
2580
|
+
Number?: string;
|
2503
2581
|
/**
|
2504
2582
|
* 置信度,0 - 100 之间。
|
2505
2583
|
*/
|
2506
|
-
Confidence
|
2584
|
+
Confidence?: number;
|
2507
2585
|
/**
|
2508
2586
|
* 文本行在原图片中的像素坐标框。
|
2509
2587
|
*/
|
2510
|
-
Rect
|
2588
|
+
Rect?: Rect;
|
2511
2589
|
/**
|
2512
2590
|
* 识别出的车牌颜色,目前支持颜色包括 “白”、“黑”、“蓝”、“绿“、“黄”、“黄绿”、“临牌”。
|
2513
2591
|
*/
|
2514
|
-
Color
|
2592
|
+
Color?: string;
|
2515
2593
|
/**
|
2516
2594
|
* 全部车牌信息。
|
2517
2595
|
*/
|
2518
|
-
LicensePlateInfos
|
2596
|
+
LicensePlateInfos?: Array<LicensePlateInfo>;
|
2519
2597
|
/**
|
2520
2598
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2521
2599
|
*/
|
@@ -2639,6 +2717,31 @@ export interface VatInvoiceGoodsInfo {
|
|
2639
2717
|
*/
|
2640
2718
|
TaxAmount: string;
|
2641
2719
|
}
|
2720
|
+
/**
|
2721
|
+
* OrgCodeCertOCR返回参数结构体
|
2722
|
+
*/
|
2723
|
+
export interface OrgCodeCertOCRResponse {
|
2724
|
+
/**
|
2725
|
+
* 代码
|
2726
|
+
*/
|
2727
|
+
OrgCode: string;
|
2728
|
+
/**
|
2729
|
+
* 机构名称
|
2730
|
+
*/
|
2731
|
+
Name: string;
|
2732
|
+
/**
|
2733
|
+
* 地址
|
2734
|
+
*/
|
2735
|
+
Address: string;
|
2736
|
+
/**
|
2737
|
+
* 有效期
|
2738
|
+
*/
|
2739
|
+
ValidDate: string;
|
2740
|
+
/**
|
2741
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2742
|
+
*/
|
2743
|
+
RequestId?: string;
|
2744
|
+
}
|
2642
2745
|
/**
|
2643
2746
|
* PermitOCR请求参数结构体
|
2644
2747
|
*/
|
@@ -2676,6 +2779,10 @@ export interface InvoiceGeneralOCRResponse {
|
|
2676
2779
|
*/
|
2677
2780
|
RequestId?: string;
|
2678
2781
|
}
|
2782
|
+
/**
|
2783
|
+
* 智慧表单上传文件信息
|
2784
|
+
*/
|
2785
|
+
export declare type SmartFormFileUrl = null;
|
2679
2786
|
/**
|
2680
2787
|
* VatInvoiceVerifyNew返回参数结构体
|
2681
2788
|
*/
|
@@ -2770,9 +2877,9 @@ export interface RecognizeContainerOCRRequest {
|
|
2770
2877
|
ImageUrl?: string;
|
2771
2878
|
}
|
2772
2879
|
/**
|
2773
|
-
*
|
2880
|
+
* EduPaperOCR请求参数结构体
|
2774
2881
|
*/
|
2775
|
-
export interface
|
2882
|
+
export interface EduPaperOCRRequest {
|
2776
2883
|
/**
|
2777
2884
|
* 图片的 Base64 值。
|
2778
2885
|
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
@@ -2788,6 +2895,16 @@ export interface TextDetectRequest {
|
|
2788
2895
|
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
2789
2896
|
*/
|
2790
2897
|
ImageUrl?: string;
|
2898
|
+
/**
|
2899
|
+
* 扩展配置信息。
|
2900
|
+
配置格式:{"option1":value1,"option2":value2}
|
2901
|
+
1. task_type:任务类型【0: 关闭版式分析与处理 1: 开启版式分析处理】可选参数,Int32类型,默认值为1
|
2902
|
+
2. is_structuralization:是否结构化输出【true:返回包体同时返回通用和结构化输出 false:返回包体返回通用输出】 可选参数,Bool类型,默认值为true
|
2903
|
+
3. if_readable_format:是否按照版式整合通用文本/公式输出结果 可选参数,Bool类型,默认值为false
|
2904
|
+
示例:
|
2905
|
+
{"task_type": 1,"is_structuralization": true,"if_readable_format": true}
|
2906
|
+
*/
|
2907
|
+
Config?: string;
|
2791
2908
|
}
|
2792
2909
|
/**
|
2793
2910
|
* VatRollInvoiceOCR返回参数结构体
|
@@ -2874,6 +2991,11 @@ export interface RecognizeThaiIDCardOCRRequest {
|
|
2874
2991
|
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
2875
2992
|
*/
|
2876
2993
|
ImageUrl?: string;
|
2994
|
+
/**
|
2995
|
+
* 图片开关。默认为false,不返回泰国身份证头像照片的base64编码。
|
2996
|
+
设置为true时,返回旋转矫正后的泰国身份证头像照片的base64编码
|
2997
|
+
*/
|
2998
|
+
CropPortrait?: boolean;
|
2877
2999
|
}
|
2878
3000
|
/**
|
2879
3001
|
* 名片识别结果
|
@@ -3051,11 +3173,11 @@ export interface ImageEnhancementResponse {
|
|
3051
3173
|
“origin”:原图
|
3052
3174
|
“preprocess”:预处理后的图
|
3053
3175
|
*/
|
3054
|
-
ImageTag
|
3176
|
+
ImageTag?: string;
|
3055
3177
|
/**
|
3056
3178
|
* 图片数据,返回预处理后图像或原图像base64字符
|
3057
3179
|
*/
|
3058
|
-
Image
|
3180
|
+
Image?: string;
|
3059
3181
|
/**
|
3060
3182
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3061
3183
|
*/
|
@@ -3225,9 +3347,9 @@ export interface VerifyBasicBizLicenseResponse {
|
|
3225
3347
|
RequestId?: string;
|
3226
3348
|
}
|
3227
3349
|
/**
|
3228
|
-
*
|
3350
|
+
* TextDetect请求参数结构体
|
3229
3351
|
*/
|
3230
|
-
export interface
|
3352
|
+
export interface TextDetectRequest {
|
3231
3353
|
/**
|
3232
3354
|
* 图片的 Base64 值。
|
3233
3355
|
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
@@ -3251,23 +3373,23 @@ export interface RecognizeTravelCardOCRResponse {
|
|
3251
3373
|
/**
|
3252
3374
|
* 行程卡更新时间,格式为:XXXX.XX.XX XX:XX:XX
|
3253
3375
|
*/
|
3254
|
-
Time
|
3376
|
+
Time?: string;
|
3255
3377
|
/**
|
3256
3378
|
* 行程卡颜色:绿色、黄色、红色
|
3257
3379
|
*/
|
3258
|
-
Color
|
3380
|
+
Color?: string;
|
3259
3381
|
/**
|
3260
3382
|
* 7天内到达或途经的城市(自2022年7月8日起,通信行程卡查询结果的覆盖时间范围由“14天”调整为“7天”)
|
3261
3383
|
*/
|
3262
|
-
ReachedCity
|
3384
|
+
ReachedCity?: Array<string>;
|
3263
3385
|
/**
|
3264
3386
|
* 7天内到达或途径存在中高风险地区的城市(自2022年6月29日起,通信行程卡取消“星号”标记,改字段将返回空值)
|
3265
3387
|
*/
|
3266
|
-
RiskArea
|
3388
|
+
RiskArea?: Array<string>;
|
3267
3389
|
/**
|
3268
3390
|
* 电话号码
|
3269
3391
|
*/
|
3270
|
-
Telephone
|
3392
|
+
Telephone?: string;
|
3271
3393
|
/**
|
3272
3394
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3273
3395
|
*/
|
@@ -4291,6 +4413,27 @@ export interface TableTitle {
|
|
4291
4413
|
*/
|
4292
4414
|
Text: string;
|
4293
4415
|
}
|
4416
|
+
/**
|
4417
|
+
* RecognizeTableAccurateOCR请求参数结构体
|
4418
|
+
*/
|
4419
|
+
export interface RecognizeTableAccurateOCRRequest {
|
4420
|
+
/**
|
4421
|
+
* 图片/PDF的 Base64 值。
|
4422
|
+
要求图片/PDF经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。
|
4423
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
4424
|
+
*/
|
4425
|
+
ImageBase64?: string;
|
4426
|
+
/**
|
4427
|
+
* 图片/PDF的 Url 地址。
|
4428
|
+
要求图片/PDF经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。
|
4429
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
4430
|
+
*/
|
4431
|
+
ImageUrl?: string;
|
4432
|
+
/**
|
4433
|
+
* 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
|
4434
|
+
*/
|
4435
|
+
PdfPageNumber?: number;
|
4436
|
+
}
|
4294
4437
|
/**
|
4295
4438
|
* 坐标
|
4296
4439
|
*/
|
@@ -4469,17 +4612,26 @@ export interface QuestionObj {
|
|
4469
4612
|
QuestionImageCoords: Array<Rect>;
|
4470
4613
|
}
|
4471
4614
|
/**
|
4472
|
-
*
|
4615
|
+
* 表格内容检测
|
4473
4616
|
*/
|
4474
|
-
export interface
|
4617
|
+
export interface TableInfo {
|
4475
4618
|
/**
|
4476
|
-
|
4477
|
-
|
4478
|
-
|
4619
|
+
* 单元格内容
|
4620
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4621
|
+
*/
|
4622
|
+
Cells: Array<TableCellInfo>;
|
4479
4623
|
/**
|
4480
|
-
|
4481
|
-
|
4482
|
-
|
4624
|
+
* 图像中的文本块类型,0 为非表格文本,
|
4625
|
+
1 为有线表格,2 为无线表格
|
4626
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4627
|
+
*/
|
4628
|
+
Type: number;
|
4629
|
+
/**
|
4630
|
+
* 表格主体四个顶点坐标(依次为左上角,
|
4631
|
+
右上角,右下角,左下角)
|
4632
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4633
|
+
*/
|
4634
|
+
TableCoordPoint: Array<Coord>;
|
4483
4635
|
}
|
4484
4636
|
/**
|
4485
4637
|
* VinOCR返回参数结构体
|
@@ -4495,34 +4647,22 @@ export interface VinOCRResponse {
|
|
4495
4647
|
RequestId?: string;
|
4496
4648
|
}
|
4497
4649
|
/**
|
4498
|
-
*
|
4650
|
+
* GetTaskState返回参数结构体
|
4499
4651
|
*/
|
4500
|
-
export interface
|
4501
|
-
/**
|
4502
|
-
* 图片的 Base64 值。
|
4503
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
4504
|
-
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
4505
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
4506
|
-
*/
|
4507
|
-
ImageBase64?: string;
|
4652
|
+
export interface GetTaskStateResponse {
|
4508
4653
|
/**
|
4509
|
-
*
|
4510
|
-
|
4511
|
-
|
4512
|
-
|
4513
|
-
|
4654
|
+
* 1:任务识别完成,还未提交
|
4655
|
+
2:任务已手动关闭
|
4656
|
+
3:任务已提交
|
4657
|
+
4:任务识别中
|
4658
|
+
5:超时:任务超过了可操作的24H时限
|
4659
|
+
6:任务识别失败
|
4514
4660
|
*/
|
4515
|
-
|
4661
|
+
TaskState?: number;
|
4516
4662
|
/**
|
4517
|
-
|
4518
|
-
|
4519
|
-
|
4520
|
-
2. is_structuralization:是否结构化输出【true:返回包体同时返回通用和结构化输出 false:返回包体返回通用输出】 可选参数,Bool类型,默认值为true
|
4521
|
-
3. if_readable_format:是否按照版式整合通用文本/公式输出结果 可选参数,Bool类型,默认值为false
|
4522
|
-
示例:
|
4523
|
-
{"task_type": 1,"is_structuralization": true,"if_readable_format": true}
|
4524
|
-
*/
|
4525
|
-
Config?: string;
|
4663
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4664
|
+
*/
|
4665
|
+
RequestId?: string;
|
4526
4666
|
}
|
4527
4667
|
/**
|
4528
4668
|
* FormulaOCR请求参数结构体
|
@@ -4599,43 +4739,43 @@ export interface RecognizeHealthCodeOCRResponse {
|
|
4599
4739
|
/**
|
4600
4740
|
* 持码人姓名,如:王*(允许返回空值)
|
4601
4741
|
*/
|
4602
|
-
Name
|
4742
|
+
Name?: string;
|
4603
4743
|
/**
|
4604
4744
|
* 持码人身份证号,如:11**************01(允许返回空值)
|
4605
4745
|
*/
|
4606
|
-
IDNumber
|
4746
|
+
IDNumber?: string;
|
4607
4747
|
/**
|
4608
4748
|
* 健康码更新时间(允许返回空值)
|
4609
4749
|
*/
|
4610
|
-
Time
|
4750
|
+
Time?: string;
|
4611
4751
|
/**
|
4612
4752
|
* 健康码颜色:绿色、黄色、红色(允许返回空值)
|
4613
4753
|
*/
|
4614
|
-
Color
|
4754
|
+
Color?: string;
|
4615
4755
|
/**
|
4616
4756
|
* 核酸检测间隔时长(允许返回空值)
|
4617
4757
|
*/
|
4618
|
-
TestingInterval
|
4758
|
+
TestingInterval?: string;
|
4619
4759
|
/**
|
4620
4760
|
* 核酸检测结果:阴性、阳性、暂无核酸检测记录(允许返回空值)
|
4621
4761
|
*/
|
4622
|
-
TestingResult
|
4762
|
+
TestingResult?: string;
|
4623
4763
|
/**
|
4624
4764
|
* 核酸检测时间(允许返回空值)
|
4625
4765
|
*/
|
4626
|
-
TestingTime
|
4766
|
+
TestingTime?: string;
|
4627
4767
|
/**
|
4628
4768
|
* 疫苗接种信息,返回接种针数或接种情况(允许返回空值)
|
4629
4769
|
*/
|
4630
|
-
Vaccination
|
4770
|
+
Vaccination?: string;
|
4631
4771
|
/**
|
4632
4772
|
* 场所名称(允许返回空值)
|
4633
4773
|
*/
|
4634
|
-
SpotName
|
4774
|
+
SpotName?: string;
|
4635
4775
|
/**
|
4636
4776
|
* 疫苗接种时间
|
4637
4777
|
*/
|
4638
|
-
VaccinationTime
|
4778
|
+
VaccinationTime?: string;
|
4639
4779
|
/**
|
4640
4780
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4641
4781
|
*/
|
@@ -4717,25 +4857,19 @@ export interface ItemCoord {
|
|
4717
4857
|
Height: number;
|
4718
4858
|
}
|
4719
4859
|
/**
|
4720
|
-
*
|
4860
|
+
* CreateAIFormTask返回参数结构体
|
4721
4861
|
*/
|
4722
|
-
export interface
|
4862
|
+
export interface CreateAIFormTaskResponse {
|
4723
4863
|
/**
|
4724
|
-
|
4725
|
-
|
4726
|
-
|
4727
|
-
|
4728
|
-
* 机构名称
|
4729
|
-
*/
|
4730
|
-
Name: string;
|
4731
|
-
/**
|
4732
|
-
* 地址
|
4733
|
-
*/
|
4734
|
-
Address: string;
|
4864
|
+
* 本次识别任务的唯一身份ID
|
4865
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4866
|
+
*/
|
4867
|
+
TaskId?: string;
|
4735
4868
|
/**
|
4736
|
-
|
4737
|
-
|
4738
|
-
|
4869
|
+
* 本次识别任务的操作URL,有效期自生成之时起共24小时
|
4870
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4871
|
+
*/
|
4872
|
+
OperateUrl?: string;
|
4739
4873
|
/**
|
4740
4874
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4741
4875
|
*/
|
@@ -4829,115 +4963,115 @@ export interface ResidenceBookletOCRResponse {
|
|
4829
4963
|
/**
|
4830
4964
|
* 户号
|
4831
4965
|
*/
|
4832
|
-
HouseholdNumber
|
4966
|
+
HouseholdNumber?: string;
|
4833
4967
|
/**
|
4834
4968
|
* 姓名
|
4835
4969
|
*/
|
4836
|
-
Name
|
4970
|
+
Name?: string;
|
4837
4971
|
/**
|
4838
4972
|
* 性别
|
4839
4973
|
*/
|
4840
|
-
Sex
|
4974
|
+
Sex?: string;
|
4841
4975
|
/**
|
4842
4976
|
* 出生地
|
4843
4977
|
*/
|
4844
|
-
BirthPlace
|
4978
|
+
BirthPlace?: string;
|
4845
4979
|
/**
|
4846
4980
|
* 民族
|
4847
4981
|
*/
|
4848
|
-
Nation
|
4982
|
+
Nation?: string;
|
4849
4983
|
/**
|
4850
4984
|
* 籍贯
|
4851
4985
|
*/
|
4852
|
-
NativePlace
|
4986
|
+
NativePlace?: string;
|
4853
4987
|
/**
|
4854
4988
|
* 出生日期
|
4855
4989
|
*/
|
4856
|
-
BirthDate
|
4990
|
+
BirthDate?: string;
|
4857
4991
|
/**
|
4858
4992
|
* 公民身份证件编号
|
4859
4993
|
*/
|
4860
|
-
IdCardNumber
|
4994
|
+
IdCardNumber?: string;
|
4861
4995
|
/**
|
4862
4996
|
* 文化程度
|
4863
4997
|
*/
|
4864
|
-
EducationDegree
|
4998
|
+
EducationDegree?: string;
|
4865
4999
|
/**
|
4866
5000
|
* 服务处所
|
4867
5001
|
*/
|
4868
|
-
ServicePlace
|
5002
|
+
ServicePlace?: string;
|
4869
5003
|
/**
|
4870
5004
|
* 户别
|
4871
5005
|
*/
|
4872
|
-
Household
|
5006
|
+
Household?: string;
|
4873
5007
|
/**
|
4874
5008
|
* 住址
|
4875
5009
|
*/
|
4876
|
-
Address
|
5010
|
+
Address?: string;
|
4877
5011
|
/**
|
4878
5012
|
* 承办人签章文字
|
4879
5013
|
*/
|
4880
|
-
Signature
|
5014
|
+
Signature?: string;
|
4881
5015
|
/**
|
4882
5016
|
* 签发日期
|
4883
5017
|
*/
|
4884
|
-
IssueDate
|
5018
|
+
IssueDate?: string;
|
4885
5019
|
/**
|
4886
5020
|
* 户主页编号
|
4887
5021
|
*/
|
4888
|
-
HomePageNumber
|
5022
|
+
HomePageNumber?: string;
|
4889
5023
|
/**
|
4890
5024
|
* 户主姓名
|
4891
5025
|
*/
|
4892
|
-
HouseholderName
|
5026
|
+
HouseholderName?: string;
|
4893
5027
|
/**
|
4894
5028
|
* 户主或与户主关系
|
4895
5029
|
*/
|
4896
|
-
Relationship
|
5030
|
+
Relationship?: string;
|
4897
5031
|
/**
|
4898
5032
|
* 本市(县)其他住址
|
4899
5033
|
*/
|
4900
|
-
OtherAddresses
|
5034
|
+
OtherAddresses?: string;
|
4901
5035
|
/**
|
4902
5036
|
* 宗教信仰
|
4903
5037
|
*/
|
4904
|
-
ReligiousBelief
|
5038
|
+
ReligiousBelief?: string;
|
4905
5039
|
/**
|
4906
5040
|
* 身高
|
4907
5041
|
*/
|
4908
|
-
Height
|
5042
|
+
Height?: string;
|
4909
5043
|
/**
|
4910
5044
|
* 血型
|
4911
5045
|
*/
|
4912
|
-
BloodType
|
5046
|
+
BloodType?: string;
|
4913
5047
|
/**
|
4914
5048
|
* 婚姻状况
|
4915
5049
|
*/
|
4916
|
-
MaritalStatus
|
5050
|
+
MaritalStatus?: string;
|
4917
5051
|
/**
|
4918
5052
|
* 兵役状况
|
4919
5053
|
*/
|
4920
|
-
VeteranStatus
|
5054
|
+
VeteranStatus?: string;
|
4921
5055
|
/**
|
4922
5056
|
* 职业
|
4923
5057
|
*/
|
4924
|
-
Profession
|
5058
|
+
Profession?: string;
|
4925
5059
|
/**
|
4926
5060
|
* 何时由何地迁来本市(县)
|
4927
5061
|
*/
|
4928
|
-
MoveToCityInformation
|
5062
|
+
MoveToCityInformation?: string;
|
4929
5063
|
/**
|
4930
5064
|
* 何时由何地迁来本址
|
4931
5065
|
*/
|
4932
|
-
MoveToSiteInformation
|
5066
|
+
MoveToSiteInformation?: string;
|
4933
5067
|
/**
|
4934
5068
|
* 登记日期
|
4935
5069
|
*/
|
4936
|
-
RegistrationDate
|
5070
|
+
RegistrationDate?: string;
|
4937
5071
|
/**
|
4938
5072
|
* 曾用名
|
4939
5073
|
*/
|
4940
|
-
FormerName
|
5074
|
+
FormerName?: string;
|
4941
5075
|
/**
|
4942
5076
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
4943
5077
|
*/
|
@@ -4956,6 +5090,19 @@ export interface CarInvoiceOCRResponse {
|
|
4956
5090
|
*/
|
4957
5091
|
RequestId?: string;
|
4958
5092
|
}
|
5093
|
+
/**
|
5094
|
+
* VehicleRegCertOCR返回参数结构体
|
5095
|
+
*/
|
5096
|
+
export interface VehicleRegCertOCRResponse {
|
5097
|
+
/**
|
5098
|
+
* 机动车登记证书识别结果,具体内容请点击左侧链接。
|
5099
|
+
*/
|
5100
|
+
VehicleRegCertInfos: Array<VehicleRegCertInfo>;
|
5101
|
+
/**
|
5102
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5103
|
+
*/
|
5104
|
+
RequestId?: string;
|
5105
|
+
}
|
4959
5106
|
/**
|
4960
5107
|
* GeneralFastOCR请求参数结构体
|
4961
5108
|
*/
|
@@ -5046,6 +5193,15 @@ export interface InsuranceBillInfo {
|
|
5046
5193
|
*/
|
5047
5194
|
Value: string;
|
5048
5195
|
}
|
5196
|
+
/**
|
5197
|
+
* GetTaskState请求参数结构体
|
5198
|
+
*/
|
5199
|
+
export interface GetTaskStateRequest {
|
5200
|
+
/**
|
5201
|
+
* 智慧表单任务唯一身份ID
|
5202
|
+
*/
|
5203
|
+
TaskId: string;
|
5204
|
+
}
|
5049
5205
|
/**
|
5050
5206
|
* RecognizeMedicalInvoiceOCR请求参数结构体
|
5051
5207
|
*/
|
@@ -5282,6 +5438,34 @@ export interface TextTable {
|
|
5282
5438
|
*/
|
5283
5439
|
AdvancedInfo: string;
|
5284
5440
|
}
|
5441
|
+
/**
|
5442
|
+
* RecognizeTableAccurateOCR返回参数结构体
|
5443
|
+
*/
|
5444
|
+
export interface RecognizeTableAccurateOCRResponse {
|
5445
|
+
/**
|
5446
|
+
* 检测到的文本信息,具体内容请点击左侧链接。
|
5447
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
5448
|
+
*/
|
5449
|
+
TableDetections?: Array<TableInfo>;
|
5450
|
+
/**
|
5451
|
+
* Base64 编码后的 Excel 数据。
|
5452
|
+
*/
|
5453
|
+
Data?: string;
|
5454
|
+
/**
|
5455
|
+
* 图片为PDF时,返回PDF的总页数,默认为0
|
5456
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
5457
|
+
*/
|
5458
|
+
PdfPageSize?: number;
|
5459
|
+
/**
|
5460
|
+
* 图片旋转角度(角度制),文本的水平方向为0°,统一以逆时针方向旋转,逆时针为负,角度范围为-360°至0°。
|
5461
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
5462
|
+
*/
|
5463
|
+
Angle?: number;
|
5464
|
+
/**
|
5465
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5466
|
+
*/
|
5467
|
+
RequestId?: string;
|
5468
|
+
}
|
5285
5469
|
/**
|
5286
5470
|
* ResidenceBookletOCR请求参数结构体
|
5287
5471
|
*/
|