tencentcloud-sdk-nodejs-ocr 4.0.1005 → 4.0.1007
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/package.json +1 -1
- package/products.md +24 -23
- package/src/services/ocr/v20181119/ocr_client.ts +106 -92
- package/src/services/ocr/v20181119/ocr_models.ts +209 -113
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +79 -73
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +84 -76
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +206 -112
@@ -28,12 +28,72 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
28
28
|
super("ocr.tencentcloudapi.com", "2018-11-19", clientConfig);
|
29
29
|
}
|
30
30
|
/**
|
31
|
-
*
|
31
|
+
* 本接口支持图像整体文字的检测和识别。可以识别中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语,阿拉伯语20种语言,且各种语言均支持与英文混合的文字识别。
|
32
32
|
|
33
|
-
|
33
|
+
适用于印刷文档识别、网络图片识别、广告图文字识别、街景店招牌识别、菜单识别、视频标题识别、头像文字识别等场景。
|
34
|
+
|
35
|
+
产品优势:支持自动识别语言类型,可返回文本框坐标信息,对于倾斜文本支持自动旋转纠正。
|
36
|
+
|
37
|
+
通用印刷体识别不同版本的差异如下:
|
38
|
+
<table style="width:715px">
|
39
|
+
<thead>
|
40
|
+
<tr>
|
41
|
+
<th style="width:150px"></th>
|
42
|
+
<th style="width:200px">【荐】通用印刷体识别</th>
|
43
|
+
<th ><a href="https://cloud.tencent.com/document/product/866/34937">【荐】通用印刷体识别(高精度版)</a></th>
|
44
|
+
<th><a href="https://cloud.tencent.com/document/product/866/37831">通用印刷体识别(精简版)</a></th>
|
45
|
+
</tr>
|
46
|
+
</thead>
|
47
|
+
<tbody>
|
48
|
+
<tr>
|
49
|
+
<td> 适用场景</td>
|
50
|
+
<td>适用于所有通用场景的印刷体识别</td>
|
51
|
+
<td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>
|
52
|
+
<td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>
|
53
|
+
</tr>
|
54
|
+
<tr>
|
55
|
+
<td>识别准确率</td>
|
56
|
+
<td>96%</td>
|
57
|
+
<td>99%</td>
|
58
|
+
<td>91%</td>
|
59
|
+
</tr>
|
60
|
+
<tr>
|
61
|
+
<td>价格</td>
|
62
|
+
<td>中</td>
|
63
|
+
<td>高</td>
|
64
|
+
<td>低</td>
|
65
|
+
</tr>
|
66
|
+
<tr>
|
67
|
+
<td>支持的语言</td>
|
68
|
+
<td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
|
69
|
+
<td>中文、英文、中英文</td>
|
70
|
+
<td>中文、英文、中英文</td>
|
71
|
+
</tr>
|
72
|
+
<tr>
|
73
|
+
<td>自动语言检测</td>
|
74
|
+
<td>支持</td>
|
75
|
+
<td>支持</td>
|
76
|
+
<td>支持</td>
|
77
|
+
</tr>
|
78
|
+
<tr>
|
79
|
+
<td>返回文本行坐标</td>
|
80
|
+
<td>支持</td>
|
81
|
+
<td>支持</td>
|
82
|
+
<td>支持</td>
|
83
|
+
</tr>
|
84
|
+
<tr>
|
85
|
+
<td>自动旋转纠正</td>
|
86
|
+
<td>支持旋转识别,返回角度信息</td>
|
87
|
+
<td>支持旋转识别,返回角度信息</td>
|
88
|
+
<td>支持旋转识别,返回角度信息</td>
|
89
|
+
</tr>
|
90
|
+
</tbody>
|
91
|
+
</table>
|
92
|
+
|
93
|
+
默认接口请求频率限制:20次/秒。
|
34
94
|
*/
|
35
|
-
async
|
36
|
-
return this.request("
|
95
|
+
async GeneralBasicOCR(req, cb) {
|
96
|
+
return this.request("GeneralBasicOCR", req, cb);
|
37
97
|
}
|
38
98
|
/**
|
39
99
|
* 文本图像增强是面向文档类图片提供的图像增强处理能力,包括切边增强、图像矫正、阴影去除、摩尔纹去除等;可以有效优化文档类的图片质量,提升文字的清晰度。
|
@@ -67,6 +127,14 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
67
127
|
async BusinessCardOCR(req, cb) {
|
68
128
|
return this.request("BusinessCardOCR", req, cb);
|
69
129
|
}
|
130
|
+
/**
|
131
|
+
* 本接口支持病案首页、费用清单、结算单、医疗发票四种保险理赔单据的文本识别和结构化输出。
|
132
|
+
|
133
|
+
默认接口请求频率限制:1次/秒。
|
134
|
+
*/
|
135
|
+
async InsuranceBillOCR(req, cb) {
|
136
|
+
return this.request("InsuranceBillOCR", req, cb);
|
137
|
+
}
|
70
138
|
/**
|
71
139
|
* 本接口支持网约车行程单关键字段的识别,包括行程起止日期、上车时间、起点、终点、里程、金额等字段。
|
72
140
|
|
@@ -229,14 +297,6 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
229
297
|
async GeneralAccurateOCR(req, cb) {
|
230
298
|
return this.request("GeneralAccurateOCR", req, cb);
|
231
299
|
}
|
232
|
-
/**
|
233
|
-
* 本接口支持机票行程单关键字段的识别,包括旅客姓名、有效身份证件号码、电子客票号码、验证码、填开单位、其他税费、燃油附加费、民航发展基金、保险费、销售单位代号、始发地、目的地、航班号、时间、日期、座位等级、承运人、发票消费类型、票价、合计金额、填开日期、国内国际标签、印刷序号、客票级别/类别、客票生效日期、有效期截止日期、免费行李等字段,支持航班信息多行明细输出。
|
234
|
-
|
235
|
-
默认接口请求频率限制:5次/秒。
|
236
|
-
*/
|
237
|
-
async FlightInvoiceOCR(req, cb) {
|
238
|
-
return this.request("FlightInvoiceOCR", req, cb);
|
239
|
-
}
|
240
300
|
/**
|
241
301
|
* 本接口支持集装箱箱门信息识别,识别字段包括集装箱箱号、类型、总重量、有效承重、容量、自身重量,具备集装箱箱号、类型不完整或者不清晰的告警功能。
|
242
302
|
默认接口请求频率限制:5次/秒。
|
@@ -509,72 +569,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
509
569
|
return this.request("DutyPaidProofOCR", req, cb);
|
510
570
|
}
|
511
571
|
/**
|
512
|
-
*
|
513
|
-
|
514
|
-
适用于印刷文档识别、网络图片识别、广告图文字识别、街景店招牌识别、菜单识别、视频标题识别、头像文字识别等场景。
|
515
|
-
|
516
|
-
产品优势:支持自动识别语言类型,可返回文本框坐标信息,对于倾斜文本支持自动旋转纠正。
|
517
|
-
|
518
|
-
通用印刷体识别不同版本的差异如下:
|
519
|
-
<table style="width:715px">
|
520
|
-
<thead>
|
521
|
-
<tr>
|
522
|
-
<th style="width:150px"></th>
|
523
|
-
<th style="width:200px">【荐】通用印刷体识别</th>
|
524
|
-
<th ><a href="https://cloud.tencent.com/document/product/866/34937">【荐】通用印刷体识别(高精度版)</a></th>
|
525
|
-
<th><a href="https://cloud.tencent.com/document/product/866/37831">通用印刷体识别(精简版)</a></th>
|
526
|
-
</tr>
|
527
|
-
</thead>
|
528
|
-
<tbody>
|
529
|
-
<tr>
|
530
|
-
<td> 适用场景</td>
|
531
|
-
<td>适用于所有通用场景的印刷体识别</td>
|
532
|
-
<td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>
|
533
|
-
<td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>
|
534
|
-
</tr>
|
535
|
-
<tr>
|
536
|
-
<td>识别准确率</td>
|
537
|
-
<td>96%</td>
|
538
|
-
<td>99%</td>
|
539
|
-
<td>91%</td>
|
540
|
-
</tr>
|
541
|
-
<tr>
|
542
|
-
<td>价格</td>
|
543
|
-
<td>中</td>
|
544
|
-
<td>高</td>
|
545
|
-
<td>低</td>
|
546
|
-
</tr>
|
547
|
-
<tr>
|
548
|
-
<td>支持的语言</td>
|
549
|
-
<td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
|
550
|
-
<td>中文、英文、中英文</td>
|
551
|
-
<td>中文、英文、中英文</td>
|
552
|
-
</tr>
|
553
|
-
<tr>
|
554
|
-
<td>自动语言检测</td>
|
555
|
-
<td>支持</td>
|
556
|
-
<td>支持</td>
|
557
|
-
<td>支持</td>
|
558
|
-
</tr>
|
559
|
-
<tr>
|
560
|
-
<td>返回文本行坐标</td>
|
561
|
-
<td>支持</td>
|
562
|
-
<td>支持</td>
|
563
|
-
<td>支持</td>
|
564
|
-
</tr>
|
565
|
-
<tr>
|
566
|
-
<td>自动旋转纠正</td>
|
567
|
-
<td>支持旋转识别,返回角度信息</td>
|
568
|
-
<td>支持旋转识别,返回角度信息</td>
|
569
|
-
<td>支持旋转识别,返回角度信息</td>
|
570
|
-
</tr>
|
571
|
-
</tbody>
|
572
|
-
</table>
|
572
|
+
* 本接口支持机票行程单关键字段的识别,包括旅客姓名、有效身份证件号码、电子客票号码、验证码、填开单位、其他税费、燃油附加费、民航发展基金、保险费、销售单位代号、始发地、目的地、航班号、时间、日期、座位等级、承运人、发票消费类型、票价、合计金额、填开日期、国内国际标签、印刷序号、客票级别/类别、客票生效日期、有效期截止日期、免费行李等字段,支持航班信息多行明细输出。
|
573
573
|
|
574
|
-
默认接口请求频率限制:
|
574
|
+
默认接口请求频率限制:5次/秒。
|
575
575
|
*/
|
576
|
-
async
|
577
|
-
return this.request("
|
576
|
+
async FlightInvoiceOCR(req, cb) {
|
577
|
+
return this.request("FlightInvoiceOCR", req, cb);
|
578
578
|
}
|
579
579
|
/**
|
580
580
|
* 本接口支持对卡式港澳台通行证的识别,包括签发地点、签发机关、有效期限、性别、出生日期、英文姓名、姓名、证件号等字段。
|
@@ -853,6 +853,14 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
853
853
|
async RecognizeValidIDCardOCR(req, cb) {
|
854
854
|
return this.request("RecognizeValidIDCardOCR", req, cb);
|
855
855
|
}
|
856
|
+
/**
|
857
|
+
* 本接口支持对中国大陆主流银行卡正反面关键字段的检测与识别,包括卡号、卡类型、卡名字、银行信息、有效期。支持竖排异形卡识别、多角度旋转图片识别。支持对复印件、翻拍件、边框遮挡的银行卡进行告警,可应用于各种银行卡信息有效性校验场景,如金融行业身份认证、第三方支付绑卡等场景。
|
858
|
+
|
859
|
+
默认接口请求频率限制:10次/秒。
|
860
|
+
*/
|
861
|
+
async BankCardOCR(req, cb) {
|
862
|
+
return this.request("BankCardOCR", req, cb);
|
863
|
+
}
|
856
864
|
/**
|
857
865
|
* 本接口支持机动车销售统一发票和二手车销售统一发票的识别,包括发票号码、发票代码、合计金额、合计税额等二十多个字段。
|
858
866
|
|
@@ -157,6 +157,34 @@ export interface InvoiceItem {
|
|
157
157
|
*/
|
158
158
|
ItemPolygon?: Array<ItemPolygonInfo>;
|
159
159
|
}
|
160
|
+
/**
|
161
|
+
* HKIDCardOCR请求参数结构体
|
162
|
+
*/
|
163
|
+
export interface HKIDCardOCRRequest {
|
164
|
+
/**
|
165
|
+
* 是否返回人像照片。
|
166
|
+
*/
|
167
|
+
ReturnHeadImage: boolean;
|
168
|
+
/**
|
169
|
+
* 是否鉴伪。
|
170
|
+
* @deprecated
|
171
|
+
*/
|
172
|
+
DetectFake?: boolean;
|
173
|
+
/**
|
174
|
+
* 图片的 Base64 值。
|
175
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
176
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
177
|
+
*/
|
178
|
+
ImageBase64?: string;
|
179
|
+
/**
|
180
|
+
* 图片的 Url 地址。
|
181
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
182
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
|
183
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
184
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
185
|
+
*/
|
186
|
+
ImageUrl?: string;
|
187
|
+
}
|
160
188
|
/**
|
161
189
|
* BankSlipOCR请求参数结构体
|
162
190
|
*/
|
@@ -308,32 +336,43 @@ export interface ResidencePermitInfo {
|
|
308
336
|
IssueNum?: ContentInfo;
|
309
337
|
}
|
310
338
|
/**
|
311
|
-
*
|
339
|
+
* BankCardOCR请求参数结构体
|
312
340
|
*/
|
313
|
-
export interface
|
341
|
+
export interface BankCardOCRRequest {
|
314
342
|
/**
|
315
|
-
*
|
343
|
+
* 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
|
344
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
316
345
|
*/
|
317
|
-
|
346
|
+
ImageBase64?: string;
|
318
347
|
/**
|
319
|
-
*
|
320
|
-
|
348
|
+
* 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
|
349
|
+
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
321
350
|
*/
|
322
|
-
|
351
|
+
ImageUrl?: string;
|
323
352
|
/**
|
324
|
-
*
|
325
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
326
|
-
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
353
|
+
* 是否返回预处理(精确剪裁对齐)后的银行卡图片数据,默认false。
|
327
354
|
*/
|
328
|
-
|
355
|
+
RetBorderCutImage?: boolean;
|
329
356
|
/**
|
330
|
-
*
|
331
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
332
|
-
支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
|
333
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
334
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
357
|
+
* 是否返回卡号的切图图片数据,默认false。
|
335
358
|
*/
|
336
|
-
|
359
|
+
RetCardNoImage?: boolean;
|
360
|
+
/**
|
361
|
+
* 复印件检测开关,如果输入的图片是银行卡复印件图片则返回告警,默认false。
|
362
|
+
*/
|
363
|
+
EnableCopyCheck?: boolean;
|
364
|
+
/**
|
365
|
+
* 翻拍检测开关,如果输入的图片是银行卡翻拍图片则返回告警,默认false。
|
366
|
+
*/
|
367
|
+
EnableReshootCheck?: boolean;
|
368
|
+
/**
|
369
|
+
* 边框遮挡检测开关,如果输入的图片是银行卡边框被遮挡则返回告警,默认false。
|
370
|
+
*/
|
371
|
+
EnableBorderCheck?: boolean;
|
372
|
+
/**
|
373
|
+
* 是否返回图片质量分数(图片质量分数是评价一个图片的模糊程度的标准),默认false。
|
374
|
+
*/
|
375
|
+
EnableQualityValue?: boolean;
|
337
376
|
}
|
338
377
|
/**
|
339
378
|
* CarInvoiceOCR请求参数结构体
|
@@ -515,26 +554,32 @@ export interface EstateCertOCRResponse {
|
|
515
554
|
RequestId?: string;
|
516
555
|
}
|
517
556
|
/**
|
518
|
-
*
|
557
|
+
* FlightInvoiceOCR请求参数结构体
|
519
558
|
*/
|
520
|
-
export interface
|
559
|
+
export interface FlightInvoiceOCRRequest {
|
521
560
|
/**
|
522
|
-
*
|
561
|
+
* 图片的 Base64 值。
|
562
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
563
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
564
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
523
565
|
*/
|
524
|
-
|
566
|
+
ImageBase64?: string;
|
525
567
|
/**
|
526
|
-
*
|
527
|
-
|
568
|
+
* 图片的 Url 地址。
|
569
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
570
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
571
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
572
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
528
573
|
*/
|
529
|
-
|
574
|
+
ImageUrl?: string;
|
530
575
|
/**
|
531
|
-
*
|
576
|
+
* 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
|
532
577
|
*/
|
533
|
-
|
578
|
+
IsPdf?: boolean;
|
534
579
|
/**
|
535
|
-
*
|
580
|
+
* 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
|
536
581
|
*/
|
537
|
-
|
582
|
+
PdfPageNumber?: number;
|
538
583
|
}
|
539
584
|
/**
|
540
585
|
* 还原文本信息
|
@@ -1293,32 +1338,25 @@ export interface SingleInvoiceInfo {
|
|
1293
1338
|
Row?: number;
|
1294
1339
|
}
|
1295
1340
|
/**
|
1296
|
-
*
|
1341
|
+
* 增值税普通发票(卷票)条目
|
1297
1342
|
*/
|
1298
|
-
export interface
|
1343
|
+
export interface VatRollItem {
|
1299
1344
|
/**
|
1300
|
-
*
|
1301
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
1302
|
-
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
1303
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
1345
|
+
* 项目名称
|
1304
1346
|
*/
|
1305
|
-
|
1347
|
+
Name?: string;
|
1306
1348
|
/**
|
1307
|
-
*
|
1308
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
1309
|
-
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
1310
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
1311
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
1349
|
+
* 数量
|
1312
1350
|
*/
|
1313
|
-
|
1351
|
+
Quantity?: string;
|
1314
1352
|
/**
|
1315
|
-
*
|
1353
|
+
* 单价
|
1316
1354
|
*/
|
1317
|
-
|
1355
|
+
Price?: string;
|
1318
1356
|
/**
|
1319
|
-
*
|
1357
|
+
* 金额
|
1320
1358
|
*/
|
1321
|
-
|
1359
|
+
Total?: string;
|
1322
1360
|
}
|
1323
1361
|
/**
|
1324
1362
|
* 数学公式识别结果
|
@@ -2881,49 +2919,19 @@ export interface BusInvoice {
|
|
2881
2919
|
TrainNumber?: string;
|
2882
2920
|
}
|
2883
2921
|
/**
|
2884
|
-
*
|
2922
|
+
* QrcodeOCR请求参数结构体
|
2885
2923
|
*/
|
2886
|
-
export interface
|
2887
|
-
/**
|
2888
|
-
* 发票名称
|
2889
|
-
*/
|
2890
|
-
Title?: string;
|
2891
|
-
/**
|
2892
|
-
* 发票代码
|
2893
|
-
*/
|
2894
|
-
Code?: string;
|
2895
|
-
/**
|
2896
|
-
* 发票号码
|
2897
|
-
*/
|
2898
|
-
Number?: string;
|
2899
|
-
/**
|
2900
|
-
* 价税合计(小写)
|
2901
|
-
*/
|
2902
|
-
Total?: string;
|
2903
|
-
/**
|
2904
|
-
* 价税合计(大写)
|
2905
|
-
*/
|
2906
|
-
TotalCn?: string;
|
2907
|
-
/**
|
2908
|
-
* 发票消费类型
|
2909
|
-
*/
|
2910
|
-
Kind?: string;
|
2911
|
-
/**
|
2912
|
-
* 省
|
2913
|
-
*/
|
2914
|
-
Province?: string;
|
2915
|
-
/**
|
2916
|
-
* 市
|
2917
|
-
*/
|
2918
|
-
City?: string;
|
2924
|
+
export interface QrcodeOCRRequest {
|
2919
2925
|
/**
|
2920
|
-
*
|
2926
|
+
* 图片的 Base64 值。要求图片经Base64编码后不超过 7M,支持PNG、JPG、JPEG格式。
|
2927
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
2921
2928
|
*/
|
2922
|
-
|
2929
|
+
ImageBase64?: string;
|
2923
2930
|
/**
|
2924
|
-
*
|
2931
|
+
* 图片的 Url 地址。要求图片经Base64编码后不超过 7M,支持PNG、JPG、JPEG格式。
|
2932
|
+
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
2925
2933
|
*/
|
2926
|
-
|
2934
|
+
ImageUrl?: string;
|
2927
2935
|
}
|
2928
2936
|
/**
|
2929
2937
|
* TaxiInvoiceOCR返回参数结构体
|
@@ -9826,6 +9834,51 @@ export interface PermitOCRResponse {
|
|
9826
9834
|
*/
|
9827
9835
|
RequestId?: string;
|
9828
9836
|
}
|
9837
|
+
/**
|
9838
|
+
* 定额发票
|
9839
|
+
*/
|
9840
|
+
export interface QuotaInvoice {
|
9841
|
+
/**
|
9842
|
+
* 发票名称
|
9843
|
+
*/
|
9844
|
+
Title?: string;
|
9845
|
+
/**
|
9846
|
+
* 发票代码
|
9847
|
+
*/
|
9848
|
+
Code?: string;
|
9849
|
+
/**
|
9850
|
+
* 发票号码
|
9851
|
+
*/
|
9852
|
+
Number?: string;
|
9853
|
+
/**
|
9854
|
+
* 价税合计(小写)
|
9855
|
+
*/
|
9856
|
+
Total?: string;
|
9857
|
+
/**
|
9858
|
+
* 价税合计(大写)
|
9859
|
+
*/
|
9860
|
+
TotalCn?: string;
|
9861
|
+
/**
|
9862
|
+
* 发票消费类型
|
9863
|
+
*/
|
9864
|
+
Kind?: string;
|
9865
|
+
/**
|
9866
|
+
* 省
|
9867
|
+
*/
|
9868
|
+
Province?: string;
|
9869
|
+
/**
|
9870
|
+
* 市
|
9871
|
+
*/
|
9872
|
+
City?: string;
|
9873
|
+
/**
|
9874
|
+
* 是否存在二维码(1:有,0:无)
|
9875
|
+
*/
|
9876
|
+
QRCodeMark?: number;
|
9877
|
+
/**
|
9878
|
+
* 是否有公司印章(0:没有,1:有)
|
9879
|
+
*/
|
9880
|
+
CompanySealMark?: number;
|
9881
|
+
}
|
9829
9882
|
/**
|
9830
9883
|
* InsuranceBillOCR请求参数结构体
|
9831
9884
|
*/
|
@@ -9847,19 +9900,26 @@ export interface InsuranceBillOCRRequest {
|
|
9847
9900
|
ImageUrl?: string;
|
9848
9901
|
}
|
9849
9902
|
/**
|
9850
|
-
*
|
9903
|
+
* GeneralHandwritingOCR返回参数结构体
|
9851
9904
|
*/
|
9852
|
-
export interface
|
9905
|
+
export interface GeneralHandwritingOCRResponse {
|
9853
9906
|
/**
|
9854
|
-
*
|
9855
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
9907
|
+
* 检测到的文本信息,具体内容请点击左侧链接。
|
9856
9908
|
*/
|
9857
|
-
|
9909
|
+
TextDetections?: Array<TextGeneralHandwriting>;
|
9858
9910
|
/**
|
9859
|
-
*
|
9860
|
-
|
9911
|
+
* 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
|
9912
|
+
* @deprecated
|
9861
9913
|
*/
|
9862
|
-
|
9914
|
+
Angel?: number;
|
9915
|
+
/**
|
9916
|
+
* 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
|
9917
|
+
*/
|
9918
|
+
Angle?: number;
|
9919
|
+
/**
|
9920
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
9921
|
+
*/
|
9922
|
+
RequestId?: string;
|
9863
9923
|
}
|
9864
9924
|
/**
|
9865
9925
|
* IDCardResult
|
@@ -9961,27 +10021,6 @@ export interface QuestionBlockObj {
|
|
9961
10021
|
*/
|
9962
10022
|
QuestionBboxCoord: Rect;
|
9963
10023
|
}
|
9964
|
-
/**
|
9965
|
-
* 增值税普通发票(卷票)条目
|
9966
|
-
*/
|
9967
|
-
export interface VatRollItem {
|
9968
|
-
/**
|
9969
|
-
* 项目名称
|
9970
|
-
*/
|
9971
|
-
Name?: string;
|
9972
|
-
/**
|
9973
|
-
* 数量
|
9974
|
-
*/
|
9975
|
-
Quantity?: string;
|
9976
|
-
/**
|
9977
|
-
* 单价
|
9978
|
-
*/
|
9979
|
-
Price?: string;
|
9980
|
-
/**
|
9981
|
-
* 金额
|
9982
|
-
*/
|
9983
|
-
Total?: string;
|
9984
|
-
}
|
9985
10024
|
/**
|
9986
10025
|
* AdvertiseOCR返回参数结构体
|
9987
10026
|
*/
|
@@ -10608,6 +10647,61 @@ export interface QuotaInvoiceOCRRequest {
|
|
10608
10647
|
*/
|
10609
10648
|
PdfPageNumber?: number;
|
10610
10649
|
}
|
10650
|
+
/**
|
10651
|
+
* BankCardOCR返回参数结构体
|
10652
|
+
*/
|
10653
|
+
export interface BankCardOCRResponse {
|
10654
|
+
/**
|
10655
|
+
* 卡号
|
10656
|
+
*/
|
10657
|
+
CardNo?: string;
|
10658
|
+
/**
|
10659
|
+
* 银行信息
|
10660
|
+
*/
|
10661
|
+
BankInfo?: string;
|
10662
|
+
/**
|
10663
|
+
* 有效期,格式如:07/2023
|
10664
|
+
*/
|
10665
|
+
ValidDate?: string;
|
10666
|
+
/**
|
10667
|
+
* 卡类型
|
10668
|
+
*/
|
10669
|
+
CardType?: string;
|
10670
|
+
/**
|
10671
|
+
* 卡名字
|
10672
|
+
*/
|
10673
|
+
CardName?: string;
|
10674
|
+
/**
|
10675
|
+
* 切片图片数据
|
10676
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10677
|
+
*/
|
10678
|
+
BorderCutImage?: string;
|
10679
|
+
/**
|
10680
|
+
* 卡号图片数据
|
10681
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10682
|
+
*/
|
10683
|
+
CardNoImage?: string;
|
10684
|
+
/**
|
10685
|
+
* WarningCode 告警码列表和释义:
|
10686
|
+
-9110:银行卡日期无效;
|
10687
|
+
-9111:银行卡边框不完整;
|
10688
|
+
-9112:银行卡图片反光;
|
10689
|
+
-9113:银行卡复印件;
|
10690
|
+
-9114:银行卡翻拍件
|
10691
|
+
(告警码可以同时存在多个)
|
10692
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10693
|
+
*/
|
10694
|
+
WarningCode?: Array<number | bigint>;
|
10695
|
+
/**
|
10696
|
+
* 图片质量分数,请求EnableQualityValue时返回(取值范围:0-100,分数越低越模糊,建议阈值≥50)。
|
10697
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
10698
|
+
*/
|
10699
|
+
QualityValue?: number;
|
10700
|
+
/**
|
10701
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
10702
|
+
*/
|
10703
|
+
RequestId?: string;
|
10704
|
+
}
|
10611
10705
|
/**
|
10612
10706
|
* BusinessCardOCR请求参数结构体
|
10613
10707
|
*/
|