tencentcloud-sdk-nodejs-ocr 4.0.1004 → 4.0.1005
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 +13 -13
- package/src/services/ocr/v20181119/ocr_client.ts +92 -106
- package/src/services/ocr/v20181119/ocr_models.ts +113 -209
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +73 -79
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +76 -84
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +112 -206
@@ -28,72 +28,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
28
28
|
super("ocr.tencentcloudapi.com", "2018-11-19", clientConfig);
|
29
29
|
}
|
30
30
|
/**
|
31
|
-
*
|
32
|
-
|
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>
|
31
|
+
* 本接口支持病案首页、费用清单、结算单、医疗发票四种保险理赔单据的文本识别和结构化输出。
|
92
32
|
|
93
|
-
默认接口请求频率限制:
|
33
|
+
默认接口请求频率限制:1次/秒。
|
94
34
|
*/
|
95
|
-
async
|
96
|
-
return this.request("
|
35
|
+
async InsuranceBillOCR(req, cb) {
|
36
|
+
return this.request("InsuranceBillOCR", req, cb);
|
97
37
|
}
|
98
38
|
/**
|
99
39
|
* 文本图像增强是面向文档类图片提供的图像增强处理能力,包括切边增强、图像矫正、阴影去除、摩尔纹去除等;可以有效优化文档类的图片质量,提升文字的清晰度。
|
@@ -127,14 +67,6 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
127
67
|
async BusinessCardOCR(req, cb) {
|
128
68
|
return this.request("BusinessCardOCR", req, cb);
|
129
69
|
}
|
130
|
-
/**
|
131
|
-
* 本接口支持病案首页、费用清单、结算单、医疗发票四种保险理赔单据的文本识别和结构化输出。
|
132
|
-
|
133
|
-
默认接口请求频率限制:1次/秒。
|
134
|
-
*/
|
135
|
-
async InsuranceBillOCR(req, cb) {
|
136
|
-
return this.request("InsuranceBillOCR", req, cb);
|
137
|
-
}
|
138
70
|
/**
|
139
71
|
* 本接口支持网约车行程单关键字段的识别,包括行程起止日期、上车时间、起点、终点、里程、金额等字段。
|
140
72
|
|
@@ -297,6 +229,14 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
297
229
|
async GeneralAccurateOCR(req, cb) {
|
298
230
|
return this.request("GeneralAccurateOCR", req, cb);
|
299
231
|
}
|
232
|
+
/**
|
233
|
+
* 本接口支持机票行程单关键字段的识别,包括旅客姓名、有效身份证件号码、电子客票号码、验证码、填开单位、其他税费、燃油附加费、民航发展基金、保险费、销售单位代号、始发地、目的地、航班号、时间、日期、座位等级、承运人、发票消费类型、票价、合计金额、填开日期、国内国际标签、印刷序号、客票级别/类别、客票生效日期、有效期截止日期、免费行李等字段,支持航班信息多行明细输出。
|
234
|
+
|
235
|
+
默认接口请求频率限制:5次/秒。
|
236
|
+
*/
|
237
|
+
async FlightInvoiceOCR(req, cb) {
|
238
|
+
return this.request("FlightInvoiceOCR", req, cb);
|
239
|
+
}
|
300
240
|
/**
|
301
241
|
* 本接口支持集装箱箱门信息识别,识别字段包括集装箱箱号、类型、总重量、有效承重、容量、自身重量,具备集装箱箱号、类型不完整或者不清晰的告警功能。
|
302
242
|
默认接口请求频率限制:5次/秒。
|
@@ -569,12 +509,72 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
569
509
|
return this.request("DutyPaidProofOCR", req, cb);
|
570
510
|
}
|
571
511
|
/**
|
572
|
-
*
|
512
|
+
* 本接口支持图像整体文字的检测和识别。可以识别中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语,阿拉伯语20种语言,且各种语言均支持与英文混合的文字识别。
|
573
513
|
|
574
|
-
|
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>
|
573
|
+
|
574
|
+
默认接口请求频率限制:20次/秒。
|
575
575
|
*/
|
576
|
-
async
|
577
|
-
return this.request("
|
576
|
+
async GeneralBasicOCR(req, cb) {
|
577
|
+
return this.request("GeneralBasicOCR", req, cb);
|
578
578
|
}
|
579
579
|
/**
|
580
580
|
* 本接口支持对卡式港澳台通行证的识别,包括签发地点、签发机关、有效期限、性别、出生日期、英文姓名、姓名、证件号等字段。
|
@@ -853,14 +853,6 @@ 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
|
-
}
|
864
856
|
/**
|
865
857
|
* 本接口支持机动车销售统一发票和二手车销售统一发票的识别,包括发票号码、发票代码、合计金额、合计税额等二十多个字段。
|
866
858
|
|
@@ -157,34 +157,6 @@ 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
|
-
}
|
188
160
|
/**
|
189
161
|
* BankSlipOCR请求参数结构体
|
190
162
|
*/
|
@@ -336,43 +308,32 @@ export interface ResidencePermitInfo {
|
|
336
308
|
IssueNum?: ContentInfo;
|
337
309
|
}
|
338
310
|
/**
|
339
|
-
*
|
311
|
+
* HKIDCardOCR请求参数结构体
|
340
312
|
*/
|
341
|
-
export interface
|
342
|
-
/**
|
343
|
-
* 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
|
344
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
345
|
-
*/
|
346
|
-
ImageBase64?: string;
|
347
|
-
/**
|
348
|
-
* 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
|
349
|
-
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
350
|
-
*/
|
351
|
-
ImageUrl?: string;
|
352
|
-
/**
|
353
|
-
* 是否返回预处理(精确剪裁对齐)后的银行卡图片数据,默认false。
|
354
|
-
*/
|
355
|
-
RetBorderCutImage?: boolean;
|
356
|
-
/**
|
357
|
-
* 是否返回卡号的切图图片数据,默认false。
|
358
|
-
*/
|
359
|
-
RetCardNoImage?: boolean;
|
313
|
+
export interface HKIDCardOCRRequest {
|
360
314
|
/**
|
361
|
-
*
|
315
|
+
* 是否返回人像照片。
|
362
316
|
*/
|
363
|
-
|
317
|
+
ReturnHeadImage: boolean;
|
364
318
|
/**
|
365
|
-
*
|
319
|
+
* 是否鉴伪。
|
320
|
+
* @deprecated
|
366
321
|
*/
|
367
|
-
|
322
|
+
DetectFake?: boolean;
|
368
323
|
/**
|
369
|
-
*
|
324
|
+
* 图片的 Base64 值。
|
325
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
326
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
370
327
|
*/
|
371
|
-
|
328
|
+
ImageBase64?: string;
|
372
329
|
/**
|
373
|
-
*
|
330
|
+
* 图片的 Url 地址。
|
331
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
332
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
|
333
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
334
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
374
335
|
*/
|
375
|
-
|
336
|
+
ImageUrl?: string;
|
376
337
|
}
|
377
338
|
/**
|
378
339
|
* CarInvoiceOCR请求参数结构体
|
@@ -554,32 +515,26 @@ export interface EstateCertOCRResponse {
|
|
554
515
|
RequestId?: string;
|
555
516
|
}
|
556
517
|
/**
|
557
|
-
*
|
518
|
+
* GeneralHandwritingOCR返回参数结构体
|
558
519
|
*/
|
559
|
-
export interface
|
520
|
+
export interface GeneralHandwritingOCRResponse {
|
560
521
|
/**
|
561
|
-
*
|
562
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
563
|
-
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
564
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
522
|
+
* 检测到的文本信息,具体内容请点击左侧链接。
|
565
523
|
*/
|
566
|
-
|
524
|
+
TextDetections?: Array<TextGeneralHandwriting>;
|
567
525
|
/**
|
568
|
-
*
|
569
|
-
|
570
|
-
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
571
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
572
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
526
|
+
* 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
|
527
|
+
* @deprecated
|
573
528
|
*/
|
574
|
-
|
529
|
+
Angel?: number;
|
575
530
|
/**
|
576
|
-
*
|
531
|
+
* 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
|
577
532
|
*/
|
578
|
-
|
533
|
+
Angle?: number;
|
579
534
|
/**
|
580
|
-
*
|
535
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
581
536
|
*/
|
582
|
-
|
537
|
+
RequestId?: string;
|
583
538
|
}
|
584
539
|
/**
|
585
540
|
* 还原文本信息
|
@@ -1338,25 +1293,32 @@ export interface SingleInvoiceInfo {
|
|
1338
1293
|
Row?: number;
|
1339
1294
|
}
|
1340
1295
|
/**
|
1341
|
-
*
|
1296
|
+
* FlightInvoiceOCR请求参数结构体
|
1342
1297
|
*/
|
1343
|
-
export interface
|
1298
|
+
export interface FlightInvoiceOCRRequest {
|
1344
1299
|
/**
|
1345
|
-
*
|
1300
|
+
* 图片的 Base64 值。
|
1301
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
1302
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
1303
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
1346
1304
|
*/
|
1347
|
-
|
1305
|
+
ImageBase64?: string;
|
1348
1306
|
/**
|
1349
|
-
*
|
1307
|
+
* 图片的 Url 地址。
|
1308
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
1309
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
1310
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
1311
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
1350
1312
|
*/
|
1351
|
-
|
1313
|
+
ImageUrl?: string;
|
1352
1314
|
/**
|
1353
|
-
*
|
1315
|
+
* 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
|
1354
1316
|
*/
|
1355
|
-
|
1317
|
+
IsPdf?: boolean;
|
1356
1318
|
/**
|
1357
|
-
*
|
1319
|
+
* 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
|
1358
1320
|
*/
|
1359
|
-
|
1321
|
+
PdfPageNumber?: number;
|
1360
1322
|
}
|
1361
1323
|
/**
|
1362
1324
|
* 数学公式识别结果
|
@@ -2919,19 +2881,49 @@ export interface BusInvoice {
|
|
2919
2881
|
TrainNumber?: string;
|
2920
2882
|
}
|
2921
2883
|
/**
|
2922
|
-
*
|
2884
|
+
* 定额发票
|
2923
2885
|
*/
|
2924
|
-
export interface
|
2886
|
+
export interface QuotaInvoice {
|
2925
2887
|
/**
|
2926
|
-
*
|
2927
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
2888
|
+
* 发票名称
|
2928
2889
|
*/
|
2929
|
-
|
2890
|
+
Title?: string;
|
2930
2891
|
/**
|
2931
|
-
*
|
2932
|
-
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
2892
|
+
* 发票代码
|
2933
2893
|
*/
|
2934
|
-
|
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;
|
2919
|
+
/**
|
2920
|
+
* 是否存在二维码(1:有,0:无)
|
2921
|
+
*/
|
2922
|
+
QRCodeMark?: number;
|
2923
|
+
/**
|
2924
|
+
* 是否有公司印章(0:没有,1:有)
|
2925
|
+
*/
|
2926
|
+
CompanySealMark?: number;
|
2935
2927
|
}
|
2936
2928
|
/**
|
2937
2929
|
* TaxiInvoiceOCR返回参数结构体
|
@@ -9834,51 +9826,6 @@ export interface PermitOCRResponse {
|
|
9834
9826
|
*/
|
9835
9827
|
RequestId?: string;
|
9836
9828
|
}
|
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
|
-
}
|
9882
9829
|
/**
|
9883
9830
|
* InsuranceBillOCR请求参数结构体
|
9884
9831
|
*/
|
@@ -9900,26 +9847,19 @@ export interface InsuranceBillOCRRequest {
|
|
9900
9847
|
ImageUrl?: string;
|
9901
9848
|
}
|
9902
9849
|
/**
|
9903
|
-
*
|
9850
|
+
* QrcodeOCR请求参数结构体
|
9904
9851
|
*/
|
9905
|
-
export interface
|
9906
|
-
/**
|
9907
|
-
* 检测到的文本信息,具体内容请点击左侧链接。
|
9908
|
-
*/
|
9909
|
-
TextDetections?: Array<TextGeneralHandwriting>;
|
9910
|
-
/**
|
9911
|
-
* 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
|
9912
|
-
* @deprecated
|
9913
|
-
*/
|
9914
|
-
Angel?: number;
|
9852
|
+
export interface QrcodeOCRRequest {
|
9915
9853
|
/**
|
9916
|
-
*
|
9854
|
+
* 图片的 Base64 值。要求图片经Base64编码后不超过 7M,支持PNG、JPG、JPEG格式。
|
9855
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
9917
9856
|
*/
|
9918
|
-
|
9857
|
+
ImageBase64?: string;
|
9919
9858
|
/**
|
9920
|
-
*
|
9859
|
+
* 图片的 Url 地址。要求图片经Base64编码后不超过 7M,支持PNG、JPG、JPEG格式。
|
9860
|
+
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
9921
9861
|
*/
|
9922
|
-
|
9862
|
+
ImageUrl?: string;
|
9923
9863
|
}
|
9924
9864
|
/**
|
9925
9865
|
* IDCardResult
|
@@ -10021,6 +9961,27 @@ export interface QuestionBlockObj {
|
|
10021
9961
|
*/
|
10022
9962
|
QuestionBboxCoord: Rect;
|
10023
9963
|
}
|
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
|
+
}
|
10024
9985
|
/**
|
10025
9986
|
* AdvertiseOCR返回参数结构体
|
10026
9987
|
*/
|
@@ -10647,61 +10608,6 @@ export interface QuotaInvoiceOCRRequest {
|
|
10647
10608
|
*/
|
10648
10609
|
PdfPageNumber?: number;
|
10649
10610
|
}
|
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
|
-
}
|
10705
10611
|
/**
|
10706
10612
|
* BusinessCardOCR请求参数结构体
|
10707
10613
|
*/
|