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
@@ -179,35 +179,6 @@ FailedOperation.UnKnowError:表示识别失败;
|
|
179
179
|
ItemPolygon?: Array<ItemPolygonInfo>
|
180
180
|
}
|
181
181
|
|
182
|
-
/**
|
183
|
-
* HKIDCardOCR请求参数结构体
|
184
|
-
*/
|
185
|
-
export interface HKIDCardOCRRequest {
|
186
|
-
/**
|
187
|
-
* 是否返回人像照片。
|
188
|
-
*/
|
189
|
-
ReturnHeadImage: boolean
|
190
|
-
/**
|
191
|
-
* 是否鉴伪。
|
192
|
-
* @deprecated
|
193
|
-
*/
|
194
|
-
DetectFake?: boolean
|
195
|
-
/**
|
196
|
-
* 图片的 Base64 值。
|
197
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
198
|
-
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
199
|
-
*/
|
200
|
-
ImageBase64?: string
|
201
|
-
/**
|
202
|
-
* 图片的 Url 地址。
|
203
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
204
|
-
支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
|
205
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
206
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
207
|
-
*/
|
208
|
-
ImageUrl?: string
|
209
|
-
}
|
210
|
-
|
211
182
|
/**
|
212
183
|
* BankSlipOCR请求参数结构体
|
213
184
|
*/
|
@@ -363,43 +334,32 @@ export interface ResidencePermitInfo {
|
|
363
334
|
}
|
364
335
|
|
365
336
|
/**
|
366
|
-
*
|
337
|
+
* HKIDCardOCR请求参数结构体
|
367
338
|
*/
|
368
|
-
export interface
|
369
|
-
/**
|
370
|
-
* 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
|
371
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
372
|
-
*/
|
373
|
-
ImageBase64?: string
|
374
|
-
/**
|
375
|
-
* 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
|
376
|
-
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
377
|
-
*/
|
378
|
-
ImageUrl?: string
|
379
|
-
/**
|
380
|
-
* 是否返回预处理(精确剪裁对齐)后的银行卡图片数据,默认false。
|
381
|
-
*/
|
382
|
-
RetBorderCutImage?: boolean
|
383
|
-
/**
|
384
|
-
* 是否返回卡号的切图图片数据,默认false。
|
385
|
-
*/
|
386
|
-
RetCardNoImage?: boolean
|
339
|
+
export interface HKIDCardOCRRequest {
|
387
340
|
/**
|
388
|
-
*
|
341
|
+
* 是否返回人像照片。
|
389
342
|
*/
|
390
|
-
|
343
|
+
ReturnHeadImage: boolean
|
391
344
|
/**
|
392
|
-
*
|
345
|
+
* 是否鉴伪。
|
346
|
+
* @deprecated
|
393
347
|
*/
|
394
|
-
|
348
|
+
DetectFake?: boolean
|
395
349
|
/**
|
396
|
-
*
|
350
|
+
* 图片的 Base64 值。
|
351
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
352
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
397
353
|
*/
|
398
|
-
|
354
|
+
ImageBase64?: string
|
399
355
|
/**
|
400
|
-
*
|
356
|
+
* 图片的 Url 地址。
|
357
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
358
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
|
359
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
360
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
401
361
|
*/
|
402
|
-
|
362
|
+
ImageUrl?: string
|
403
363
|
}
|
404
364
|
|
405
365
|
/**
|
@@ -587,32 +547,26 @@ export interface EstateCertOCRResponse {
|
|
587
547
|
}
|
588
548
|
|
589
549
|
/**
|
590
|
-
*
|
550
|
+
* GeneralHandwritingOCR返回参数结构体
|
591
551
|
*/
|
592
|
-
export interface
|
552
|
+
export interface GeneralHandwritingOCRResponse {
|
593
553
|
/**
|
594
|
-
*
|
595
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
596
|
-
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
597
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
554
|
+
* 检测到的文本信息,具体内容请点击左侧链接。
|
598
555
|
*/
|
599
|
-
|
556
|
+
TextDetections?: Array<TextGeneralHandwriting>
|
600
557
|
/**
|
601
|
-
*
|
602
|
-
|
603
|
-
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
604
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
605
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
558
|
+
* 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
|
559
|
+
* @deprecated
|
606
560
|
*/
|
607
|
-
|
561
|
+
Angel?: number
|
608
562
|
/**
|
609
|
-
*
|
563
|
+
* 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
|
610
564
|
*/
|
611
|
-
|
565
|
+
Angle?: number
|
612
566
|
/**
|
613
|
-
*
|
567
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
614
568
|
*/
|
615
|
-
|
569
|
+
RequestId?: string
|
616
570
|
}
|
617
571
|
|
618
572
|
/**
|
@@ -1394,25 +1348,32 @@ export interface SingleInvoiceInfo {
|
|
1394
1348
|
}
|
1395
1349
|
|
1396
1350
|
/**
|
1397
|
-
*
|
1351
|
+
* FlightInvoiceOCR请求参数结构体
|
1398
1352
|
*/
|
1399
|
-
export interface
|
1353
|
+
export interface FlightInvoiceOCRRequest {
|
1400
1354
|
/**
|
1401
|
-
*
|
1355
|
+
* 图片的 Base64 值。
|
1356
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
1357
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
1358
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
1402
1359
|
*/
|
1403
|
-
|
1360
|
+
ImageBase64?: string
|
1404
1361
|
/**
|
1405
|
-
*
|
1362
|
+
* 图片的 Url 地址。
|
1363
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
1364
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
1365
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
1366
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
1406
1367
|
*/
|
1407
|
-
|
1368
|
+
ImageUrl?: string
|
1408
1369
|
/**
|
1409
|
-
*
|
1370
|
+
* 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
|
1410
1371
|
*/
|
1411
|
-
|
1372
|
+
IsPdf?: boolean
|
1412
1373
|
/**
|
1413
|
-
*
|
1374
|
+
* 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
|
1414
1375
|
*/
|
1415
|
-
|
1376
|
+
PdfPageNumber?: number
|
1416
1377
|
}
|
1417
1378
|
|
1418
1379
|
/**
|
@@ -3028,19 +2989,49 @@ export interface BusInvoice {
|
|
3028
2989
|
}
|
3029
2990
|
|
3030
2991
|
/**
|
3031
|
-
*
|
2992
|
+
* 定额发票
|
3032
2993
|
*/
|
3033
|
-
export interface
|
2994
|
+
export interface QuotaInvoice {
|
3034
2995
|
/**
|
3035
|
-
*
|
3036
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
2996
|
+
* 发票名称
|
3037
2997
|
*/
|
3038
|
-
|
2998
|
+
Title?: string
|
3039
2999
|
/**
|
3040
|
-
*
|
3041
|
-
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
3000
|
+
* 发票代码
|
3042
3001
|
*/
|
3043
|
-
|
3002
|
+
Code?: string
|
3003
|
+
/**
|
3004
|
+
* 发票号码
|
3005
|
+
*/
|
3006
|
+
Number?: string
|
3007
|
+
/**
|
3008
|
+
* 价税合计(小写)
|
3009
|
+
*/
|
3010
|
+
Total?: string
|
3011
|
+
/**
|
3012
|
+
* 价税合计(大写)
|
3013
|
+
*/
|
3014
|
+
TotalCn?: string
|
3015
|
+
/**
|
3016
|
+
* 发票消费类型
|
3017
|
+
*/
|
3018
|
+
Kind?: string
|
3019
|
+
/**
|
3020
|
+
* 省
|
3021
|
+
*/
|
3022
|
+
Province?: string
|
3023
|
+
/**
|
3024
|
+
* 市
|
3025
|
+
*/
|
3026
|
+
City?: string
|
3027
|
+
/**
|
3028
|
+
* 是否存在二维码(1:有,0:无)
|
3029
|
+
*/
|
3030
|
+
QRCodeMark?: number
|
3031
|
+
/**
|
3032
|
+
* 是否有公司印章(0:没有,1:有)
|
3033
|
+
*/
|
3034
|
+
CompanySealMark?: number
|
3044
3035
|
}
|
3045
3036
|
|
3046
3037
|
/**
|
@@ -10119,52 +10110,6 @@ export interface PermitOCRResponse {
|
|
10119
10110
|
RequestId?: string
|
10120
10111
|
}
|
10121
10112
|
|
10122
|
-
/**
|
10123
|
-
* 定额发票
|
10124
|
-
*/
|
10125
|
-
export interface QuotaInvoice {
|
10126
|
-
/**
|
10127
|
-
* 发票名称
|
10128
|
-
*/
|
10129
|
-
Title?: string
|
10130
|
-
/**
|
10131
|
-
* 发票代码
|
10132
|
-
*/
|
10133
|
-
Code?: string
|
10134
|
-
/**
|
10135
|
-
* 发票号码
|
10136
|
-
*/
|
10137
|
-
Number?: string
|
10138
|
-
/**
|
10139
|
-
* 价税合计(小写)
|
10140
|
-
*/
|
10141
|
-
Total?: string
|
10142
|
-
/**
|
10143
|
-
* 价税合计(大写)
|
10144
|
-
*/
|
10145
|
-
TotalCn?: string
|
10146
|
-
/**
|
10147
|
-
* 发票消费类型
|
10148
|
-
*/
|
10149
|
-
Kind?: string
|
10150
|
-
/**
|
10151
|
-
* 省
|
10152
|
-
*/
|
10153
|
-
Province?: string
|
10154
|
-
/**
|
10155
|
-
* 市
|
10156
|
-
*/
|
10157
|
-
City?: string
|
10158
|
-
/**
|
10159
|
-
* 是否存在二维码(1:有,0:无)
|
10160
|
-
*/
|
10161
|
-
QRCodeMark?: number
|
10162
|
-
/**
|
10163
|
-
* 是否有公司印章(0:没有,1:有)
|
10164
|
-
*/
|
10165
|
-
CompanySealMark?: number
|
10166
|
-
}
|
10167
|
-
|
10168
10113
|
/**
|
10169
10114
|
* InsuranceBillOCR请求参数结构体
|
10170
10115
|
*/
|
@@ -10187,26 +10132,19 @@ export interface InsuranceBillOCRRequest {
|
|
10187
10132
|
}
|
10188
10133
|
|
10189
10134
|
/**
|
10190
|
-
*
|
10135
|
+
* QrcodeOCR请求参数结构体
|
10191
10136
|
*/
|
10192
|
-
export interface
|
10193
|
-
/**
|
10194
|
-
* 检测到的文本信息,具体内容请点击左侧链接。
|
10195
|
-
*/
|
10196
|
-
TextDetections?: Array<TextGeneralHandwriting>
|
10197
|
-
/**
|
10198
|
-
* 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
|
10199
|
-
* @deprecated
|
10200
|
-
*/
|
10201
|
-
Angel?: number
|
10137
|
+
export interface QrcodeOCRRequest {
|
10202
10138
|
/**
|
10203
|
-
*
|
10139
|
+
* 图片的 Base64 值。要求图片经Base64编码后不超过 7M,支持PNG、JPG、JPEG格式。
|
10140
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
10204
10141
|
*/
|
10205
|
-
|
10142
|
+
ImageBase64?: string
|
10206
10143
|
/**
|
10207
|
-
*
|
10144
|
+
* 图片的 Url 地址。要求图片经Base64编码后不超过 7M,支持PNG、JPG、JPEG格式。
|
10145
|
+
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
10208
10146
|
*/
|
10209
|
-
|
10147
|
+
ImageUrl?: string
|
10210
10148
|
}
|
10211
10149
|
|
10212
10150
|
/**
|
@@ -10314,6 +10252,28 @@ export interface QuestionBlockObj {
|
|
10314
10252
|
QuestionBboxCoord: Rect
|
10315
10253
|
}
|
10316
10254
|
|
10255
|
+
/**
|
10256
|
+
* 增值税普通发票(卷票)条目
|
10257
|
+
*/
|
10258
|
+
export interface VatRollItem {
|
10259
|
+
/**
|
10260
|
+
* 项目名称
|
10261
|
+
*/
|
10262
|
+
Name?: string
|
10263
|
+
/**
|
10264
|
+
* 数量
|
10265
|
+
*/
|
10266
|
+
Quantity?: string
|
10267
|
+
/**
|
10268
|
+
* 单价
|
10269
|
+
*/
|
10270
|
+
Price?: string
|
10271
|
+
/**
|
10272
|
+
* 金额
|
10273
|
+
*/
|
10274
|
+
Total?: string
|
10275
|
+
}
|
10276
|
+
|
10317
10277
|
/**
|
10318
10278
|
* AdvertiseOCR返回参数结构体
|
10319
10279
|
*/
|
@@ -10959,62 +10919,6 @@ export interface QuotaInvoiceOCRRequest {
|
|
10959
10919
|
PdfPageNumber?: number
|
10960
10920
|
}
|
10961
10921
|
|
10962
|
-
/**
|
10963
|
-
* BankCardOCR返回参数结构体
|
10964
|
-
*/
|
10965
|
-
export interface BankCardOCRResponse {
|
10966
|
-
/**
|
10967
|
-
* 卡号
|
10968
|
-
*/
|
10969
|
-
CardNo?: string
|
10970
|
-
/**
|
10971
|
-
* 银行信息
|
10972
|
-
*/
|
10973
|
-
BankInfo?: string
|
10974
|
-
/**
|
10975
|
-
* 有效期,格式如:07/2023
|
10976
|
-
*/
|
10977
|
-
ValidDate?: string
|
10978
|
-
/**
|
10979
|
-
* 卡类型
|
10980
|
-
*/
|
10981
|
-
CardType?: string
|
10982
|
-
/**
|
10983
|
-
* 卡名字
|
10984
|
-
*/
|
10985
|
-
CardName?: string
|
10986
|
-
/**
|
10987
|
-
* 切片图片数据
|
10988
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
10989
|
-
*/
|
10990
|
-
BorderCutImage?: string
|
10991
|
-
/**
|
10992
|
-
* 卡号图片数据
|
10993
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
10994
|
-
*/
|
10995
|
-
CardNoImage?: string
|
10996
|
-
/**
|
10997
|
-
* WarningCode 告警码列表和释义:
|
10998
|
-
-9110:银行卡日期无效;
|
10999
|
-
-9111:银行卡边框不完整;
|
11000
|
-
-9112:银行卡图片反光;
|
11001
|
-
-9113:银行卡复印件;
|
11002
|
-
-9114:银行卡翻拍件
|
11003
|
-
(告警码可以同时存在多个)
|
11004
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
11005
|
-
*/
|
11006
|
-
WarningCode?: Array<number | bigint>
|
11007
|
-
/**
|
11008
|
-
* 图片质量分数,请求EnableQualityValue时返回(取值范围:0-100,分数越低越模糊,建议阈值≥50)。
|
11009
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
11010
|
-
*/
|
11011
|
-
QualityValue?: number
|
11012
|
-
/**
|
11013
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
11014
|
-
*/
|
11015
|
-
RequestId?: string
|
11016
|
-
}
|
11017
|
-
|
11018
10922
|
/**
|
11019
10923
|
* BusinessCardOCR请求参数结构体
|
11020
10924
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
2
|
-
import { RecognizeOnlineTaxiItineraryOCRResponse,
|
2
|
+
import { RecognizeOnlineTaxiItineraryOCRResponse, BankSlipOCRRequest, BusinessCardOCRResponse, HKIDCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, GeneralHandwritingOCRResponse, MLIDPassportOCRRequest, RecognizeGeneralTextImageWarnResponse, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, CreateAIFormTaskRequest, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, FlightInvoiceOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, InstitutionOCRResponse, DriverLicenseOCRRequest, SmartStructuralProRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, SmartStructuralOCRV2Response, EnterpriseLicenseOCRRequest, SmartStructuralOCRRequest, RecognizeStoreNameRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, SmartStructuralOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, GeneralAccurateOCRResponse, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VinOCRRequest, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, RecognizeThaiIDCardOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, TaxiInvoiceOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, PropOwnerCertOCRRequest, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, ReconstructDocumentResponse, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, EnglishOCRRequest, VatInvoiceVerifyResponse, RecognizeValidIDCardOCRResponse, IDCardOCRResponse, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, FlightInvoiceOCRResponse, ShipInvoiceOCRResponse, ReconstructDocumentRequest, VatInvoiceVerifyNewRequest, InstitutionOCRRequest, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, ClassifyStoreNameResponse, VatRollInvoiceOCRRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, RecognizeEncryptedIDCardOCRResponse, VinOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, RecognizeEncryptedIDCardOCRRequest, CreateAIFormTaskResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, RecognizeGeneralInvoiceResponse, GetTaskStateResponse, GetTaskStateRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, MLIDPassportOCRResponse, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, HmtResidentPermitOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, GetOCRResultRequest, BusInvoiceOCRResponse, GetOCRResultResponse, MainlandPermitOCRResponse, MLIDCardOCRRequest, EnglishOCRResponse, RecognizeForeignPermanentResidentIdCardResponse, BusInvoiceOCRRequest, OrgCodeCertOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, SmartStructuralProResponse, PermitOCRResponse, InsuranceBillOCRRequest, QrcodeOCRRequest, TableOCRResponse, AdvertiseOCRResponse, VehicleLicenseOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, RecognizeStoreNameResponse, GetOCRTokenRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, TableOCRRequest, VatInvoiceOCRResponse, QuotaInvoiceOCRRequest, BusinessCardOCRRequest, FinanBillOCRRequest, QuotaInvoiceOCRResponse, RecognizeGeneralTextImageWarnRequest, RecognizeForeignPermanentResidentIdCardRequest, GeneralFastOCRResponse } from "./ocr_models";
|
3
3
|
/**
|
4
4
|
* ocr client
|
5
5
|
* @class
|
@@ -7,71 +7,11 @@ import { RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOC
|
|
7
7
|
export declare class Client extends TencentCloudCommon.AbstractClient {
|
8
8
|
constructor(clientConfig: TencentCloudCommon.ClientConfig);
|
9
9
|
/**
|
10
|
-
*
|
11
|
-
|
12
|
-
适用于印刷文档识别、网络图片识别、广告图文字识别、街景店招牌识别、菜单识别、视频标题识别、头像文字识别等场景。
|
13
|
-
|
14
|
-
产品优势:支持自动识别语言类型,可返回文本框坐标信息,对于倾斜文本支持自动旋转纠正。
|
15
|
-
|
16
|
-
通用印刷体识别不同版本的差异如下:
|
17
|
-
<table style="width:715px">
|
18
|
-
<thead>
|
19
|
-
<tr>
|
20
|
-
<th style="width:150px"></th>
|
21
|
-
<th style="width:200px">【荐】通用印刷体识别</th>
|
22
|
-
<th ><a href="https://cloud.tencent.com/document/product/866/34937">【荐】通用印刷体识别(高精度版)</a></th>
|
23
|
-
<th><a href="https://cloud.tencent.com/document/product/866/37831">通用印刷体识别(精简版)</a></th>
|
24
|
-
</tr>
|
25
|
-
</thead>
|
26
|
-
<tbody>
|
27
|
-
<tr>
|
28
|
-
<td> 适用场景</td>
|
29
|
-
<td>适用于所有通用场景的印刷体识别</td>
|
30
|
-
<td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>
|
31
|
-
<td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>
|
32
|
-
</tr>
|
33
|
-
<tr>
|
34
|
-
<td>识别准确率</td>
|
35
|
-
<td>96%</td>
|
36
|
-
<td>99%</td>
|
37
|
-
<td>91%</td>
|
38
|
-
</tr>
|
39
|
-
<tr>
|
40
|
-
<td>价格</td>
|
41
|
-
<td>中</td>
|
42
|
-
<td>高</td>
|
43
|
-
<td>低</td>
|
44
|
-
</tr>
|
45
|
-
<tr>
|
46
|
-
<td>支持的语言</td>
|
47
|
-
<td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
|
48
|
-
<td>中文、英文、中英文</td>
|
49
|
-
<td>中文、英文、中英文</td>
|
50
|
-
</tr>
|
51
|
-
<tr>
|
52
|
-
<td>自动语言检测</td>
|
53
|
-
<td>支持</td>
|
54
|
-
<td>支持</td>
|
55
|
-
<td>支持</td>
|
56
|
-
</tr>
|
57
|
-
<tr>
|
58
|
-
<td>返回文本行坐标</td>
|
59
|
-
<td>支持</td>
|
60
|
-
<td>支持</td>
|
61
|
-
<td>支持</td>
|
62
|
-
</tr>
|
63
|
-
<tr>
|
64
|
-
<td>自动旋转纠正</td>
|
65
|
-
<td>支持旋转识别,返回角度信息</td>
|
66
|
-
<td>支持旋转识别,返回角度信息</td>
|
67
|
-
<td>支持旋转识别,返回角度信息</td>
|
68
|
-
</tr>
|
69
|
-
</tbody>
|
70
|
-
</table>
|
10
|
+
* 本接口支持病案首页、费用清单、结算单、医疗发票四种保险理赔单据的文本识别和结构化输出。
|
71
11
|
|
72
|
-
默认接口请求频率限制:
|
12
|
+
默认接口请求频率限制:1次/秒。
|
73
13
|
*/
|
74
|
-
|
14
|
+
InsuranceBillOCR(req: InsuranceBillOCRRequest, cb?: (error: string, rep: InsuranceBillOCRResponse) => void): Promise<InsuranceBillOCRResponse>;
|
75
15
|
/**
|
76
16
|
* 文本图像增强是面向文档类图片提供的图像增强处理能力,包括切边增强、图像矫正、阴影去除、摩尔纹去除等;可以有效优化文档类的图片质量,提升文字的清晰度。
|
77
17
|
|
@@ -96,12 +36,6 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
96
36
|
默认接口请求频率限制:10次/秒。
|
97
37
|
*/
|
98
38
|
BusinessCardOCR(req: BusinessCardOCRRequest, cb?: (error: string, rep: BusinessCardOCRResponse) => void): Promise<BusinessCardOCRResponse>;
|
99
|
-
/**
|
100
|
-
* 本接口支持病案首页、费用清单、结算单、医疗发票四种保险理赔单据的文本识别和结构化输出。
|
101
|
-
|
102
|
-
默认接口请求频率限制:1次/秒。
|
103
|
-
*/
|
104
|
-
InsuranceBillOCR(req: InsuranceBillOCRRequest, cb?: (error: string, rep: InsuranceBillOCRResponse) => void): Promise<InsuranceBillOCRResponse>;
|
105
39
|
/**
|
106
40
|
* 本接口支持网约车行程单关键字段的识别,包括行程起止日期、上车时间、起点、终点、里程、金额等字段。
|
107
41
|
|
@@ -250,6 +184,12 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
250
184
|
默认接口请求频率限制:10次/秒。
|
251
185
|
*/
|
252
186
|
GeneralAccurateOCR(req: GeneralAccurateOCRRequest, cb?: (error: string, rep: GeneralAccurateOCRResponse) => void): Promise<GeneralAccurateOCRResponse>;
|
187
|
+
/**
|
188
|
+
* 本接口支持机票行程单关键字段的识别,包括旅客姓名、有效身份证件号码、电子客票号码、验证码、填开单位、其他税费、燃油附加费、民航发展基金、保险费、销售单位代号、始发地、目的地、航班号、时间、日期、座位等级、承运人、发票消费类型、票价、合计金额、填开日期、国内国际标签、印刷序号、客票级别/类别、客票生效日期、有效期截止日期、免费行李等字段,支持航班信息多行明细输出。
|
189
|
+
|
190
|
+
默认接口请求频率限制:5次/秒。
|
191
|
+
*/
|
192
|
+
FlightInvoiceOCR(req: FlightInvoiceOCRRequest, cb?: (error: string, rep: FlightInvoiceOCRResponse) => void): Promise<FlightInvoiceOCRResponse>;
|
253
193
|
/**
|
254
194
|
* 本接口支持集装箱箱门信息识别,识别字段包括集装箱箱号、类型、总重量、有效承重、容量、自身重量,具备集装箱箱号、类型不完整或者不清晰的告警功能。
|
255
195
|
默认接口请求频率限制:5次/秒。
|
@@ -466,11 +406,71 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
466
406
|
*/
|
467
407
|
DutyPaidProofOCR(req: DutyPaidProofOCRRequest, cb?: (error: string, rep: DutyPaidProofOCRResponse) => void): Promise<DutyPaidProofOCRResponse>;
|
468
408
|
/**
|
469
|
-
*
|
409
|
+
* 本接口支持图像整体文字的检测和识别。可以识别中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语,阿拉伯语20种语言,且各种语言均支持与英文混合的文字识别。
|
470
410
|
|
471
|
-
|
411
|
+
适用于印刷文档识别、网络图片识别、广告图文字识别、街景店招牌识别、菜单识别、视频标题识别、头像文字识别等场景。
|
412
|
+
|
413
|
+
产品优势:支持自动识别语言类型,可返回文本框坐标信息,对于倾斜文本支持自动旋转纠正。
|
414
|
+
|
415
|
+
通用印刷体识别不同版本的差异如下:
|
416
|
+
<table style="width:715px">
|
417
|
+
<thead>
|
418
|
+
<tr>
|
419
|
+
<th style="width:150px"></th>
|
420
|
+
<th style="width:200px">【荐】通用印刷体识别</th>
|
421
|
+
<th ><a href="https://cloud.tencent.com/document/product/866/34937">【荐】通用印刷体识别(高精度版)</a></th>
|
422
|
+
<th><a href="https://cloud.tencent.com/document/product/866/37831">通用印刷体识别(精简版)</a></th>
|
423
|
+
</tr>
|
424
|
+
</thead>
|
425
|
+
<tbody>
|
426
|
+
<tr>
|
427
|
+
<td> 适用场景</td>
|
428
|
+
<td>适用于所有通用场景的印刷体识别</td>
|
429
|
+
<td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>
|
430
|
+
<td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>
|
431
|
+
</tr>
|
432
|
+
<tr>
|
433
|
+
<td>识别准确率</td>
|
434
|
+
<td>96%</td>
|
435
|
+
<td>99%</td>
|
436
|
+
<td>91%</td>
|
437
|
+
</tr>
|
438
|
+
<tr>
|
439
|
+
<td>价格</td>
|
440
|
+
<td>中</td>
|
441
|
+
<td>高</td>
|
442
|
+
<td>低</td>
|
443
|
+
</tr>
|
444
|
+
<tr>
|
445
|
+
<td>支持的语言</td>
|
446
|
+
<td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
|
447
|
+
<td>中文、英文、中英文</td>
|
448
|
+
<td>中文、英文、中英文</td>
|
449
|
+
</tr>
|
450
|
+
<tr>
|
451
|
+
<td>自动语言检测</td>
|
452
|
+
<td>支持</td>
|
453
|
+
<td>支持</td>
|
454
|
+
<td>支持</td>
|
455
|
+
</tr>
|
456
|
+
<tr>
|
457
|
+
<td>返回文本行坐标</td>
|
458
|
+
<td>支持</td>
|
459
|
+
<td>支持</td>
|
460
|
+
<td>支持</td>
|
461
|
+
</tr>
|
462
|
+
<tr>
|
463
|
+
<td>自动旋转纠正</td>
|
464
|
+
<td>支持旋转识别,返回角度信息</td>
|
465
|
+
<td>支持旋转识别,返回角度信息</td>
|
466
|
+
<td>支持旋转识别,返回角度信息</td>
|
467
|
+
</tr>
|
468
|
+
</tbody>
|
469
|
+
</table>
|
470
|
+
|
471
|
+
默认接口请求频率限制:20次/秒。
|
472
472
|
*/
|
473
|
-
|
473
|
+
GeneralBasicOCR(req: GeneralBasicOCRRequest, cb?: (error: string, rep: GeneralBasicOCRResponse) => void): Promise<GeneralBasicOCRResponse>;
|
474
474
|
/**
|
475
475
|
* 本接口支持对卡式港澳台通行证的识别,包括签发地点、签发机关、有效期限、性别、出生日期、英文姓名、姓名、证件号等字段。
|
476
476
|
|
@@ -694,12 +694,6 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
694
694
|
默认接口请求频率限制:20次/秒。
|
695
695
|
*/
|
696
696
|
RecognizeValidIDCardOCR(req: RecognizeValidIDCardOCRRequest, cb?: (error: string, rep: RecognizeValidIDCardOCRResponse) => void): Promise<RecognizeValidIDCardOCRResponse>;
|
697
|
-
/**
|
698
|
-
* 本接口支持对中国大陆主流银行卡正反面关键字段的检测与识别,包括卡号、卡类型、卡名字、银行信息、有效期。支持竖排异形卡识别、多角度旋转图片识别。支持对复印件、翻拍件、边框遮挡的银行卡进行告警,可应用于各种银行卡信息有效性校验场景,如金融行业身份认证、第三方支付绑卡等场景。
|
699
|
-
|
700
|
-
默认接口请求频率限制:10次/秒。
|
701
|
-
*/
|
702
|
-
BankCardOCR(req: BankCardOCRRequest, cb?: (error: string, rep: BankCardOCRResponse) => void): Promise<BankCardOCRResponse>;
|
703
697
|
/**
|
704
698
|
* 本接口支持机动车销售统一发票和二手车销售统一发票的识别,包括发票号码、发票代码、合计金额、合计税额等二十多个字段。
|
705
699
|
|