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.
@@ -179,6 +179,35 @@ 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
+
182
211
  /**
183
212
  * BankSlipOCR请求参数结构体
184
213
  */
@@ -334,32 +363,43 @@ export interface ResidencePermitInfo {
334
363
  }
335
364
 
336
365
  /**
337
- * HKIDCardOCR请求参数结构体
366
+ * BankCardOCR请求参数结构体
338
367
  */
339
- export interface HKIDCardOCRRequest {
368
+ export interface BankCardOCRRequest {
340
369
  /**
341
- * 是否返回人像照片。
370
+ * 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
371
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
342
372
  */
343
- ReturnHeadImage: boolean
373
+ ImageBase64?: string
344
374
  /**
345
- * 是否鉴伪。
346
- * @deprecated
375
+ * 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
376
+ 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
347
377
  */
348
- DetectFake?: boolean
378
+ ImageUrl?: string
349
379
  /**
350
- * 图片的 Base64 值。
351
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
352
- 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
380
+ * 是否返回预处理(精确剪裁对齐)后的银行卡图片数据,默认false。
353
381
  */
354
- ImageBase64?: string
382
+ RetBorderCutImage?: boolean
355
383
  /**
356
- * 图片的 Url 地址。
357
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
358
- 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
359
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
360
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
384
+ * 是否返回卡号的切图图片数据,默认false。
361
385
  */
362
- ImageUrl?: string
386
+ RetCardNoImage?: boolean
387
+ /**
388
+ * 复印件检测开关,如果输入的图片是银行卡复印件图片则返回告警,默认false。
389
+ */
390
+ EnableCopyCheck?: boolean
391
+ /**
392
+ * 翻拍检测开关,如果输入的图片是银行卡翻拍图片则返回告警,默认false。
393
+ */
394
+ EnableReshootCheck?: boolean
395
+ /**
396
+ * 边框遮挡检测开关,如果输入的图片是银行卡边框被遮挡则返回告警,默认false。
397
+ */
398
+ EnableBorderCheck?: boolean
399
+ /**
400
+ * 是否返回图片质量分数(图片质量分数是评价一个图片的模糊程度的标准),默认false。
401
+ */
402
+ EnableQualityValue?: boolean
363
403
  }
364
404
 
365
405
  /**
@@ -547,26 +587,32 @@ export interface EstateCertOCRResponse {
547
587
  }
548
588
 
549
589
  /**
550
- * GeneralHandwritingOCR返回参数结构体
590
+ * FlightInvoiceOCR请求参数结构体
551
591
  */
552
- export interface GeneralHandwritingOCRResponse {
592
+ export interface FlightInvoiceOCRRequest {
553
593
  /**
554
- * 检测到的文本信息,具体内容请点击左侧链接。
594
+ * 图片的 Base64 值。
595
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
596
+ 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
597
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
555
598
  */
556
- TextDetections?: Array<TextGeneralHandwriting>
599
+ ImageBase64?: string
557
600
  /**
558
- * 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
559
- * @deprecated
601
+ * 图片的 Url 地址。
602
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
603
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
604
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
605
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
560
606
  */
561
- Angel?: number
607
+ ImageUrl?: string
562
608
  /**
563
- * 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
609
+ * 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
564
610
  */
565
- Angle?: number
611
+ IsPdf?: boolean
566
612
  /**
567
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId
613
+ * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1
568
614
  */
569
- RequestId?: string
615
+ PdfPageNumber?: number
570
616
  }
571
617
 
572
618
  /**
@@ -1348,32 +1394,25 @@ export interface SingleInvoiceInfo {
1348
1394
  }
1349
1395
 
1350
1396
  /**
1351
- * FlightInvoiceOCR请求参数结构体
1397
+ * 增值税普通发票(卷票)条目
1352
1398
  */
1353
- export interface FlightInvoiceOCRRequest {
1399
+ export interface VatRollItem {
1354
1400
  /**
1355
- * 图片的 Base64 值。
1356
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
1357
- 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
1358
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
1401
+ * 项目名称
1359
1402
  */
1360
- ImageBase64?: string
1403
+ Name?: string
1361
1404
  /**
1362
- * 图片的 Url 地址。
1363
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
1364
- 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
1365
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
1366
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
1405
+ * 数量
1367
1406
  */
1368
- ImageUrl?: string
1407
+ Quantity?: string
1369
1408
  /**
1370
- * 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
1409
+ * 单价
1371
1410
  */
1372
- IsPdf?: boolean
1411
+ Price?: string
1373
1412
  /**
1374
- * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
1413
+ * 金额
1375
1414
  */
1376
- PdfPageNumber?: number
1415
+ Total?: string
1377
1416
  }
1378
1417
 
1379
1418
  /**
@@ -2989,49 +3028,19 @@ export interface BusInvoice {
2989
3028
  }
2990
3029
 
2991
3030
  /**
2992
- * 定额发票
3031
+ * QrcodeOCR请求参数结构体
2993
3032
  */
2994
- export interface QuotaInvoice {
2995
- /**
2996
- * 发票名称
2997
- */
2998
- Title?: string
2999
- /**
3000
- * 发票代码
3001
- */
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
3033
+ export interface QrcodeOCRRequest {
3027
3034
  /**
3028
- * 是否存在二维码(1:有,0:无)
3035
+ * 图片的 Base64 值。要求图片经Base64编码后不超过 7M,支持PNG、JPG、JPEG格式。
3036
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
3029
3037
  */
3030
- QRCodeMark?: number
3038
+ ImageBase64?: string
3031
3039
  /**
3032
- * 是否有公司印章(0:没有,1:有)
3040
+ * 图片的 Url 地址。要求图片经Base64编码后不超过 7M,支持PNG、JPG、JPEG格式。
3041
+ 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
3033
3042
  */
3034
- CompanySealMark?: number
3043
+ ImageUrl?: string
3035
3044
  }
3036
3045
 
3037
3046
  /**
@@ -10110,6 +10119,52 @@ export interface PermitOCRResponse {
10110
10119
  RequestId?: string
10111
10120
  }
10112
10121
 
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
+
10113
10168
  /**
10114
10169
  * InsuranceBillOCR请求参数结构体
10115
10170
  */
@@ -10132,19 +10187,26 @@ export interface InsuranceBillOCRRequest {
10132
10187
  }
10133
10188
 
10134
10189
  /**
10135
- * QrcodeOCR请求参数结构体
10190
+ * GeneralHandwritingOCR返回参数结构体
10136
10191
  */
10137
- export interface QrcodeOCRRequest {
10192
+ export interface GeneralHandwritingOCRResponse {
10138
10193
  /**
10139
- * 图片的 Base64 值。要求图片经Base64编码后不超过 7M,支持PNG、JPG、JPEG格式。
10140
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
10194
+ * 检测到的文本信息,具体内容请点击左侧链接。
10141
10195
  */
10142
- ImageBase64?: string
10196
+ TextDetections?: Array<TextGeneralHandwriting>
10143
10197
  /**
10144
- * 图片的 Url 地址。要求图片经Base64编码后不超过 7M,支持PNG、JPG、JPEG格式。
10145
- 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
10198
+ * 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
10199
+ * @deprecated
10146
10200
  */
10147
- ImageUrl?: string
10201
+ Angel?: number
10202
+ /**
10203
+ * 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
10204
+ */
10205
+ Angle?: number
10206
+ /**
10207
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10208
+ */
10209
+ RequestId?: string
10148
10210
  }
10149
10211
 
10150
10212
  /**
@@ -10252,28 +10314,6 @@ export interface QuestionBlockObj {
10252
10314
  QuestionBboxCoord: Rect
10253
10315
  }
10254
10316
 
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
-
10277
10317
  /**
10278
10318
  * AdvertiseOCR返回参数结构体
10279
10319
  */
@@ -10919,6 +10959,62 @@ export interface QuotaInvoiceOCRRequest {
10919
10959
  PdfPageNumber?: number
10920
10960
  }
10921
10961
 
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
+
10922
11018
  /**
10923
11019
  * BusinessCardOCR请求参数结构体
10924
11020
  */
@@ -1,5 +1,5 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
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";
2
+ import { RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, BankCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, MLIDPassportOCRRequest, RecognizeGeneralTextImageWarnResponse, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, CreateAIFormTaskRequest, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, InstitutionOCRResponse, DriverLicenseOCRRequest, SmartStructuralProRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, SmartStructuralOCRV2Response, EnterpriseLicenseOCRRequest, SmartStructuralOCRRequest, RecognizeStoreNameRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, SmartStructuralOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, GeneralAccurateOCRResponse, QrcodeOCRRequest, 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, GeneralHandwritingOCRResponse, TableOCRResponse, AdvertiseOCRResponse, VehicleLicenseOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, RecognizeStoreNameResponse, GetOCRTokenRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, TableOCRRequest, VatInvoiceOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRResponse, BusinessCardOCRRequest, FinanBillOCRRequest, QuotaInvoiceOCRResponse, RecognizeGeneralTextImageWarnRequest, RecognizeForeignPermanentResidentIdCardRequest, GeneralFastOCRResponse } from "./ocr_models";
3
3
  /**
4
4
  * ocr client
5
5
  * @class
@@ -7,11 +7,71 @@ import { RecognizeOnlineTaxiItineraryOCRResponse, BankSlipOCRRequest, BusinessCa
7
7
  export declare class Client extends TencentCloudCommon.AbstractClient {
8
8
  constructor(clientConfig: TencentCloudCommon.ClientConfig);
9
9
  /**
10
- * 本接口支持病案首页、费用清单、结算单、医疗发票四种保险理赔单据的文本识别和结构化输出。
10
+ * 本接口支持图像整体文字的检测和识别。可以识别中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语,阿拉伯语20种语言,且各种语言均支持与英文混合的文字识别。
11
11
 
12
- 默认接口请求频率限制:1次/秒。
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>
71
+
72
+ 默认接口请求频率限制:20次/秒。
13
73
  */
14
- InsuranceBillOCR(req: InsuranceBillOCRRequest, cb?: (error: string, rep: InsuranceBillOCRResponse) => void): Promise<InsuranceBillOCRResponse>;
74
+ GeneralBasicOCR(req: GeneralBasicOCRRequest, cb?: (error: string, rep: GeneralBasicOCRResponse) => void): Promise<GeneralBasicOCRResponse>;
15
75
  /**
16
76
  * 文本图像增强是面向文档类图片提供的图像增强处理能力,包括切边增强、图像矫正、阴影去除、摩尔纹去除等;可以有效优化文档类的图片质量,提升文字的清晰度。
17
77
 
@@ -36,6 +96,12 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
36
96
  默认接口请求频率限制:10次/秒。
37
97
  */
38
98
  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>;
39
105
  /**
40
106
  * 本接口支持网约车行程单关键字段的识别,包括行程起止日期、上车时间、起点、终点、里程、金额等字段。
41
107
 
@@ -184,12 +250,6 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
184
250
  默认接口请求频率限制:10次/秒。
185
251
  */
186
252
  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>;
193
253
  /**
194
254
  * 本接口支持集装箱箱门信息识别,识别字段包括集装箱箱号、类型、总重量、有效承重、容量、自身重量,具备集装箱箱号、类型不完整或者不清晰的告警功能。
195
255
  默认接口请求频率限制:5次/秒。
@@ -406,71 +466,11 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
406
466
  */
407
467
  DutyPaidProofOCR(req: DutyPaidProofOCRRequest, cb?: (error: string, rep: DutyPaidProofOCRResponse) => void): Promise<DutyPaidProofOCRResponse>;
408
468
  /**
409
- * 本接口支持图像整体文字的检测和识别。可以识别中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语,阿拉伯语20种语言,且各种语言均支持与英文混合的文字识别。
410
-
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>
469
+ * 本接口支持机票行程单关键字段的识别,包括旅客姓名、有效身份证件号码、电子客票号码、验证码、填开单位、其他税费、燃油附加费、民航发展基金、保险费、销售单位代号、始发地、目的地、航班号、时间、日期、座位等级、承运人、发票消费类型、票价、合计金额、填开日期、国内国际标签、印刷序号、客票级别/类别、客票生效日期、有效期截止日期、免费行李等字段,支持航班信息多行明细输出。
470
470
 
471
- 默认接口请求频率限制:20次/秒。
471
+ 默认接口请求频率限制:5次/秒。
472
472
  */
473
- GeneralBasicOCR(req: GeneralBasicOCRRequest, cb?: (error: string, rep: GeneralBasicOCRResponse) => void): Promise<GeneralBasicOCRResponse>;
473
+ FlightInvoiceOCR(req: FlightInvoiceOCRRequest, cb?: (error: string, rep: FlightInvoiceOCRResponse) => void): Promise<FlightInvoiceOCRResponse>;
474
474
  /**
475
475
  * 本接口支持对卡式港澳台通行证的识别,包括签发地点、签发机关、有效期限、性别、出生日期、英文姓名、姓名、证件号等字段。
476
476
 
@@ -694,6 +694,12 @@ 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>;
697
703
  /**
698
704
  * 本接口支持机动车销售统一发票和二手车销售统一发票的识别,包括发票号码、发票代码、合计金额、合计税额等二十多个字段。
699
705