tencentcloud-sdk-nodejs 4.0.981 → 4.0.983

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.
Files changed (108) hide show
  1. package/CHANGELOG.md +823 -0
  2. package/SERVICE_CHANGELOG.md +1172 -145
  3. package/package.json +1 -1
  4. package/products.md +33 -33
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/apigateway/v20180808/apigateway_client.ts +47 -22
  7. package/src/services/apigateway/v20180808/apigateway_models.ts +187 -81
  8. package/src/services/as/v20180419/as_models.ts +11 -6
  9. package/src/services/batch/v20170312/batch_models.ts +17 -34
  10. package/src/services/bi/v20220105/bi_client.ts +37 -9
  11. package/src/services/bi/v20220105/bi_models.ts +240 -47
  12. package/src/services/billing/v20180709/billing_models.ts +58 -37
  13. package/src/services/bpaas/v20181217/bpaas_models.ts +20 -20
  14. package/src/services/cam/v20190116/cam_models.ts +27 -27
  15. package/src/services/cbs/v20170312/cbs_models.ts +1 -1
  16. package/src/services/cdwch/v20200915/cdwch_models.ts +1 -1
  17. package/src/services/cloudhsm/v20191112/cloudhsm_models.ts +40 -120
  18. package/src/services/cls/v20201016/cls_client.ts +1 -1
  19. package/src/services/cls/v20201016/cls_models.ts +5 -2
  20. package/src/services/config/v20220802/config_client.ts +29 -3
  21. package/src/services/config/v20220802/config_models.ts +226 -41
  22. package/src/services/cvm/v20170312/cvm_models.ts +17 -34
  23. package/src/services/cwp/v20180228/cwp_models.ts +1 -1
  24. package/src/services/cynosdb/v20190107/cynosdb_models.ts +2 -2
  25. package/src/services/ess/v20201111/ess_models.ts +105 -1
  26. package/src/services/essbasic/v20210526/essbasic_models.ts +110 -1
  27. package/src/services/gwlb/v20240906/gwlb_models.ts +1 -1
  28. package/src/services/hunyuan/v20230901/hunyuan_models.ts +2 -2
  29. package/src/services/iotexplorer/v20190423/iotexplorer_models.ts +11 -4
  30. package/src/services/ivld/v20210903/ivld_client.ts +0 -1
  31. package/src/services/ivld/v20210903/ivld_models.ts +1 -1
  32. package/src/services/lcic/v20220817/lcic_client.ts +25 -1
  33. package/src/services/lcic/v20220817/lcic_models.ts +240 -104
  34. package/src/services/live/v20180801/live_client.ts +152 -53
  35. package/src/services/live/v20180801/live_models.ts +443 -110
  36. package/src/services/lke/v20231130/lke_client.ts +1 -1
  37. package/src/services/mps/v20190612/mps_models.ts +0 -1
  38. package/src/services/mrs/v20200910/mrs_models.ts +146 -1472
  39. package/src/services/ocr/v20181119/ocr_client.ts +869 -972
  40. package/src/services/ocr/v20181119/ocr_models.ts +77 -681
  41. package/src/services/organization/v20181225/organization_models.ts +20 -20
  42. package/src/services/organization/v20210331/organization_models.ts +42 -206
  43. package/src/services/teo/v20220901/teo_client.ts +40 -4
  44. package/src/services/teo/v20220901/teo_models.ts +147 -46
  45. package/src/services/trtc/v20190722/trtc_client.ts +32 -7
  46. package/src/services/trtc/v20190722/trtc_models.ts +106 -42
  47. package/tencentcloud/common/sdk_version.d.ts +1 -1
  48. package/tencentcloud/common/sdk_version.js +1 -1
  49. package/tencentcloud/services/apigateway/v20180808/apigateway_client.d.ts +16 -8
  50. package/tencentcloud/services/apigateway/v20180808/apigateway_client.js +22 -10
  51. package/tencentcloud/services/apigateway/v20180808/apigateway_models.d.ts +182 -81
  52. package/tencentcloud/services/as/v20180419/as_models.d.ts +11 -6
  53. package/tencentcloud/services/batch/v20170312/batch_models.d.ts +17 -34
  54. package/tencentcloud/services/bi/v20220105/bi_client.d.ts +11 -3
  55. package/tencentcloud/services/bi/v20220105/bi_client.js +15 -3
  56. package/tencentcloud/services/bi/v20220105/bi_models.d.ts +231 -46
  57. package/tencentcloud/services/billing/v20180709/billing_models.d.ts +51 -30
  58. package/tencentcloud/services/bpaas/v20181217/bpaas_models.d.ts +20 -20
  59. package/tencentcloud/services/cam/v20190116/cam_models.d.ts +27 -27
  60. package/tencentcloud/services/cbs/v20170312/cbs_models.d.ts +1 -1
  61. package/tencentcloud/services/cdwch/v20200915/cdwch_models.d.ts +1 -1
  62. package/tencentcloud/services/cloudhsm/v20191112/cloudhsm_models.d.ts +40 -120
  63. package/tencentcloud/services/cls/v20201016/cls_client.d.ts +1 -1
  64. package/tencentcloud/services/cls/v20201016/cls_client.js +1 -1
  65. package/tencentcloud/services/cls/v20201016/cls_models.d.ts +5 -2
  66. package/tencentcloud/services/config/v20220802/config_client.d.ts +9 -1
  67. package/tencentcloud/services/config/v20220802/config_client.js +12 -0
  68. package/tencentcloud/services/config/v20220802/config_models.d.ts +219 -40
  69. package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +17 -34
  70. package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +1 -1
  71. package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +2 -2
  72. package/tencentcloud/services/ess/v20201111/ess_models.d.ts +105 -1
  73. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +110 -1
  74. package/tencentcloud/services/gwlb/v20240906/gwlb_models.d.ts +1 -1
  75. package/tencentcloud/services/hunyuan/v20230901/hunyuan_models.d.ts +2 -2
  76. package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +11 -4
  77. package/tencentcloud/services/ivld/v20210903/ivld_client.d.ts +0 -1
  78. package/tencentcloud/services/ivld/v20210903/ivld_client.js +0 -1
  79. package/tencentcloud/services/ivld/v20210903/ivld_models.d.ts +1 -1
  80. package/tencentcloud/services/lcic/v20220817/lcic_client.d.ts +9 -1
  81. package/tencentcloud/services/lcic/v20220817/lcic_client.js +12 -0
  82. package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +236 -104
  83. package/tencentcloud/services/live/v20180801/live_client.d.ts +48 -15
  84. package/tencentcloud/services/live/v20180801/live_client.js +70 -21
  85. package/tencentcloud/services/live/v20180801/live_models.d.ts +424 -109
  86. package/tencentcloud/services/lke/v20231130/lke_client.d.ts +1 -1
  87. package/tencentcloud/services/lke/v20231130/lke_client.js +1 -1
  88. package/tencentcloud/services/mps/v20190612/mps_models.d.ts +0 -1
  89. package/tencentcloud/services/mrs/v20200910/mrs_models.d.ts +146 -1472
  90. package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +529 -567
  91. package/tencentcloud/services/ocr/v20181119/ocr_client.js +682 -736
  92. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +86 -673
  93. package/tencentcloud/services/organization/v20181225/organization_models.d.ts +20 -20
  94. package/tencentcloud/services/organization/v20210331/organization_models.d.ts +41 -205
  95. package/tencentcloud/services/teo/v20220901/teo_client.d.ts +13 -1
  96. package/tencentcloud/services/teo/v20220901/teo_client.js +18 -0
  97. package/tencentcloud/services/teo/v20220901/teo_models.d.ts +141 -46
  98. package/tencentcloud/services/trtc/v20190722/trtc_client.d.ts +12 -3
  99. package/tencentcloud/services/trtc/v20190722/trtc_client.js +16 -3
  100. package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +102 -42
  101. package/test/apigateway.v20180808.test.js +32 -12
  102. package/test/bi.v20220105.test.js +22 -2
  103. package/test/config.v20220802.test.js +20 -0
  104. package/test/lcic.v20220817.test.js +20 -0
  105. package/test/live.v20180801.test.js +94 -14
  106. package/test/ocr.v20181119.test.js +156 -236
  107. package/test/teo.v20220901.test.js +30 -0
  108. package/test/trtc.v20190722.test.js +22 -2
@@ -30,13 +30,11 @@ import {
30
30
  ResidencePermitInfo,
31
31
  BankCardOCRRequest,
32
32
  CarInvoiceOCRRequest,
33
- TextDetectionResult,
34
33
  MixedInvoiceItem,
35
34
  RecognizeTravelCardOCRRequest,
36
35
  TrainTicketOCRRequest,
37
36
  EstateCertOCRResponse,
38
37
  FlightInvoiceOCRRequest,
39
- RecognizePhilippinesDrivingLicenseOCRRequest,
40
38
  WordItem,
41
39
  MLIDPassportOCRRequest,
42
40
  RecognizeGeneralTextImageWarnResponse,
@@ -56,7 +54,7 @@ import {
56
54
  InvoiceGeneralOCRRequest,
57
55
  Rect,
58
56
  LicensePlateInfo,
59
- RideHailingTransportLicenseOCRRequest,
57
+ SingleInvoiceInfo,
60
58
  VatRollItem,
61
59
  TextFormula,
62
60
  HmtResidentPermitOCRResponse,
@@ -66,9 +64,7 @@ import {
66
64
  FlightItem,
67
65
  Value,
68
66
  EnterpriseLicenseOCRResponse,
69
- RecognizeKoreanDrivingLicenseOCRResponse,
70
- RecognizeIndonesiaIDCardOCRRequest,
71
- RecognizeKoreanDrivingLicenseOCRRequest,
67
+ SealInfo,
72
68
  InvoiceGeneralInfo,
73
69
  TextVatInvoice,
74
70
  InstitutionOCRResponse,
@@ -96,7 +92,6 @@ import {
96
92
  PropOwnerCertOCRResponse,
97
93
  FinanBillInfo,
98
94
  TrainTicketOCRResponse,
99
- RecognizePhilippinesTinIDOCRResponse,
100
95
  TollInvoiceInfo,
101
96
  BankSlipInfo,
102
97
  SmartStructuralOCRResponse,
@@ -107,7 +102,7 @@ import {
107
102
  GeneralHandwritingOCRRequest,
108
103
  BizLicenseOCRRequest,
109
104
  MixedInvoiceDetectResponse,
110
- RecognizePhilippinesVoteIDOCRResponse,
105
+ RideHailingDriverLicenseOCRRequest,
111
106
  VatInvoiceUserInfo,
112
107
  GeneralMachineItem,
113
108
  GeneralAccurateOCRResponse,
@@ -126,7 +121,7 @@ import {
126
121
  ClassifyDetectOCRResponse,
127
122
  VatInvoiceVerifyNewRequest,
128
123
  VehicleLicenseOCRResponse,
129
- RecognizePhilippinesSssIDOCRRequest,
124
+ VatInvoiceOCRRequest,
130
125
  Key,
131
126
  ElectronicAirTransport,
132
127
  ClassifyDetectOCRRequest,
@@ -146,11 +141,9 @@ import {
146
141
  SmartFormFileUrl,
147
142
  VatInvoiceVerifyNewResponse,
148
143
  VatInvoiceInfo,
149
- RecognizePhilippinesSssIDOCRResponse,
150
144
  TaxiInvoiceOCRRequest,
151
145
  MachinePrintedInvoice,
152
146
  FinancialBillItem,
153
- SingleInvoiceInfo,
154
147
  RecognizeContainerOCRRequest,
155
148
  TrainTicket,
156
149
  TextDetectRequest,
@@ -170,7 +163,7 @@ import {
170
163
  PassportOCRResponse,
171
164
  FinancialBillItemDetails,
172
165
  CardWarnInfo,
173
- RecognizeKoreanIDCardOCRResponse,
166
+ VehicleRegCertOCRRequest,
174
167
  RecognizeTravelCardOCRResponse,
175
168
  ElectronicAirTransportDetail,
176
169
  FinancialBill,
@@ -178,10 +171,8 @@ import {
178
171
  LicensePlateOCRRequest,
179
172
  GeneralBasicOCRRequest,
180
173
  TextVehicleBack,
181
- RecognizeIndonesiaIDCardOCRResponse,
182
174
  ReconstructDocumentResponse,
183
175
  GeneralEfficientOCRRequest,
184
- RecognizePhilippinesUMIDOCRResponse,
185
176
  AdvertiseOCRRequest,
186
177
  AirTicketInfo,
187
178
  RideHailingDriverLicenseOCRResponse,
@@ -208,7 +199,6 @@ import {
208
199
  AdvertiseTextDetection,
209
200
  TextTable,
210
201
  FinanBillSliceInfo,
211
- RideHailingDriverLicenseOCRRequest,
212
202
  Encryption,
213
203
  ArithmeticOCRRequest,
214
204
  NonTaxIncomeBill,
@@ -233,7 +223,6 @@ import {
233
223
  EduPaperOCRRequest,
234
224
  FormulaOCRRequest,
235
225
  TextGeneralHandwriting,
236
- RecognizePhilippinesVoteIDOCRRequest,
237
226
  PassportOCRRequest,
238
227
  DutyPaidProofOCRRequest,
239
228
  RecognizeHealthCodeOCRResponse,
@@ -295,10 +284,8 @@ import {
295
284
  MainlandTravelPermitBackInfos,
296
285
  TableCell,
297
286
  TableOCRResponse,
298
- VehicleRegCertOCRRequest,
299
287
  DetectedWordCoordPoint,
300
288
  QuestionBlockObj,
301
- RecognizeKoreanIDCardOCRRequest,
302
289
  AdvertiseOCRResponse,
303
290
  VehicleLicenseOCRRequest,
304
291
  VatRollInvoiceInfo,
@@ -308,10 +295,8 @@ import {
308
295
  WaybillOCRRequest,
309
296
  ReconstructDocumentConfig,
310
297
  VinOCRRequest,
311
- VatInvoiceOCRRequest,
312
- RecognizePhilippinesUMIDOCRRequest,
298
+ RideHailingTransportLicenseOCRRequest,
313
299
  MLIDCardOCRResponse,
314
- RecognizePhilippinesTinIDOCRRequest,
315
300
  RecognizeTableOCRRequest,
316
301
  EstateCertOCRRequest,
317
302
  PermanentResidencePermitInfo,
@@ -320,9 +305,7 @@ import {
320
305
  VatInvoiceOCRResponse,
321
306
  QuotaInvoiceOCRRequest,
322
307
  BankCardOCRResponse,
323
- SealInfo,
324
308
  BusinessCardOCRRequest,
325
- RecognizePhilippinesDrivingLicenseOCRResponse,
326
309
  FinanBillOCRRequest,
327
310
  QuotaInvoiceOCRResponse,
328
311
  RecognizeGeneralTextImageWarnRequest,
@@ -342,13 +325,229 @@ export class Client extends AbstractClient {
342
325
  }
343
326
 
344
327
  /**
345
- * 本接口通过检测图片中的文字信息特征,快速判断图片中有无文字并返回判断结果,帮助用户过滤无文字的图片。
346
- */
347
- async TextDetect(
348
- req: TextDetectRequest,
349
- cb?: (error: string, rep: TextDetectResponse) => void
350
- ): Promise<TextDetectResponse> {
351
- return this.request("TextDetect", req, cb)
328
+ * 本接口支持图像整体文字的检测和识别。可以识别中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语,阿拉伯语20种语言,且各种语言均支持与英文混合的文字识别。
329
+
330
+ 适用于印刷文档识别、网络图片识别、广告图文字识别、街景店招牌识别、菜单识别、视频标题识别、头像文字识别等场景。
331
+
332
+ 产品优势:支持自动识别语言类型,可返回文本框坐标信息,对于倾斜文本支持自动旋转纠正。
333
+
334
+ 通用印刷体识别不同版本的差异如下:
335
+ <table style="width:715px">
336
+ <thead>
337
+ <tr>
338
+ <th style="width:150px"></th>
339
+ <th style="width:200px">【荐】通用印刷体识别</th>
340
+ <th ><a href="https://cloud.tencent.com/document/product/866/34937">【荐】通用印刷体识别(高精度版)</a></th>
341
+ <th><a href="https://cloud.tencent.com/document/product/866/37831">通用印刷体识别(精简版)</a></th>
342
+ </tr>
343
+ </thead>
344
+ <tbody>
345
+ <tr>
346
+ <td> 适用场景</td>
347
+ <td>适用于所有通用场景的印刷体识别</td>
348
+ <td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>
349
+ <td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>
350
+ </tr>
351
+ <tr>
352
+ <td>识别准确率</td>
353
+ <td>96%</td>
354
+ <td>99%</td>
355
+ <td>91%</td>
356
+ </tr>
357
+ <tr>
358
+ <td>价格</td>
359
+ <td>中</td>
360
+ <td>高</td>
361
+ <td>低</td>
362
+ </tr>
363
+ <tr>
364
+ <td>支持的语言</td>
365
+ <td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
366
+ <td>中文、英文、中英文</td>
367
+ <td>中文、英文、中英文</td>
368
+ </tr>
369
+ <tr>
370
+ <td>自动语言检测</td>
371
+ <td>支持</td>
372
+ <td>支持</td>
373
+ <td>支持</td>
374
+ </tr>
375
+ <tr>
376
+ <td>返回文本行坐标</td>
377
+ <td>支持</td>
378
+ <td>支持</td>
379
+ <td>支持</td>
380
+ </tr>
381
+ <tr>
382
+ <td>自动旋转纠正</td>
383
+ <td>支持旋转识别,返回角度信息</td>
384
+ <td>支持旋转识别,返回角度信息</td>
385
+ <td>支持旋转识别,返回角度信息</td>
386
+ </tr>
387
+ </tbody>
388
+ </table>
389
+
390
+ 默认接口请求频率限制:20次/秒。
391
+ */
392
+ async GeneralBasicOCR(
393
+ req: GeneralBasicOCRRequest,
394
+ cb?: (error: string, rep: GeneralBasicOCRResponse) => void
395
+ ): Promise<GeneralBasicOCRResponse> {
396
+ return this.request("GeneralBasicOCR", req, cb)
397
+ }
398
+
399
+ /**
400
+ * 文本图像增强是面向文档类图片提供的图像增强处理能力,包括切边增强、图像矫正、阴影去除、摩尔纹去除等;可以有效优化文档类的图片质量,提升文字的清晰度。
401
+
402
+ 默认接口请求频率限制:10次/秒。
403
+ */
404
+ async ImageEnhancement(
405
+ req: ImageEnhancementRequest,
406
+ cb?: (error: string, rep: ImageEnhancementResponse) => void
407
+ ): Promise<ImageEnhancementResponse> {
408
+ return this.request("ImageEnhancement", req, cb)
409
+ }
410
+
411
+ /**
412
+ * 本接口支持智能提取各类证照、票据、表单、合同等结构化场景的key:value字段信息,并支持提取表格信息的key:value组的结构化,灵活高效,适用于各类非标准材料的信息录入场景,点击[立即体验](https://cloud.tencent.com/product/smart-ocr)。
413
+
414
+ 默认接口请求频率限制:5次/秒。
415
+ */
416
+ async SmartStructuralOCRV2(
417
+ req: SmartStructuralOCRV2Request,
418
+ cb?: (error: string, rep: SmartStructuralOCRV2Response) => void
419
+ ): Promise<SmartStructuralOCRV2Response> {
420
+ return this.request("SmartStructuralOCRV2", req, cb)
421
+ }
422
+
423
+ /**
424
+ * 本接口支持智能化识别各类企业登记证书、许可证书、企业执照、三证合一类证书,结构化输出统一社会信用代码、公司名称、法定代表人、公司地址、注册资金、企业类型、经营范围、成立日期、有效期、开办资金、经费来源、举办单位等关键字段。
425
+
426
+ 默认接口请求频率限制:5次/秒。
427
+ */
428
+ async EnterpriseLicenseOCR(
429
+ req: EnterpriseLicenseOCRRequest,
430
+ cb?: (error: string, rep: EnterpriseLicenseOCRResponse) => void
431
+ ): Promise<EnterpriseLicenseOCRResponse> {
432
+ return this.request("EnterpriseLicenseOCR", req, cb)
433
+ }
434
+
435
+ /**
436
+ * 本接口支持中英文名片各字段的自动定位与识别,包含姓名、电话、手机号、邮箱、公司、部门、职位、网址、地址、QQ、微信、MSN等。
437
+
438
+ 默认接口请求频率限制:10次/秒。
439
+ */
440
+ async BusinessCardOCR(
441
+ req: BusinessCardOCRRequest,
442
+ cb?: (error: string, rep: BusinessCardOCRResponse) => void
443
+ ): Promise<BusinessCardOCRResponse> {
444
+ return this.request("BusinessCardOCR", req, cb)
445
+ }
446
+
447
+ /**
448
+ * 本接口支持病案首页、费用清单、结算单、医疗发票四种保险理赔单据的文本识别和结构化输出。
449
+
450
+ 默认接口请求频率限制:1次/秒。
451
+ */
452
+ async InsuranceBillOCR(
453
+ req: InsuranceBillOCRRequest,
454
+ cb?: (error: string, rep: InsuranceBillOCRResponse) => void
455
+ ): Promise<InsuranceBillOCRResponse> {
456
+ return this.request("InsuranceBillOCR", req, cb)
457
+ }
458
+
459
+ /**
460
+ * 本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限,识别准确度达到99%以上。
461
+
462
+ 另外,本接口还支持多种增值能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备9种告警功能,如下表所示。
463
+
464
+ <table style="width:650px">
465
+ <thead>
466
+ <tr>
467
+ <th width="150">增值能力</th>
468
+ <th width="500">能力项</th>
469
+ </tr>
470
+ </thead>
471
+ <tbody>
472
+ <tr>
473
+ <td rowspan="2">裁剪功能</td>
474
+ <td>身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)</td>
475
+ </tr>
476
+ <tr>
477
+ <td>人像照片裁剪(自动抠取身份证头像区域)</td>
478
+ </tr>
479
+ <tr>
480
+ <td rowspan="9">告警功能</td>
481
+ <td>身份证有效日期不合法,即有效日期不符合5年、10年、20年、长期期限
482
+
483
+ </td>
484
+ </tr>
485
+ <tr>
486
+ <td>身份证边框不完整告警</td>
487
+ </tr>
488
+ <tr>
489
+ <td>身份证复印件告警</td>
490
+ </tr>
491
+ <tr>
492
+ <td>身份证翻拍告警</td>
493
+ </tr>
494
+ <tr>
495
+ <td>身份证框内遮挡告警</td>
496
+ </tr>
497
+ <tr>
498
+ <td>临时身份证告警</td>
499
+ </tr>
500
+ <tr>
501
+ <td>身份证疑似存在PS痕迹告警</td>
502
+ </tr>
503
+ <tr>
504
+ <td>图片模糊告警(可根据图片质量分数判断)</td>
505
+ </tr>
506
+ </tbody>
507
+ </table>
508
+
509
+ 默认接口请求频率限制:20次/秒。
510
+ */
511
+ async IDCardOCR(
512
+ req: IDCardOCRRequest,
513
+ cb?: (error: string, rep: IDCardOCRResponse) => void
514
+ ): Promise<IDCardOCRResponse> {
515
+ return this.request("IDCardOCR", req, cb)
516
+ }
517
+
518
+ /**
519
+ * 本接口支持过路过桥费发票关键字段的识别,包括发票代码、发票号码、日期、金额、入口、出口、时间、发票消费类型、高速标志等。
520
+
521
+ 默认接口请求频率限制:5次/秒。
522
+ */
523
+ async TollInvoiceOCR(
524
+ req: TollInvoiceOCRRequest,
525
+ cb?: (error: string, rep: TollInvoiceOCRResponse) => void
526
+ ): Promise<TollInvoiceOCRResponse> {
527
+ return this.request("TollInvoiceOCR", req, cb)
528
+ }
529
+
530
+ /**
531
+ * 本接口支持马来西亚身份证识别,识别字段包括身份证号、姓名、性别、地址;具备身份证人像照片的裁剪功能和翻拍、复印件告警功能。
532
+ 本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
533
+ */
534
+ async MLIDCardOCR(
535
+ req: MLIDCardOCRRequest,
536
+ cb?: (error: string, rep: MLIDCardOCRResponse) => void
537
+ ): Promise<MLIDCardOCRResponse> {
538
+ return this.request("MLIDCardOCR", req, cb)
539
+ }
540
+
541
+ /**
542
+ * 本接口支持增值税发票的准确性核验,您可以通过输入增值税发票的关键字段提供所需的验证信息,接口返回真实的票面相关信息,包括发票代码、发票号码、开票日期、金额、消费类型、购方名称、购方税号、销方名称、销方税号等多个常用字段。支持多种发票类型核验,包括增值税专用发票、增值税普通发票(含电子普通发票、卷式发票、通行费发票)、全电发票、机动车销售统一发票、货物运输业增值税专用发票、二手车销售统一发票、通用机打电子发票(广东和浙江)。
543
+
544
+ 默认接口请求频率限制:20次/秒。
545
+ */
546
+ async VatInvoiceVerifyNew(
547
+ req: VatInvoiceVerifyNewRequest,
548
+ cb?: (error: string, rep: VatInvoiceVerifyNewResponse) => void
549
+ ): Promise<VatInvoiceVerifyNewResponse> {
550
+ return this.request("VatInvoiceVerifyNew", req, cb)
352
551
  }
353
552
 
354
553
  /**
@@ -446,6 +645,18 @@ export class Client extends AbstractClient {
446
645
  return this.request("RecognizeContainerOCR", req, cb)
447
646
  }
448
647
 
648
+ /**
649
+ * 本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2。点击[立即体验](https://cloud.tencent.com/act/event/ocrdemo)。
650
+
651
+ 默认接口请求频率限制:2次/秒。
652
+ */
653
+ async RecognizeTableAccurateOCR(
654
+ req: RecognizeTableAccurateOCRRequest,
655
+ cb?: (error: string, rep: RecognizeTableAccurateOCRResponse) => void
656
+ ): Promise<RecognizeTableAccurateOCRResponse> {
657
+ return this.request("RecognizeTableAccurateOCR", req, cb)
658
+ }
659
+
449
660
  /**
450
661
  * 身份证识别(安全加密版)接口实现了数据加密传输,能够有效防止个人身份证隐私信息不被窃取泄露。
451
662
 
@@ -508,8 +719,43 @@ export class Client extends AbstractClient {
508
719
  }
509
720
 
510
721
  /**
511
- * 本接口用于识别门头照文字识别结果以及对应分类标签信息
512
- 默认接口请求频率限制:1次/秒
722
+ * 本接口支持多张、多类型票据的混合检测和自动分类,返回对应票据类型。目前已支持增值税发票、增值税发票(卷票)、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票、酒店账单、客运限额发票、购物小票、完税证明共15种票据。
723
+ 默认接口请求频率限制:5次/秒。
724
+ */
725
+ async MixedInvoiceDetect(
726
+ req: MixedInvoiceDetectRequest,
727
+ cb?: (error: string, rep: MixedInvoiceDetectResponse) => void
728
+ ): Promise<MixedInvoiceDetectResponse> {
729
+ return this.request("MixedInvoiceDetect", req, cb)
730
+ }
731
+
732
+ /**
733
+ * 本接口支持国内机动车登记证书主要字段的结构化识别,包括机动车所有人、身份证明名称、号码、车辆型号、车辆识别代号、发动机号、制造厂名称等。
734
+
735
+ 默认接口请求频率限制:5次/秒。
736
+ */
737
+ async VehicleRegCertOCR(
738
+ req: VehicleRegCertOCRRequest,
739
+ cb?: (error: string, rep: VehicleRegCertOCRResponse) => void
740
+ ): Promise<VehicleRegCertOCRResponse> {
741
+ return this.request("VehicleRegCertOCR", req, cb)
742
+ }
743
+
744
+ /**
745
+ * 本接口支持识别轮船票的发票代码、发票号码、日期、姓名、票价、始发地、目的地、姓名、时间、发票消费类型、省、市、币种字段。
746
+
747
+ 默认接口请求频率限制:5次/秒。
748
+ */
749
+ async ShipInvoiceOCR(
750
+ req: ShipInvoiceOCRRequest,
751
+ cb?: (error: string, rep: ShipInvoiceOCRResponse) => void
752
+ ): Promise<ShipInvoiceOCRResponse> {
753
+ return this.request("ShipInvoiceOCR", req, cb)
754
+ }
755
+
756
+ /**
757
+ * 本接口用于识别门头照文字识别结果以及对应分类标签信息
758
+ 默认接口请求频率限制:1次/秒
513
759
  */
514
760
  async RecognizeStoreName(
515
761
  req: RecognizeStoreNameRequest,
@@ -532,133 +778,135 @@ export class Client extends AbstractClient {
532
778
  }
533
779
 
534
780
  /**
535
- * 本接口支持火车票全字段的识别,包括编号、出发站、到达站、出发时间、车次、座位号、姓名、票价、席别、身份证号、发票消费类型、序列号、加收票价、手续费、大写金额、售票站、原票价、发票类型、收据号码、是否仅供报销使用等字段的识别。
781
+ * 本接口支持对增值税发票(卷票)关键字段的识别,包括的发票代码、合计金额(小写)、合计金额(大写)、开票日期、发票号码、购买方识别号、销售方识别号、校验码、销售方名称、购买方名称、发票消费类型、省、市、是否有公司印章、单价、金额、数量、服务类型、品名、种类等。
536
782
 
537
783
  默认接口请求频率限制:5次/秒。
538
784
  */
539
- async TrainTicketOCR(
540
- req: TrainTicketOCRRequest,
541
- cb?: (error: string, rep: TrainTicketOCRResponse) => void
542
- ): Promise<TrainTicketOCRResponse> {
543
- return this.request("TrainTicketOCR", req, cb)
785
+ async VatRollInvoiceOCR(
786
+ req: VatRollInvoiceOCRRequest,
787
+ cb?: (error: string, rep: VatRollInvoiceOCRResponse) => void
788
+ ): Promise<VatRollInvoiceOCRResponse> {
789
+ return this.request("VatRollInvoiceOCR", req, cb)
544
790
  }
545
791
 
546
792
  /**
547
- * 本接口支持房产证关键字段的识别,包括房地产权利人、共有情况、登记时间、规划用途、房屋性质、房屋坐落等。
548
- 目前接口对合肥、成都、佛山三个城市的房产证版式识别较好。
793
+ * 本接口支持定额发票的发票号码、发票代码、金额(大小写)、发票消费类型、地区及是否有公司印章等关键字段的识别。
549
794
 
550
795
  默认接口请求频率限制:5次/秒。
551
796
  */
552
- async PropOwnerCertOCR(
553
- req: PropOwnerCertOCRRequest,
554
- cb?: (error: string, rep: PropOwnerCertOCRResponse) => void
555
- ): Promise<PropOwnerCertOCRResponse> {
556
- return this.request("PropOwnerCertOCR", req, cb)
797
+ async QuotaInvoiceOCR(
798
+ req: QuotaInvoiceOCRRequest,
799
+ cb?: (error: string, rep: QuotaInvoiceOCRResponse) => void
800
+ ): Promise<QuotaInvoiceOCRResponse> {
801
+ return this.request("QuotaInvoiceOCR", req, cb)
557
802
  }
558
803
 
559
804
  /**
560
- * 本接口支持对通用机打发票的发票代码、发票号码、日期、合计金额(小写)、合计金额(大写)、购买方识别号、销售方识别号、校验码、购买方名称、销售方名称、时间、种类、发票消费类型、省、市、是否有公司印章、发票名称、购买方地址、电话、销售方地址、电话、购买方开户行及账号、销售方开户行及账号、经办人取票用户、经办人支付信息、经办人商户号、经办人订单号、货物或应税劳务、服务名称、数量、单价、税率、税额、金额、单位、规格型号、合计税额、合计金额、备注、收款人、复核、开票人、密码区、行业分类等字段的识别。
805
+ * 本接口支持市面上主流版式电子运单的识别,包括收件人和寄件人的姓名、电话、地址以及运单号等字段。
561
806
 
562
- 默认接口请求频率限制:5次/秒。
807
+ 默认接口请求频率限制:10次/秒。
563
808
  */
564
- async InvoiceGeneralOCR(
565
- req: InvoiceGeneralOCRRequest,
566
- cb?: (error: string, rep: InvoiceGeneralOCRResponse) => void
567
- ): Promise<InvoiceGeneralOCRResponse> {
568
- return this.request("InvoiceGeneralOCR", req, cb)
809
+ async WaybillOCR(
810
+ req: WaybillOCRRequest,
811
+ cb?: (error: string, rep: WaybillOCRResponse) => void
812
+ ): Promise<WaybillOCRResponse> {
813
+ return this.request("WaybillOCR", req, cb)
569
814
  }
570
815
 
571
816
  /**
572
- * 服务已迁移至 [文档解析](https://cloud.tencent.com/document/product/1759/107504),请跳转查看接口文档。该接口支持将图片或PDF文件转换成Markdown格式文件,可解析包括表格、公式、图片、标题、段落、页眉、页脚等内容元素,并将内容智能转换成阅读顺序。
573
- */
574
- async ReconstructDocument(
575
- req: ReconstructDocumentRequest,
576
- cb?: (error: string, rep: ReconstructDocumentResponse) => void
577
- ): Promise<ReconstructDocumentResponse> {
578
- return this.request("ReconstructDocument", req, cb)
817
+ * 本接口支持图片内车辆识别代号(VIN)的检测和识别。
818
+ 默认接口请求频率限制:10次/秒。
819
+ */
820
+ async VinOCR(
821
+ req: VinOCRRequest,
822
+ cb?: (error: string, rep: VinOCRResponse) => void
823
+ ): Promise<VinOCRResponse> {
824
+ return this.request("VinOCR", req, cb)
579
825
  }
580
826
 
581
827
  /**
582
- * 本接口支持中国香港身份证人像面中关键字段的识别,包括中文姓名、英文姓名、姓名电码、出生日期、性别、证件符号、首次签发日期、最近领用日期、身份证号、是否是永久性居民身份证;具备人像照片裁剪等扩展功能。
828
+ * 本接口支持图片中整体文字的检测和识别,返回文字框位置与文字内容。相比通用印刷体识别接口,识别速度更快。
583
829
 
584
- 默认接口请求频率限制:5次/秒。
830
+ 默认接口请求频率限制:10次/秒。
585
831
  */
586
- async HKIDCardOCR(
587
- req: HKIDCardOCRRequest,
588
- cb?: (error: string, rep: HKIDCardOCRResponse) => void
589
- ): Promise<HKIDCardOCRResponse> {
590
- return this.request("HKIDCardOCR", req, cb)
832
+ async GeneralFastOCR(
833
+ req: GeneralFastOCRRequest,
834
+ cb?: (error: string, rep: GeneralFastOCRResponse) => void
835
+ ): Promise<GeneralFastOCRResponse> {
836
+ return this.request("GeneralFastOCR", req, cb)
591
837
  }
592
838
 
593
839
  /**
594
- * 本接口支持 单张、多张、多类型 票据的混合识别,同时支持自选需要识别的票据类型,已支持票种包括:增值税发票(专票、普票、卷票)、全电发票、非税发票、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,并支持其他类发票的识别。
840
+ * 本接口支持房产证关键字段的识别,包括房地产权利人、共有情况、登记时间、规划用途、房屋性质、房屋坐落等。
841
+ 目前接口对合肥、成都、佛山三个城市的房产证版式识别较好。
595
842
 
596
843
  默认接口请求频率限制:5次/秒。
597
844
  */
598
- async MixedInvoiceOCR(
599
- req: MixedInvoiceOCRRequest,
600
- cb?: (error: string, rep: MixedInvoiceOCRResponse) => void
601
- ): Promise<MixedInvoiceOCRResponse> {
602
- return this.request("MixedInvoiceOCR", req, cb)
845
+ async PropOwnerCertOCR(
846
+ req: PropOwnerCertOCRRequest,
847
+ cb?: (error: string, rep: PropOwnerCertOCRResponse) => void
848
+ ): Promise<PropOwnerCertOCRResponse> {
849
+ return this.request("PropOwnerCertOCR", req, cb)
603
850
  }
604
851
 
605
852
  /**
606
- * 本接口支持对卡式港澳台通行证的识别,包括签发地点、签发机关、有效期限、性别、出生日期、英文姓名、姓名、证件号等字段。
853
+ * 本接口支持智能提取各类证照、票据、表单、合同等结构化场景的key:value字段信息,并支持提取表格信息的key:value组的结构化,灵活高效,适用于各类非标准材料的信息录入场景,点击[立即体验](https://cloud.tencent.com/product/smart-ocr)。
607
854
 
608
- 默认接口请求频率限制:10次/秒。
855
+ 默认接口请求频率限制:5次/秒。
609
856
  */
610
- async PermitOCR(
611
- req: PermitOCRRequest,
612
- cb?: (error: string, rep: PermitOCRResponse) => void
613
- ): Promise<PermitOCRResponse> {
614
- return this.request("PermitOCR", req, cb)
857
+ async SmartStructuralPro(
858
+ req: SmartStructuralProRequest,
859
+ cb?: (error: string, rep: SmartStructuralProResponse) => void
860
+ ): Promise<SmartStructuralProResponse> {
861
+ return this.request("SmartStructuralPro", req, cb)
615
862
  }
616
863
 
617
864
  /**
618
- * 本接口支持识别公路汽车客票关键字段的识别,包括发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、身份证号、省、市、开票日期、乘车地点、检票口、客票类型、车型、座位号、车次等。
865
+ * 本接口支持快速精准识别营业执照上的字段,包括统一社会信用代码、公司名称、主体类型、法定代表人、注册资本、组成形式、成立日期、营业期限和经营范围等字段。
619
866
 
620
- 默认接口请求频率限制:5次/秒。
867
+ 默认接口请求频率限制:10次/秒。
621
868
  */
622
- async BusInvoiceOCR(
623
- req: BusInvoiceOCRRequest,
624
- cb?: (error: string, rep: BusInvoiceOCRResponse) => void
625
- ): Promise<BusInvoiceOCRResponse> {
626
- return this.request("BusInvoiceOCR", req, cb)
869
+ async BizLicenseOCR(
870
+ req: BizLicenseOCRRequest,
871
+ cb?: (error: string, rep: BizLicenseOCRResponse) => void
872
+ ): Promise<BizLicenseOCRResponse> {
873
+ return this.request("BizLicenseOCR", req, cb)
627
874
  }
628
875
 
629
876
  /**
630
- * 本接口支持图像英文文字的检测和识别,返回文字框位置与文字内容。支持多场景、任意版面下的英文、字母、数字和常见字符的识别,同时覆盖英文印刷体和英文手写体识别。
877
+ * 本接口支持图片内手写体文字的检测和识别,针对手写字体无规则、字迹潦草、模糊等特点进行了识别能力的增强。
631
878
 
632
879
  默认接口请求频率限制:10次/秒。
633
880
  */
634
- async EnglishOCR(
635
- req: EnglishOCRRequest,
636
- cb?: (error: string, rep: EnglishOCRResponse) => void
637
- ): Promise<EnglishOCRResponse> {
638
- return this.request("EnglishOCR", req, cb)
881
+ async GeneralHandwritingOCR(
882
+ req: GeneralHandwritingOCRRequest,
883
+ cb?: (error: string, rep: GeneralHandwritingOCRResponse) => void
884
+ ): Promise<GeneralHandwritingOCRResponse> {
885
+ return this.request("GeneralHandwritingOCR", req, cb)
639
886
  }
640
887
 
641
888
  /**
642
- * 本接口支持识别并提取各类证照、票据、表单、合同等结构化场景的字段信息。无需任何配置,灵活高效。适用于各类结构化信息录入场景。
643
-
644
- 默认接口请求频率限制:5次/秒。
645
- */
646
- async SmartStructuralOCR(
647
- req: SmartStructuralOCRRequest,
648
- cb?: (error: string, rep: SmartStructuralOCRResponse) => void
649
- ): Promise<SmartStructuralOCRResponse> {
650
- return this.request("SmartStructuralOCR", req, cb)
889
+ * 外国人永久居留身份证识别
890
+ */
891
+ async RecognizeForeignPermanentResidentIdCard(
892
+ req: RecognizeForeignPermanentResidentIdCardRequest,
893
+ cb?: (error: string, rep: RecognizeForeignPermanentResidentIdCardResponse) => void
894
+ ): Promise<RecognizeForeignPermanentResidentIdCardResponse> {
895
+ return this.request("RecognizeForeignPermanentResidentIdCard", req, cb)
651
896
  }
652
897
 
653
898
  /**
654
- * 本接口用于识别门头照分类标签信息
655
- 默认接口请求频率限制:1次/秒
899
+ * 已上线VatInvoiceVerifyNew,VatInvoiceVerify需要下线,产品在官网已发通告
900
+
901
+ 本接口支持增值税发票的准确性核验,您可以通过输入增值税发票的关键字段提供所需的验证信息,接口返回真实的票面相关信息,包括发票代码、发票号码、开票日期、金额、消费类型、购方名称、购方税号、销方名称、销方税号等多个常用字段。支持多种发票类型核验,包括增值税专用发票、增值税普通发票(含电子普通发票、卷式发票、通行费发票)、全电发票、机动车销售统一发票、货物运输业增值税专用发票、二手车销售统一发票。
902
+
903
+ 默认接口请求频率限制:20次/秒。
656
904
  */
657
- async ClassifyStoreName(
658
- req: ClassifyStoreNameRequest,
659
- cb?: (error: string, rep: ClassifyStoreNameResponse) => void
660
- ): Promise<ClassifyStoreNameResponse> {
661
- return this.request("ClassifyStoreName", req, cb)
905
+ async VatInvoiceVerify(
906
+ req: VatInvoiceVerifyRequest,
907
+ cb?: (error: string, rep: VatInvoiceVerifyResponse) => void
908
+ ): Promise<VatInvoiceVerifyResponse> {
909
+ return this.request("VatInvoiceVerify", req, cb)
662
910
  }
663
911
 
664
912
  /**
@@ -674,676 +922,67 @@ export class Client extends AbstractClient {
674
922
  }
675
923
 
676
924
  /**
677
- * 本接口支持网约车驾驶证关键字段的识别,包括姓名、证号、起始日期、截止日期、发证日期。
925
+ * 本接口支持对通用机打发票的发票代码、发票号码、日期、合计金额(小写)、合计金额(大写)、购买方识别号、销售方识别号、校验码、购买方名称、销售方名称、时间、种类、发票消费类型、省、市、是否有公司印章、发票名称、购买方地址、电话、销售方地址、电话、购买方开户行及账号、销售方开户行及账号、经办人取票用户、经办人支付信息、经办人商户号、经办人订单号、货物或应税劳务、服务名称、数量、单价、税率、税额、金额、单位、规格型号、合计税额、合计金额、备注、收款人、复核、开票人、密码区、行业分类等字段的识别。
678
926
 
679
927
  默认接口请求频率限制:5次/秒。
680
928
  */
681
- async RideHailingDriverLicenseOCR(
682
- req: RideHailingDriverLicenseOCRRequest,
683
- cb?: (error: string, rep: RideHailingDriverLicenseOCRResponse) => void
684
- ): Promise<RideHailingDriverLicenseOCRResponse> {
685
- return this.request("RideHailingDriverLicenseOCR", req, cb)
929
+ async InvoiceGeneralOCR(
930
+ req: InvoiceGeneralOCRRequest,
931
+ cb?: (error: string, rep: InvoiceGeneralOCRResponse) => void
932
+ ): Promise<InvoiceGeneralOCRResponse> {
933
+ return this.request("InvoiceGeneralOCR", req, cb)
686
934
  }
687
935
 
688
936
  /**
689
- * 本接口支持对完税证明的税号、纳税人识别号、纳税人名称、金额合计大写、金额合计小写、填发日期、税务机关、填票人等关键字段的识别。
937
+ * 本接口支持网约车运输证关键字段的识别,包括交运管许可字号、车辆所有人、车辆号牌、起始日期、截止日期、发证日期。
690
938
 
691
939
  默认接口请求频率限制:5次/秒。
692
940
  */
693
- async DutyPaidProofOCR(
694
- req: DutyPaidProofOCRRequest,
695
- cb?: (error: string, rep: DutyPaidProofOCRResponse) => void
696
- ): Promise<DutyPaidProofOCRResponse> {
697
- return this.request("DutyPaidProofOCR", req, cb)
941
+ async RideHailingTransportLicenseOCR(
942
+ req: RideHailingTransportLicenseOCRRequest,
943
+ cb?: (error: string, rep: RideHailingTransportLicenseOCRResponse) => void
944
+ ): Promise<RideHailingTransportLicenseOCRResponse> {
945
+ return this.request("RideHailingTransportLicenseOCR", req, cb)
698
946
  }
699
947
 
700
948
  /**
701
- * 智能识别并结构化港澳台居民来往内地通行证正面全部字段,包含中文姓名、英文姓名、性别、出生日期、签发机关、有效期限、证件号、签发地点、签发次数、证件类别。
949
+ * 智慧表单产品已下线,需要下线相关API
702
950
 
703
- 默认接口请求频率限制:20次/秒。
951
+ 支持查询智能表单录入任务的状态。本产品免费公测中,您可以点击demo(超链接:https://ocr.smartform.cloud.tencent.com/)试用,如需购买请与商务团队联系。
704
952
  */
705
- async MainlandPermitOCR(
706
- req: MainlandPermitOCRRequest,
707
- cb?: (error: string, rep: MainlandPermitOCRResponse) => void
708
- ): Promise<MainlandPermitOCRResponse> {
709
- return this.request("MainlandPermitOCR", req, cb)
953
+ async GetTaskState(
954
+ req: GetTaskStateRequest,
955
+ cb?: (error: string, rep: GetTaskStateResponse) => void
956
+ ): Promise<GetTaskStateResponse> {
957
+ return this.request("GetTaskState", req, cb)
710
958
  }
711
959
 
712
960
  /**
713
- * 本接口支持机票行程单关键字段的识别,包括旅客姓名、有效身份证件号码、电子客票号码、验证码、填开单位、其他税费、燃油附加费、民航发展基金、保险费、销售单位代号、始发地、目的地、航班号、时间、日期、座位等级、承运人、发票消费类型、票价、合计金额、填开日期、国内国际标签、印刷序号、客票级别/类别、客票生效日期、有效期截止日期、免费行李等字段,支持航班信息多行明细输出。
961
+ * 本接口支持网约车行程单关键字段的识别,包括行程起止日期、上车时间、起点、终点、里程、金额等字段。
714
962
 
715
- 默认接口请求频率限制:5次/秒。
963
+ 默认接口请求频率限制:20次/秒。
716
964
  */
717
- async FlightInvoiceOCR(
718
- req: FlightInvoiceOCRRequest,
719
- cb?: (error: string, rep: FlightInvoiceOCRResponse) => void
720
- ): Promise<FlightInvoiceOCRResponse> {
721
- return this.request("FlightInvoiceOCR", req, cb)
965
+ async RecognizeOnlineTaxiItineraryOCR(
966
+ req: RecognizeOnlineTaxiItineraryOCRRequest,
967
+ cb?: (error: string, rep: RecognizeOnlineTaxiItineraryOCRResponse) => void
968
+ ): Promise<RecognizeOnlineTaxiItineraryOCRResponse> {
969
+ return this.request("RecognizeOnlineTaxiItineraryOCR", req, cb)
722
970
  }
723
971
 
724
972
  /**
725
- * 本接口支持 PDF多页(最多30页)、一页中单张、多张、类型票据的混合识别,同时支持单选识别某类票据,已支持票种包括:增值税发票(专票、普票、卷票、区块链发票、通行费发票)、全电发票(专票、普票)、非税发票(通用票据、统一缴纳书)、定额发票、通用机打发票、购车发票(机动车销售发票、二手车发票)、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(机票行程单)、电子发票(铁路电子客票)的第一页识别,并支持非上述类型的其他发票的智能识别,点击[立即试用](https://cloud.tencent.com/product/ocr)。
973
+ * 本接口支持中国香港身份证人像面中关键字段的识别,包括中文姓名、英文姓名、姓名电码、出生日期、性别、证件符号、首次签发日期、最近领用日期、身份证号、是否是永久性居民身份证;具备人像照片裁剪等扩展功能。
726
974
 
727
975
  默认接口请求频率限制:5次/秒。
976
+ */
977
+ async HKIDCardOCR(
978
+ req: HKIDCardOCRRequest,
979
+ cb?: (error: string, rep: HKIDCardOCRResponse) => void
980
+ ): Promise<HKIDCardOCRResponse> {
981
+ return this.request("HKIDCardOCR", req, cb)
982
+ }
728
983
 
729
-
730
- 支持返回的细项目子票种SubType、子票种中文TypeDescription、以及对应所属大类票种Type 的说明如下列表:
731
- <table style="width:715px">
732
- <thead>
733
- <tr>
734
- <th style="width:200px">SubType 子票种英文</th>
735
- <th style="width:200px">TypeDescription子票种中文</th>
736
- <th >Type 所属大类票种</th>
737
- </tr>
738
- </thead>
739
- <tbody>
740
- <tr>
741
- <td> VatSpecialInvoice</td>
742
- <td> 增值税专用发票 </td>
743
- <td> 3 </td>
744
- </tr>
745
- <tr>
746
- <td> VatCommonInvoice</td>
747
- <td> 增值税普通发票 </td>
748
- <td> 3 </td>
749
- </tr>
750
- <tr>
751
- <td> VatElectronicCommonInvoice </td>
752
- <td> 增值税电子普通发票 </td>
753
- <td> 3 </td>
754
- </tr>
755
- <tr>
756
- <td> VatElectronicSpecialInvoice </td>
757
- <td> 增值税电子专用发票 </td>
758
- <td> 3 </td>
759
- </tr>
760
- <tr>
761
- <td> VatElectronicInvoiceBlockchain</td>
762
- <td> 区块链电子发票 </td>
763
- <td> 3 </td>
764
- </tr>
765
- <tr>
766
- <td> VatElectronicInvoiceToll</td>
767
- <td> 增值税电子普通发票(通行费)</td>
768
- <td> 3 </td>
769
- </tr>
770
- <tr>
771
- <td> VatSalesList</td>
772
- <td> 增值税销货清单</td>
773
- <td> 3 </td>
774
- </tr>
775
- <tr>
776
- <td> VatElectronicSpecialInvoiceFull</td>
777
- <td> 电子发票(专用发票)</td>
778
- <td> 16 </td>
779
- </tr>
780
- <tr>
781
- <td> VatElectronicInvoiceFull</td>
782
- <td> 电子发票(普通发票) </td>
783
- <td> 16 </td>
784
- </tr>
785
- <tr>
786
- <td> ElectronicFlightTicketFull</td>
787
- <td> 电子发票(机票行程单),该子类目前仅支持ofd发票</td>
788
- <td> 16 </td>
789
- </tr>
790
- <tr>
791
- <td> ElectronicTrainTicketFull</td>
792
- <td> 电子发票(铁路电子客票),该子类目前仅支持ofd发票</td>
793
- <td> 16 </td>
794
- </tr>
795
- <tr>
796
- <td> MotorVehicleSaleInvoice </td>
797
- <td> 机动车销售统一发票 </td>
798
- <td> 12 </td>
799
- </tr>
800
- <tr>
801
- <td> UsedCarPurchaseInvoice </td>
802
- <td> 二手车销售统一发票 </td>
803
- <td> 12 </td>
804
- </tr>
805
- <tr>
806
- <td> VatInvoiceRoll </td>
807
- <td> 增值税普通发票(卷票) </td>
808
- <td> 11 </td>
809
- </tr>
810
- <tr>
811
- <td> TaxiTicket </td>
812
- <td> 出租车发票 </td>
813
- <td> 0 </td>
814
- </tr>
815
- <tr>
816
- <td> QuotaInvoice </td>
817
- <td> 定额发票 </td>
818
- <td> 1 </td>
819
- </tr>
820
- <tr>
821
- <td> TrainTicket </td>
822
- <td> 火车票 </td>
823
- <td> 2 </td>
824
- </tr>
825
- <tr>
826
- <td> AirTransport </td>
827
- <td> 机票行程单 </td>
828
- <td> 5 </td>
829
- </tr>
830
- <tr>
831
- <td> MachinePrintedInvoice </td>
832
- <td> 通用机打发票 </td>
833
- <td> 8 </td>
834
- </tr>
835
- <tr>
836
- <td> BusInvoice </td>
837
- <td> 汽车票 </td>
838
- <td> 9 </td>
839
- </tr>
840
- <tr>
841
- <td> ShippingInvoice </td>
842
- <td> 轮船票 </td>
843
- <td> 10 </td>
844
- </tr>
845
- <tr>
846
- <td> NonTaxIncomeGeneralBill </td>
847
- <td> 非税收入通用票据 </td>
848
- <td> 15 </td>
849
- </tr>
850
- <tr>
851
- <td> NonTaxIncomeElectronicBill </td>
852
- <td> 非税收入一般缴款书(电子) </td>
853
- <td> 15 </td>
854
- </tr>
855
- <tr>
856
- <td> TollInvoice </td>
857
- <td> 过路过桥费发票 </td>
858
- <td> 13 </td>
859
- </tr>
860
- <tr>
861
- <td> MedicalOutpatientInvoice </td>
862
- <td> 医疗门诊收费票据(电子) </td>
863
- <td> 17 </td>
864
- </tr>
865
- <tr>
866
- <td> MedicalHospitalizedInvoice </td>
867
- <td> 医疗住院收费票据(电子) </td>
868
- <td> 17 </td>
869
- </tr>
870
- <tr>
871
- <td> OtherInvoice </td>
872
- <td> 其他发票 </td>
873
- <td> -1 </td>
874
- </tr>
875
- </tbody>
876
- </table>
877
- */
878
- async RecognizeGeneralInvoice(
879
- req: RecognizeGeneralInvoiceRequest,
880
- cb?: (error: string, rep: RecognizeGeneralInvoiceResponse) => void
881
- ): Promise<RecognizeGeneralInvoiceResponse> {
882
- return this.request("RecognizeGeneralInvoice", req, cb)
883
- }
884
-
885
- /**
886
- * 本接口支持病案首页、费用清单、结算单、医疗发票四种保险理赔单据的文本识别和结构化输出。
887
-
888
- 默认接口请求频率限制:1次/秒。
889
- */
890
- async InsuranceBillOCR(
891
- req: InsuranceBillOCRRequest,
892
- cb?: (error: string, rep: InsuranceBillOCRResponse) => void
893
- ): Promise<InsuranceBillOCRResponse> {
894
- return this.request("InsuranceBillOCR", req, cb)
895
- }
896
-
897
- /**
898
- * 本接口支持增值税发票的准确性核验,您可以通过输入增值税发票的关键字段提供所需的验证信息,接口返回真实的票面相关信息,包括发票代码、发票号码、开票日期、金额、消费类型、购方名称、购方税号、销方名称、销方税号等多个常用字段。支持多种发票类型核验,包括增值税专用发票、增值税普通发票(含电子普通发票、卷式发票、通行费发票)、全电发票、机动车销售统一发票、货物运输业增值税专用发票、二手车销售统一发票、通用机打电子发票(广东和浙江)。
899
-
900
- 默认接口请求频率限制:20次/秒。
901
- */
902
- async VatInvoiceVerifyNew(
903
- req: VatInvoiceVerifyNewRequest,
904
- cb?: (error: string, rep: VatInvoiceVerifyNewResponse) => void
905
- ): Promise<VatInvoiceVerifyNewResponse> {
906
- return this.request("VatInvoiceVerifyNew", req, cb)
907
- }
908
-
909
- /**
910
- * 本接口支持图片内车辆识别代号(VIN)的检测和识别。
911
- 默认接口请求频率限制:10次/秒。
912
- */
913
- async VinOCR(
914
- req: VinOCRRequest,
915
- cb?: (error: string, rep: VinOCRResponse) => void
916
- ): Promise<VinOCRResponse> {
917
- return this.request("VinOCR", req, cb)
918
- }
919
-
920
- /**
921
- * 本接口支持行驶证主页和副页所有字段的自动定位与识别。
922
-
923
- 行驶证主页:车牌号码、车辆类型、所有人、住址、使用性质、品牌型号、识别代码、发动机号、注册日期、发证日期、发证单位。
924
-
925
- 行驶证副页:号牌号码、档案编号、核定载人数、总质量、整备质量、核定载质量、外廓尺寸、准牵引总质量、备注、检验记录。
926
-
927
- 另外,本接口还支持复印件、翻拍告警功能。
928
-
929
- 默认接口请求频率限制:10次/秒。
930
- */
931
- async VehicleLicenseOCR(
932
- req: VehicleLicenseOCRRequest,
933
- cb?: (error: string, rep: VehicleLicenseOCRResponse) => void
934
- ): Promise<VehicleLicenseOCRResponse> {
935
- return this.request("VehicleLicenseOCR", req, cb)
936
- }
937
-
938
- /**
939
- * 本接口支持快速精准识别营业执照上的字段,包括统一社会信用代码、公司名称、主体类型、法定代表人、注册资本、组成形式、成立日期、营业期限和经营范围等字段。
940
-
941
- 默认接口请求频率限制:10次/秒。
942
- */
943
- async BizLicenseOCR(
944
- req: BizLicenseOCRRequest,
945
- cb?: (error: string, rep: BizLicenseOCRResponse) => void
946
- ): Promise<BizLicenseOCRResponse> {
947
- return this.request("BizLicenseOCR", req, cb)
948
- }
949
-
950
- /**
951
- * 智慧表单产品已下线,需要下线相关API
952
-
953
- 支持查询智能表单录入任务的状态。本产品免费公测中,您可以点击demo(超链接:https://ocr.smartform.cloud.tencent.com/)试用,如需购买请与商务团队联系。
954
- */
955
- async GetTaskState(
956
- req: GetTaskStateRequest,
957
- cb?: (error: string, rep: GetTaskStateResponse) => void
958
- ): Promise<GetTaskStateResponse> {
959
- return this.request("GetTaskState", req, cb)
960
- }
961
-
962
- /**
963
- * 本接口支持图像整体文字的检测和识别。可以识别中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语,阿拉伯语20种语言,且各种语言均支持与英文混合的文字识别。
964
-
965
- 适用于印刷文档识别、网络图片识别、广告图文字识别、街景店招牌识别、菜单识别、视频标题识别、头像文字识别等场景。
966
-
967
- 产品优势:支持自动识别语言类型,可返回文本框坐标信息,对于倾斜文本支持自动旋转纠正。
968
-
969
- 通用印刷体识别不同版本的差异如下:
970
- <table style="width:715px">
971
- <thead>
972
- <tr>
973
- <th style="width:150px"></th>
974
- <th style="width:200px">【荐】通用印刷体识别</th>
975
- <th ><a href="https://cloud.tencent.com/document/product/866/34937">【荐】通用印刷体识别(高精度版)</a></th>
976
- <th><a href="https://cloud.tencent.com/document/product/866/37831">通用印刷体识别(精简版)</a></th>
977
- </tr>
978
- </thead>
979
- <tbody>
980
- <tr>
981
- <td> 适用场景</td>
982
- <td>适用于所有通用场景的印刷体识别</td>
983
- <td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>
984
- <td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>
985
- </tr>
986
- <tr>
987
- <td>识别准确率</td>
988
- <td>96%</td>
989
- <td>99%</td>
990
- <td>91%</td>
991
- </tr>
992
- <tr>
993
- <td>价格</td>
994
- <td>中</td>
995
- <td>高</td>
996
- <td>低</td>
997
- </tr>
998
- <tr>
999
- <td>支持的语言</td>
1000
- <td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
1001
- <td>中文、英文、中英文</td>
1002
- <td>中文、英文、中英文</td>
1003
- </tr>
1004
- <tr>
1005
- <td>自动语言检测</td>
1006
- <td>支持</td>
1007
- <td>支持</td>
1008
- <td>支持</td>
1009
- </tr>
1010
- <tr>
1011
- <td>返回文本行坐标</td>
1012
- <td>支持</td>
1013
- <td>支持</td>
1014
- <td>支持</td>
1015
- </tr>
1016
- <tr>
1017
- <td>自动旋转纠正</td>
1018
- <td>支持旋转识别,返回角度信息</td>
1019
- <td>支持旋转识别,返回角度信息</td>
1020
- <td>支持旋转识别,返回角度信息</td>
1021
- </tr>
1022
- </tbody>
1023
- </table>
1024
-
1025
- 默认接口请求频率限制:20次/秒。
1026
- */
1027
- async GeneralBasicOCR(
1028
- req: GeneralBasicOCRRequest,
1029
- cb?: (error: string, rep: GeneralBasicOCRResponse) => void
1030
- ): Promise<GeneralBasicOCRResponse> {
1031
- return this.request("GeneralBasicOCR", req, cb)
1032
- }
1033
-
1034
- /**
1035
- * 本接口支持泰国身份证识别,识别字段包括泰文姓名、英文姓名、地址、出生日期、身份证号码、首次领用日期、签发日期等字段。
1036
- 本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
1037
-
1038
- 默认接口请求频率限制:10次/秒
1039
- */
1040
- async RecognizeThaiIDCardOCR(
1041
- req: RecognizeThaiIDCardOCRRequest,
1042
- cb?: (error: string, rep: RecognizeThaiIDCardOCRResponse) => void
1043
- ): Promise<RecognizeThaiIDCardOCRResponse> {
1044
- return this.request("RecognizeThaiIDCardOCR", req, cb)
1045
- }
1046
-
1047
- /**
1048
- * <b>此接口为表格识别的旧版本服务,不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/49525">新版表格识别</a>。</b>
1049
-
1050
- 本接口支持图片内表格文档的检测和识别,返回每个单元格的文字内容,支持将识别结果保存为 Excel 格式。
1051
-
1052
- 默认接口请求频率限制:10次/秒。
1053
- */
1054
- async TableOCR(
1055
- req: TableOCRRequest,
1056
- cb?: (error: string, rep: TableOCRResponse) => void
1057
- ): Promise<TableOCRResponse> {
1058
- return this.request("TableOCR", req, cb)
1059
- }
1060
-
1061
- /**
1062
- * 本接口支持作业算式题目的自动识别和判分,目前覆盖 K12 学力范围内的 11 种题型,包括加减乘除四则、加减乘除已知结果求运算因子、判断大小、约等于估算、带余数除法、分数四则运算、单位换算、竖式加减法、竖式乘除法、脱式计算和解方程,平均识别精度达到93%以上。
1063
-
1064
- 默认接口请求频率限制:10次/秒。
1065
- */
1066
- async ArithmeticOCR(
1067
- req: ArithmeticOCRRequest,
1068
- cb?: (error: string, rep: ArithmeticOCRResponse) => void
1069
- ): Promise<ArithmeticOCRResponse> {
1070
- return this.request("ArithmeticOCR", req, cb)
1071
- }
1072
-
1073
- /**
1074
- * 本接口支持不动产权证关键字段的识别,包括使用期限、面积、用途、权利性质、权利类型、坐落、共有情况、权利人、权利其他状况等。
1075
-
1076
- 默认接口请求频率限制:5次/秒。
1077
- */
1078
- async EstateCertOCR(
1079
- req: EstateCertOCRRequest,
1080
- cb?: (error: string, rep: EstateCertOCRResponse) => void
1081
- ): Promise<EstateCertOCRResponse> {
1082
- return this.request("EstateCertOCR", req, cb)
1083
- }
1084
-
1085
- /**
1086
- * 菲律宾UMID识别
1087
- */
1088
- async RecognizePhilippinesUMIDOCR(
1089
- req: RecognizePhilippinesUMIDOCRRequest,
1090
- cb?: (error: string, rep: RecognizePhilippinesUMIDOCRResponse) => void
1091
- ): Promise<RecognizePhilippinesUMIDOCRResponse> {
1092
- return this.request("RecognizePhilippinesUMIDOCR", req, cb)
1093
- }
1094
-
1095
- /**
1096
- * 本接口支持二代身份证、临时身份证、港澳台居住证、外国人永久居留证,字段内容识别功能,包括姓名、性别、民族、出生、出生日期、住址、公民身份号码、签发机关、有效期限、国籍、通行证号码、持证人持有号码;支持返回证件类型;支持翻拍、复印、边框不完整、遮挡、字段级反光和字段级完整性告警;支持卡片主体框裁剪和头像裁剪。
1097
-
1098
- 默认接口请求频率限制:20次/秒。
1099
- */
1100
- async RecognizeValidIDCardOCR(
1101
- req: RecognizeValidIDCardOCRRequest,
1102
- cb?: (error: string, rep: RecognizeValidIDCardOCRResponse) => void
1103
- ): Promise<RecognizeValidIDCardOCRResponse> {
1104
- return this.request("RecognizeValidIDCardOCR", req, cb)
1105
- }
1106
-
1107
- /**
1108
- * 本接口支持对中国大陆主流银行卡正反面关键字段的检测与识别,包括卡号、卡类型、卡名字、银行信息、有效期。支持竖排异形卡识别、多角度旋转图片识别。支持对复印件、翻拍件、边框遮挡的银行卡进行告警,可应用于各种银行卡信息有效性校验场景,如金融行业身份认证、第三方支付绑卡等场景。
1109
-
1110
- 默认接口请求频率限制:10次/秒。
1111
- */
1112
- async BankCardOCR(
1113
- req: BankCardOCRRequest,
1114
- cb?: (error: string, rep: BankCardOCRResponse) => void
1115
- ): Promise<BankCardOCRResponse> {
1116
- return this.request("BankCardOCR", req, cb)
1117
- }
1118
-
1119
- /**
1120
- * 已上线VatInvoiceVerifyNew,VatInvoiceVerify需要下线,产品在官网已发通告
1121
-
1122
- 本接口支持增值税发票的准确性核验,您可以通过输入增值税发票的关键字段提供所需的验证信息,接口返回真实的票面相关信息,包括发票代码、发票号码、开票日期、金额、消费类型、购方名称、购方税号、销方名称、销方税号等多个常用字段。支持多种发票类型核验,包括增值税专用发票、增值税普通发票(含电子普通发票、卷式发票、通行费发票)、全电发票、机动车销售统一发票、货物运输业增值税专用发票、二手车销售统一发票。
1123
-
1124
- 默认接口请求频率限制:20次/秒。
1125
- */
1126
- async VatInvoiceVerify(
1127
- req: VatInvoiceVerifyRequest,
1128
- cb?: (error: string, rep: VatInvoiceVerifyResponse) => void
1129
- ): Promise<VatInvoiceVerifyResponse> {
1130
- return this.request("VatInvoiceVerify", req, cb)
1131
- }
1132
-
1133
- /**
1134
- * 菲律宾驾驶证识别
1135
-
1136
- 默认接口请求频率限制:20次/秒。
1137
- */
1138
- async RecognizePhilippinesDrivingLicenseOCR(
1139
- req: RecognizePhilippinesDrivingLicenseOCRRequest,
1140
- cb?: (error: string, rep: RecognizePhilippinesDrivingLicenseOCRResponse) => void
1141
- ): Promise<RecognizePhilippinesDrivingLicenseOCRResponse> {
1142
- return this.request("RecognizePhilippinesDrivingLicenseOCR", req, cb)
1143
- }
1144
-
1145
- /**
1146
- * 本接口支持数学试题内容的识别和结构化输出,包括通用文本解析和小学/初中/高中数学公式解析能力(包括91种题型,180种符号),公式返回格式为 Latex 格式文本。
1147
-
1148
- 默认接口请求频率限制:5次/秒。
1149
- */
1150
- async EduPaperOCR(
1151
- req: EduPaperOCRRequest,
1152
- cb?: (error: string, rep: EduPaperOCRResponse) => void
1153
- ): Promise<EduPaperOCRResponse> {
1154
- return this.request("EduPaperOCR", req, cb)
1155
- }
1156
-
1157
- /**
1158
- * 本接口支持智能化识别各类企业登记证书、许可证书、企业执照、三证合一类证书,结构化输出统一社会信用代码、公司名称、法定代表人、公司地址、注册资金、企业类型、经营范围、成立日期、有效期、开办资金、经费来源、举办单位等关键字段。
1159
-
1160
- 默认接口请求频率限制:5次/秒。
1161
- */
1162
- async EnterpriseLicenseOCR(
1163
- req: EnterpriseLicenseOCRRequest,
1164
- cb?: (error: string, rep: EnterpriseLicenseOCRResponse) => void
1165
- ): Promise<EnterpriseLicenseOCRResponse> {
1166
- return this.request("EnterpriseLicenseOCR", req, cb)
1167
- }
1168
-
1169
- /**
1170
- * 本接口支持中英文名片各字段的自动定位与识别,包含姓名、电话、手机号、邮箱、公司、部门、职位、网址、地址、QQ、微信、MSN等。
1171
-
1172
- 默认接口请求频率限制:10次/秒。
1173
- */
1174
- async BusinessCardOCR(
1175
- req: BusinessCardOCRRequest,
1176
- cb?: (error: string, rep: BusinessCardOCRResponse) => void
1177
- ): Promise<BusinessCardOCRResponse> {
1178
- return this.request("BusinessCardOCR", req, cb)
1179
- }
1180
-
1181
- /**
1182
- * 本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限,识别准确度达到99%以上。
1183
-
1184
- 另外,本接口还支持多种增值能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备9种告警功能,如下表所示。
1185
-
1186
- <table style="width:650px">
1187
- <thead>
1188
- <tr>
1189
- <th width="150">增值能力</th>
1190
- <th width="500">能力项</th>
1191
- </tr>
1192
- </thead>
1193
- <tbody>
1194
- <tr>
1195
- <td rowspan="2">裁剪功能</td>
1196
- <td>身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)</td>
1197
- </tr>
1198
- <tr>
1199
- <td>人像照片裁剪(自动抠取身份证头像区域)</td>
1200
- </tr>
1201
- <tr>
1202
- <td rowspan="9">告警功能</td>
1203
- <td>身份证有效日期不合法,即有效日期不符合5年、10年、20年、长期期限
1204
-
1205
- </td>
1206
- </tr>
1207
- <tr>
1208
- <td>身份证边框不完整告警</td>
1209
- </tr>
1210
- <tr>
1211
- <td>身份证复印件告警</td>
1212
- </tr>
1213
- <tr>
1214
- <td>身份证翻拍告警</td>
1215
- </tr>
1216
- <tr>
1217
- <td>身份证框内遮挡告警</td>
1218
- </tr>
1219
- <tr>
1220
- <td>临时身份证告警</td>
1221
- </tr>
1222
- <tr>
1223
- <td>身份证疑似存在PS痕迹告警</td>
1224
- </tr>
1225
- <tr>
1226
- <td>图片模糊告警(可根据图片质量分数判断)</td>
1227
- </tr>
1228
- </tbody>
1229
- </table>
1230
-
1231
- 默认接口请求频率限制:20次/秒。
1232
- */
1233
- async IDCardOCR(
1234
- req: IDCardOCRRequest,
1235
- cb?: (error: string, rep: IDCardOCRResponse) => void
1236
- ): Promise<IDCardOCRResponse> {
1237
- return this.request("IDCardOCR", req, cb)
1238
- }
1239
-
1240
- /**
1241
- * 本接口支持多种类型证件有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能。可以应用于各种证件信息有效性校验场景,例如银行开户、用户注册等场景。
1242
- */
1243
- async RecognizeGeneralTextImageWarn(
1244
- req: RecognizeGeneralTextImageWarnRequest,
1245
- cb?: (error: string, rep: RecognizeGeneralTextImageWarnResponse) => void
1246
- ): Promise<RecognizeGeneralTextImageWarnResponse> {
1247
- return this.request("RecognizeGeneralTextImageWarn", req, cb)
1248
- }
1249
-
1250
- /**
1251
- * 本接口支持事业单位法人证书关键字段识别,包括注册号、有效期、住所、名称、法定代表人等。
1252
-
1253
- 默认接口请求频率限制:5次/秒。
1254
- */
1255
- async InstitutionOCR(
1256
- req: InstitutionOCRRequest,
1257
- cb?: (error: string, rep: InstitutionOCRResponse) => void
1258
- ): Promise<InstitutionOCRResponse> {
1259
- return this.request("InstitutionOCR", req, cb)
1260
- }
1261
-
1262
- /**
1263
- * 本接口支持智能提取各类证照、票据、表单、合同等结构化场景的key:value字段信息,并支持提取表格信息的key:value组的结构化,灵活高效,适用于各类非标准材料的信息录入场景,点击[立即体验](https://cloud.tencent.com/product/smart-ocr)。
1264
-
1265
- 默认接口请求频率限制:5次/秒。
1266
- */
1267
- async SmartStructuralOCRV2(
1268
- req: SmartStructuralOCRV2Request,
1269
- cb?: (error: string, rep: SmartStructuralOCRV2Response) => void
1270
- ): Promise<SmartStructuralOCRV2Response> {
1271
- return this.request("SmartStructuralOCRV2", req, cb)
1272
- }
1273
-
1274
- /**
1275
- * 本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2。点击[立即体验](https://cloud.tencent.com/act/event/ocrdemo)。
1276
-
1277
- 默认接口请求频率限制:2次/秒。
1278
- */
1279
- async RecognizeTableAccurateOCR(
1280
- req: RecognizeTableAccurateOCRRequest,
1281
- cb?: (error: string, rep: RecognizeTableAccurateOCRResponse) => void
1282
- ): Promise<RecognizeTableAccurateOCRResponse> {
1283
- return this.request("RecognizeTableAccurateOCR", req, cb)
1284
- }
1285
-
1286
- /**
1287
- * 本接口支持多张、多类型票据的混合检测和自动分类,返回对应票据类型。目前已支持增值税发票、增值税发票(卷票)、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票、酒店账单、客运限额发票、购物小票、完税证明共15种票据。
1288
- 默认接口请求频率限制:5次/秒。
1289
- */
1290
- async MixedInvoiceDetect(
1291
- req: MixedInvoiceDetectRequest,
1292
- cb?: (error: string, rep: MixedInvoiceDetectResponse) => void
1293
- ): Promise<MixedInvoiceDetectResponse> {
1294
- return this.request("MixedInvoiceDetect", req, cb)
1295
- }
1296
-
1297
- /**
1298
- * 本接口支持对增值税发票(卷票)关键字段的识别,包括的发票代码、合计金额(小写)、合计金额(大写)、开票日期、发票号码、购买方识别号、销售方识别号、校验码、销售方名称、购买方名称、发票消费类型、省、市、是否有公司印章、单价、金额、数量、服务类型、品名、种类等。
1299
-
1300
- 默认接口请求频率限制:5次/秒。
1301
- */
1302
- async VatRollInvoiceOCR(
1303
- req: VatRollInvoiceOCRRequest,
1304
- cb?: (error: string, rep: VatRollInvoiceOCRResponse) => void
1305
- ): Promise<VatRollInvoiceOCRResponse> {
1306
- return this.request("VatRollInvoiceOCR", req, cb)
1307
- }
1308
-
1309
- /**
1310
- * 本接口支持定额发票的发票号码、发票代码、金额(大小写)、发票消费类型、地区及是否有公司印章等关键字段的识别。
1311
-
1312
- 默认接口请求频率限制:5次/秒。
1313
- */
1314
- async QuotaInvoiceOCR(
1315
- req: QuotaInvoiceOCRRequest,
1316
- cb?: (error: string, rep: QuotaInvoiceOCRResponse) => void
1317
- ): Promise<QuotaInvoiceOCRResponse> {
1318
- return this.request("QuotaInvoiceOCR", req, cb)
1319
- }
1320
-
1321
- /**
1322
- * 本接口支持图片内手写体文字的检测和识别,针对手写字体无规则、字迹潦草、模糊等特点进行了识别能力的增强。
1323
-
1324
- 默认接口请求频率限制:10次/秒。
1325
- */
1326
- async GeneralHandwritingOCR(
1327
- req: GeneralHandwritingOCRRequest,
1328
- cb?: (error: string, rep: GeneralHandwritingOCRResponse) => void
1329
- ): Promise<GeneralHandwritingOCRResponse> {
1330
- return this.request("GeneralHandwritingOCR", req, cb)
1331
- }
1332
-
1333
- /**
1334
- * 本接口支持网约车行程单关键字段的识别,包括行程起止日期、上车时间、起点、终点、里程、金额等字段。
1335
-
1336
- 默认接口请求频率限制:20次/秒。
1337
- */
1338
- async RecognizeOnlineTaxiItineraryOCR(
1339
- req: RecognizeOnlineTaxiItineraryOCRRequest,
1340
- cb?: (error: string, rep: RecognizeOnlineTaxiItineraryOCRResponse) => void
1341
- ): Promise<RecognizeOnlineTaxiItineraryOCRResponse> {
1342
- return this.request("RecognizeOnlineTaxiItineraryOCR", req, cb)
1343
- }
1344
-
1345
- /**
1346
- * 本接口支持中英文图片/ PDF内常规表格、无线表格、多表格的检测和识别,支持日文有线表格识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。
984
+ /**
985
+ * 本接口支持中英文图片/ PDF内常规表格、无线表格、多表格的检测和识别,支持日文有线表格识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。
1347
986
 
1348
987
  默认接口请求频率限制:10次/秒。
1349
988
  */
@@ -1369,290 +1008,252 @@ export class Client extends AbstractClient {
1369
1008
  }
1370
1009
 
1371
1010
  /**
1372
- * 本接口支持市面上主流版式电子运单的识别,包括收件人和寄件人的姓名、电话、地址以及运单号等字段。
1373
-
1374
- 默认接口请求频率限制:10次/秒。
1375
- */
1376
- async WaybillOCR(
1377
- req: WaybillOCRRequest,
1378
- cb?: (error: string, rep: WaybillOCRResponse) => void
1379
- ): Promise<WaybillOCRResponse> {
1380
- return this.request("WaybillOCR", req, cb)
1381
- }
1382
-
1383
- /**
1384
- * 港澳台居住证OCR支持港澳台居住证正反面全字段内容检测识别功能,包括姓名、性别、出生日期、地址、身份证号、签发机关、有效期限、签发次数、通行证号码关键字段识别。可以应用于港澳台居住证信息识别场景,例如银行开户、用户注册等。
1011
+ * 本接口支持对完税证明的税号、纳税人识别号、纳税人名称、金额合计大写、金额合计小写、填发日期、税务机关、填票人等关键字段的识别。
1385
1012
 
1386
- 默认接口请求频率限制:20次/秒。
1013
+ 默认接口请求频率限制:5次/秒。
1387
1014
  */
1388
- async HmtResidentPermitOCR(
1389
- req: HmtResidentPermitOCRRequest,
1390
- cb?: (error: string, rep: HmtResidentPermitOCRResponse) => void
1391
- ): Promise<HmtResidentPermitOCRResponse> {
1392
- return this.request("HmtResidentPermitOCR", req, cb)
1015
+ async DutyPaidProofOCR(
1016
+ req: DutyPaidProofOCRRequest,
1017
+ cb?: (error: string, rep: DutyPaidProofOCRResponse) => void
1018
+ ): Promise<DutyPaidProofOCRResponse> {
1019
+ return this.request("DutyPaidProofOCR", req, cb)
1393
1020
  }
1394
1021
 
1395
1022
  /**
1396
- * 本接口支持过路过桥费发票关键字段的识别,包括发票代码、发票号码、日期、金额、入口、出口、时间、发票消费类型、高速标志等。
1023
+ * 本接口支持机票行程单关键字段的识别,包括旅客姓名、有效身份证件号码、电子客票号码、验证码、填开单位、其他税费、燃油附加费、民航发展基金、保险费、销售单位代号、始发地、目的地、航班号、时间、日期、座位等级、承运人、发票消费类型、票价、合计金额、填开日期、国内国际标签、印刷序号、客票级别/类别、客票生效日期、有效期截止日期、免费行李等字段,支持航班信息多行明细输出。
1397
1024
 
1398
1025
  默认接口请求频率限制:5次/秒。
1399
1026
  */
1400
- async TollInvoiceOCR(
1401
- req: TollInvoiceOCRRequest,
1402
- cb?: (error: string, rep: TollInvoiceOCRResponse) => void
1403
- ): Promise<TollInvoiceOCRResponse> {
1404
- return this.request("TollInvoiceOCR", req, cb)
1027
+ async FlightInvoiceOCR(
1028
+ req: FlightInvoiceOCRRequest,
1029
+ cb?: (error: string, rep: FlightInvoiceOCRResponse) => void
1030
+ ): Promise<FlightInvoiceOCRResponse> {
1031
+ return this.request("FlightInvoiceOCR", req, cb)
1405
1032
  }
1406
1033
 
1407
1034
  /**
1408
- * 支持身份证、护照、名片、银行卡、行驶证、驾驶证、港澳台通行证、户口本、港澳台来往内地通行证、港澳台居住证、不动产证、营业执照的智能分类。
1035
+ * 本接口支持对卡式港澳台通行证的识别,包括签发地点、签发机关、有效期限、性别、出生日期、英文姓名、姓名、证件号等字段。
1409
1036
 
1410
- 默认接口请求频率限制:20次/秒。
1037
+ 默认接口请求频率限制:10次/秒。
1411
1038
  */
1412
- async ClassifyDetectOCR(
1413
- req: ClassifyDetectOCRRequest,
1414
- cb?: (error: string, rep: ClassifyDetectOCRResponse) => void
1415
- ): Promise<ClassifyDetectOCRResponse> {
1416
- return this.request("ClassifyDetectOCR", req, cb)
1039
+ async PermitOCR(
1040
+ req: PermitOCRRequest,
1041
+ cb?: (error: string, rep: PermitOCRResponse) => void
1042
+ ): Promise<PermitOCRResponse> {
1043
+ return this.request("PermitOCR", req, cb)
1417
1044
  }
1418
1045
 
1419
1046
  /**
1420
- * 本接口支持各类印章主体内容、印章其他内容及形状识别,支持单图多印章识别,包括发票章、财务章等,适用于公文票据等场景。
1047
+ * 本接口支持组织机构代码证关键字段的识别,包括代码、有效期、地址、机构名称等。
1421
1048
 
1422
1049
  默认接口请求频率限制:5次/秒。
1423
1050
  */
1424
- async SealOCR(
1425
- req: SealOCRRequest,
1426
- cb?: (error: string, rep: SealOCRResponse) => void
1427
- ): Promise<SealOCRResponse> {
1428
- return this.request("SealOCR", req, cb)
1051
+ async OrgCodeCertOCR(
1052
+ req: OrgCodeCertOCRRequest,
1053
+ cb?: (error: string, rep: OrgCodeCertOCRResponse) => void
1054
+ ): Promise<OrgCodeCertOCRResponse> {
1055
+ return this.request("OrgCodeCertOCR", req, cb)
1429
1056
  }
1430
1057
 
1431
1058
  /**
1432
- * 本接口支持菲律宾VoteID识别,识别字段包括姓名、姓氏、出生日期、婚姻状况、国籍、地址、地区、菲律宾VoteID的VIN等。
1433
-
1434
- 默认接口请求频率限制:20次/秒。
1435
- */
1436
- async RecognizePhilippinesVoteIDOCR(
1437
- req: RecognizePhilippinesVoteIDOCRRequest,
1438
- cb?: (error: string, rep: RecognizePhilippinesVoteIDOCRResponse) => void
1439
- ): Promise<RecognizePhilippinesVoteIDOCRResponse> {
1440
- return this.request("RecognizePhilippinesVoteIDOCR", req, cb)
1059
+ * 本接口通过检测图片中的文字信息特征,快速判断图片中有无文字并返回判断结果,帮助用户过滤无文字的图片。
1060
+ */
1061
+ async TextDetect(
1062
+ req: TextDetectRequest,
1063
+ cb?: (error: string, rep: TextDetectResponse) => void
1064
+ ): Promise<TextDetectResponse> {
1065
+ return this.request("TextDetect", req, cb)
1441
1066
  }
1442
1067
 
1443
1068
  /**
1444
- * 本接口支持银行回单全字段的识别,包括付款开户行、收款开户行、付款账号、收款账号、回单类型、回单编号、币种、流水号、凭证号码、交易机构、交易金额、手续费、日期等字段信息。
1069
+ * 本接口支持常见银行票据的自动分类和识别。切片识别包括金融行业常见票据的重要切片字段识别,包括金额、账号、日期、凭证号码等。(金融票据切片:金融票据中待识别字段及其周围局部区域的裁剪图像。)
1445
1070
 
1446
- 默认接口请求频率限制:10次/秒。
1071
+ 默认接口请求频率限制:5次/秒。
1447
1072
  */
1448
- async BankSlipOCR(
1449
- req: BankSlipOCRRequest,
1450
- cb?: (error: string, rep: BankSlipOCRResponse) => void
1451
- ): Promise<BankSlipOCRResponse> {
1452
- return this.request("BankSlipOCR", req, cb)
1073
+ async FinanBillSliceOCR(
1074
+ req: FinanBillSliceOCRRequest,
1075
+ cb?: (error: string, rep: FinanBillSliceOCRResponse) => void
1076
+ ): Promise<FinanBillSliceOCRResponse> {
1077
+ return this.request("FinanBillSliceOCR", req, cb)
1453
1078
  }
1454
1079
 
1455
1080
  /**
1456
- * 本接口支持国内机动车登记证书主要字段的结构化识别,包括机动车所有人、身份证明名称、号码、车辆型号、车辆识别代号、发动机号、制造厂名称等。
1081
+ * 本接口支持识别公路汽车客票关键字段的识别,包括发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、身份证号、省、市、开票日期、乘车地点、检票口、客票类型、车型、座位号、车次等。
1457
1082
 
1458
1083
  默认接口请求频率限制:5次/秒。
1459
1084
  */
1460
- async VehicleRegCertOCR(
1461
- req: VehicleRegCertOCRRequest,
1462
- cb?: (error: string, rep: VehicleRegCertOCRResponse) => void
1463
- ): Promise<VehicleRegCertOCRResponse> {
1464
- return this.request("VehicleRegCertOCR", req, cb)
1085
+ async BusInvoiceOCR(
1086
+ req: BusInvoiceOCRRequest,
1087
+ cb?: (error: string, rep: BusInvoiceOCRResponse) => void
1088
+ ): Promise<BusInvoiceOCRResponse> {
1089
+ return this.request("BusInvoiceOCR", req, cb)
1465
1090
  }
1466
1091
 
1467
1092
  /**
1468
- * 本接口支持通信大数据行程卡识别,包括行程卡颜色、更新时间、途经地、存在中高风险地区的城市、电话号码,五个字段的识别结果输出。
1093
+ * 医疗发票识别目前支持全国统一门诊发票、全国统一住院发票、以及部分地方的门诊和住院发票的识别。
1469
1094
 
1470
- 默认接口请求频率限制:20次/秒。
1095
+ 默认接口请求频率限制:5次/秒。
1471
1096
  */
1472
- async RecognizeTravelCardOCR(
1473
- req: RecognizeTravelCardOCRRequest,
1474
- cb?: (error: string, rep: RecognizeTravelCardOCRResponse) => void
1475
- ): Promise<RecognizeTravelCardOCRResponse> {
1476
- return this.request("RecognizeTravelCardOCR", req, cb)
1477
- }
1478
-
1479
- /**
1480
- * 韩国身份证识别
1481
- */
1482
- async RecognizeKoreanIDCardOCR(
1483
- req: RecognizeKoreanIDCardOCRRequest,
1484
- cb?: (error: string, rep: RecognizeKoreanIDCardOCRResponse) => void
1485
- ): Promise<RecognizeKoreanIDCardOCRResponse> {
1486
- return this.request("RecognizeKoreanIDCardOCR", req, cb)
1487
- }
1488
-
1489
- /**
1490
- * 本接口支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(铁路电子客票)、电子发票(航空运输电子客票行程单)识别,返回发票代码、发票号码、开票日期、验证码、机器编号、密码区,购买方和销售方信息,包括名称、纳税人识别号、地址电话、开户行及账号,以及价税合计、开票人、收款人、复核人、税额、不含税金额等字段信息。
1491
- */
1492
- async VerifyOfdVatInvoiceOCR(
1493
- req: VerifyOfdVatInvoiceOCRRequest,
1494
- cb?: (error: string, rep: VerifyOfdVatInvoiceOCRResponse) => void
1495
- ): Promise<VerifyOfdVatInvoiceOCRResponse> {
1496
- return this.request("VerifyOfdVatInvoiceOCR", req, cb)
1097
+ async RecognizeMedicalInvoiceOCR(
1098
+ req: RecognizeMedicalInvoiceOCRRequest,
1099
+ cb?: (error: string, rep: RecognizeMedicalInvoiceOCRResponse) => void
1100
+ ): Promise<RecognizeMedicalInvoiceOCRResponse> {
1101
+ return this.request("RecognizeMedicalInvoiceOCR", req, cb)
1497
1102
  }
1498
1103
 
1499
1104
  /**
1500
- * 本接口支持驾驶证主页和副页所有字段的自动定位与识别,重点字段的识别准确度达到99%以上。
1501
-
1502
- 驾驶证主页:包括证号、姓名、性别、国籍、住址、出生日期、初次领证日期、准驾车型、有效期限、发证单位
1503
-
1504
- 驾驶证副页:包括证号、姓名、档案编号、记录。
1505
-
1506
- 另外,本接口还支持复印件、翻拍告警功能。同时支持识别交管12123 APP发放的电子驾驶证正页。
1507
-
1508
- 电子驾驶证正页:包括证号、姓名、性别、国籍、出生日期、初次领证日期、准驾车型、有效期开始时间、有效期截止时间、档案编号、状态、累积记分。
1105
+ * 本接口支持增值税专用发票、增值税普通发票、增值税电子专票、增值税电子普票、电子发票(普通发票)、电子发票(增值税专用发票)全字段的内容检测和识别,包括发票代码、发票号码、打印发票代码、打印发票号码、开票日期、合计金额、校验码、税率、合计税额、价税合计、购买方识别号、复核、销售方识别号、开票人、密码区1、密码区2、密码区3、密码区4、发票名称、购买方名称、销售方名称、服务名称、备注、规格型号、数量、单价、金额、税额、收款人等字段,点击[立即试用](https://cloud.tencent.com/product/ocr)。
1509
1106
 
1510
1107
  默认接口请求频率限制:10次/秒。
1511
1108
  */
1512
- async DriverLicenseOCR(
1513
- req: DriverLicenseOCRRequest,
1514
- cb?: (error: string, rep: DriverLicenseOCRResponse) => void
1515
- ): Promise<DriverLicenseOCRResponse> {
1516
- return this.request("DriverLicenseOCR", req, cb)
1109
+ async VatInvoiceOCR(
1110
+ req: VatInvoiceOCRRequest,
1111
+ cb?: (error: string, rep: VatInvoiceOCRResponse) => void
1112
+ ): Promise<VatInvoiceOCRResponse> {
1113
+ return this.request("VatInvoiceOCR", req, cb)
1517
1114
  }
1518
1115
 
1519
1116
  /**
1520
- * 韩国驾驶证识别
1521
- */
1522
- async RecognizeKoreanDrivingLicenseOCR(
1523
- req: RecognizeKoreanDrivingLicenseOCRRequest,
1524
- cb?: (error: string, rep: RecognizeKoreanDrivingLicenseOCRResponse) => void
1525
- ): Promise<RecognizeKoreanDrivingLicenseOCRResponse> {
1526
- return this.request("RecognizeKoreanDrivingLicenseOCR", req, cb)
1527
- }
1117
+ * <b>此接口为表格识别的旧版本服务,不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/49525">新版表格识别</a>。</b>
1528
1118
 
1529
- /**
1530
- * 本接口支持常见银行票据的自动分类和识别。整单识别包括支票(含现金支票、普通支票、转账支票),承兑汇票(含银行承兑汇票、商业承兑汇票)以及进账单等,适用于中国人民银行印发的 2010 版银行票据凭证版式(银发[2010]299 号)。
1119
+ 本接口支持图片内表格文档的检测和识别,返回每个单元格的文字内容,支持将识别结果保存为 Excel 格式。
1531
1120
 
1532
- 默认接口请求频率限制:5次/秒。
1121
+ 默认接口请求频率限制:10次/秒。
1533
1122
  */
1534
- async FinanBillOCR(
1535
- req: FinanBillOCRRequest,
1536
- cb?: (error: string, rep: FinanBillOCRResponse) => void
1537
- ): Promise<FinanBillOCRResponse> {
1538
- return this.request("FinanBillOCR", req, cb)
1123
+ async TableOCR(
1124
+ req: TableOCRRequest,
1125
+ cb?: (error: string, rep: TableOCRResponse) => void
1126
+ ): Promise<TableOCRResponse> {
1127
+ return this.request("TableOCR", req, cb)
1539
1128
  }
1540
1129
 
1541
1130
  /**
1542
- * 本接口支持智能提取各类证照、票据、表单、合同等结构化场景的key:value字段信息,并支持提取表格信息的key:value组的结构化,灵活高效,适用于各类非标准材料的信息录入场景,点击[立即体验](https://cloud.tencent.com/product/smart-ocr)。
1131
+ * 本接口支持网约车驾驶证关键字段的识别,包括姓名、证号、起始日期、截止日期、发证日期。
1543
1132
 
1544
1133
  默认接口请求频率限制:5次/秒。
1545
1134
  */
1546
- async SmartStructuralPro(
1547
- req: SmartStructuralProRequest,
1548
- cb?: (error: string, rep: SmartStructuralProResponse) => void
1549
- ): Promise<SmartStructuralProResponse> {
1550
- return this.request("SmartStructuralPro", req, cb)
1135
+ async RideHailingDriverLicenseOCR(
1136
+ req: RideHailingDriverLicenseOCRRequest,
1137
+ cb?: (error: string, rep: RideHailingDriverLicenseOCRResponse) => void
1138
+ ): Promise<RideHailingDriverLicenseOCRResponse> {
1139
+ return this.request("RideHailingDriverLicenseOCR", req, cb)
1551
1140
  }
1552
1141
 
1553
1142
  /**
1554
- * 文本图像增强是面向文档类图片提供的图像增强处理能力,包括切边增强、图像矫正、阴影去除、摩尔纹去除等;可以有效优化文档类的图片质量,提升文字的清晰度。
1143
+ * 港澳台居住证OCR支持港澳台居住证正反面全字段内容检测识别功能,包括姓名、性别、出生日期、地址、身份证号、签发机关、有效期限、签发次数、通行证号码关键字段识别。可以应用于港澳台居住证信息识别场景,例如银行开户、用户注册等。
1555
1144
 
1556
- 默认接口请求频率限制:10次/秒。
1145
+ 默认接口请求频率限制:20次/秒。
1557
1146
  */
1558
- async ImageEnhancement(
1559
- req: ImageEnhancementRequest,
1560
- cb?: (error: string, rep: ImageEnhancementResponse) => void
1561
- ): Promise<ImageEnhancementResponse> {
1562
- return this.request("ImageEnhancement", req, cb)
1147
+ async HmtResidentPermitOCR(
1148
+ req: HmtResidentPermitOCRRequest,
1149
+ cb?: (error: string, rep: HmtResidentPermitOCRResponse) => void
1150
+ ): Promise<HmtResidentPermitOCRResponse> {
1151
+ return this.request("HmtResidentPermitOCR", req, cb)
1563
1152
  }
1564
1153
 
1565
1154
  /**
1566
- * 本接口支持马来西亚身份证识别,识别字段包括身份证号、姓名、性别、地址;具备身份证人像照片的裁剪功能和翻拍、复印件告警功能。
1567
- 本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
1568
- */
1569
- async MLIDCardOCR(
1570
- req: MLIDCardOCRRequest,
1571
- cb?: (error: string, rep: MLIDCardOCRResponse) => void
1572
- ): Promise<MLIDCardOCRResponse> {
1573
- return this.request("MLIDCardOCR", req, cb)
1155
+ * 本接口支持多种类型证件有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能。可以应用于各种证件信息有效性校验场景,例如银行开户、用户注册等场景。
1156
+ */
1157
+ async RecognizeGeneralTextImageWarn(
1158
+ req: RecognizeGeneralTextImageWarnRequest,
1159
+ cb?: (error: string, rep: RecognizeGeneralTextImageWarnResponse) => void
1160
+ ): Promise<RecognizeGeneralTextImageWarnResponse> {
1161
+ return this.request("RecognizeGeneralTextImageWarn", req, cb)
1574
1162
  }
1575
1163
 
1576
1164
  /**
1577
- * 医疗发票识别目前支持全国统一门诊发票、全国统一住院发票、以及部分地方的门诊和住院发票的识别。
1165
+ * 本接口支持识别并提取各类证照、票据、表单、合同等结构化场景的字段信息。无需任何配置,灵活高效。适用于各类结构化信息录入场景。
1578
1166
 
1579
1167
  默认接口请求频率限制:5次/秒。
1580
1168
  */
1581
- async RecognizeMedicalInvoiceOCR(
1582
- req: RecognizeMedicalInvoiceOCRRequest,
1583
- cb?: (error: string, rep: RecognizeMedicalInvoiceOCRResponse) => void
1584
- ): Promise<RecognizeMedicalInvoiceOCRResponse> {
1585
- return this.request("RecognizeMedicalInvoiceOCR", req, cb)
1169
+ async SmartStructuralOCR(
1170
+ req: SmartStructuralOCRRequest,
1171
+ cb?: (error: string, rep: SmartStructuralOCRResponse) => void
1172
+ ): Promise<SmartStructuralOCRResponse> {
1173
+ return this.request("SmartStructuralOCR", req, cb)
1586
1174
  }
1587
1175
 
1588
1176
  /**
1589
- * 本接口支持图片中整体文字的检测和识别,返回文字框位置与文字内容。相比通用印刷体识别接口,识别速度更快。
1177
+ * 本接口支持作业算式题目的自动识别和判分,目前覆盖 K12 学力范围内的 11 种题型,包括加减乘除四则、加减乘除已知结果求运算因子、判断大小、约等于估算、带余数除法、分数四则运算、单位换算、竖式加减法、竖式乘除法、脱式计算和解方程,平均识别精度达到93%以上。
1590
1178
 
1591
1179
  默认接口请求频率限制:10次/秒。
1592
1180
  */
1593
- async GeneralFastOCR(
1594
- req: GeneralFastOCRRequest,
1595
- cb?: (error: string, rep: GeneralFastOCRResponse) => void
1596
- ): Promise<GeneralFastOCRResponse> {
1597
- return this.request("GeneralFastOCR", req, cb)
1181
+ async ArithmeticOCR(
1182
+ req: ArithmeticOCRRequest,
1183
+ cb?: (error: string, rep: ArithmeticOCRResponse) => void
1184
+ ): Promise<ArithmeticOCRResponse> {
1185
+ return this.request("ArithmeticOCR", req, cb)
1598
1186
  }
1599
1187
 
1600
1188
  /**
1601
- * 本接口支持增值税专用发票、增值税普通发票、增值税电子专票、增值税电子普票、电子发票(普通发票)、电子发票(增值税专用发票)全字段的内容检测和识别,包括发票代码、发票号码、打印发票代码、打印发票号码、开票日期、合计金额、校验码、税率、合计税额、价税合计、购买方识别号、复核、销售方识别号、开票人、密码区1、密码区2、密码区3、密码区4、发票名称、购买方名称、销售方名称、服务名称、备注、规格型号、数量、单价、金额、税额、收款人等字段,点击[立即试用](https://cloud.tencent.com/product/ocr)。
1189
+ * 本接口支持对中国大陆机动车车牌的自动定位和识别,返回地域编号和车牌号码与车牌颜色信息。
1602
1190
 
1603
1191
  默认接口请求频率限制:10次/秒。
1604
1192
  */
1605
- async VatInvoiceOCR(
1606
- req: VatInvoiceOCRRequest,
1607
- cb?: (error: string, rep: VatInvoiceOCRResponse) => void
1608
- ): Promise<VatInvoiceOCRResponse> {
1609
- return this.request("VatInvoiceOCR", req, cb)
1193
+ async LicensePlateOCR(
1194
+ req: LicensePlateOCRRequest,
1195
+ cb?: (error: string, rep: LicensePlateOCRResponse) => void
1196
+ ): Promise<LicensePlateOCRResponse> {
1197
+ return this.request("LicensePlateOCR", req, cb)
1610
1198
  }
1611
1199
 
1612
1200
  /**
1613
- * 外国人永久居留身份证识别
1614
- */
1615
- async RecognizeForeignPermanentResidentIdCard(
1616
- req: RecognizeForeignPermanentResidentIdCardRequest,
1617
- cb?: (error: string, rep: RecognizeForeignPermanentResidentIdCardResponse) => void
1618
- ): Promise<RecognizeForeignPermanentResidentIdCardResponse> {
1619
- return this.request("RecognizeForeignPermanentResidentIdCard", req, cb)
1201
+ * 本接口支持不动产权证关键字段的识别,包括使用期限、面积、用途、权利性质、权利类型、坐落、共有情况、权利人、权利其他状况等。
1202
+
1203
+ 默认接口请求频率限制:5次/秒。
1204
+ */
1205
+ async EstateCertOCR(
1206
+ req: EstateCertOCRRequest,
1207
+ cb?: (error: string, rep: EstateCertOCRResponse) => void
1208
+ ): Promise<EstateCertOCRResponse> {
1209
+ return this.request("EstateCertOCR", req, cb)
1620
1210
  }
1621
1211
 
1622
1212
  /**
1623
- * 本接口支持组织机构代码证关键字段的识别,包括代码、有效期、地址、机构名称等。
1213
+ * 支持身份证、护照、名片、银行卡、行驶证、驾驶证、港澳台通行证、户口本、港澳台来往内地通行证、港澳台居住证、不动产证、营业执照的智能分类。
1624
1214
 
1625
- 默认接口请求频率限制:5次/秒。
1215
+ 默认接口请求频率限制:20次/秒。
1626
1216
  */
1627
- async OrgCodeCertOCR(
1628
- req: OrgCodeCertOCRRequest,
1629
- cb?: (error: string, rep: OrgCodeCertOCRResponse) => void
1630
- ): Promise<OrgCodeCertOCRResponse> {
1631
- return this.request("OrgCodeCertOCR", req, cb)
1217
+ async ClassifyDetectOCR(
1218
+ req: ClassifyDetectOCRRequest,
1219
+ cb?: (error: string, rep: ClassifyDetectOCRResponse) => void
1220
+ ): Promise<ClassifyDetectOCRResponse> {
1221
+ return this.request("ClassifyDetectOCR", req, cb)
1632
1222
  }
1633
1223
 
1634
1224
  /**
1635
- * 本接口支持常见银行票据的自动分类和识别。切片识别包括金融行业常见票据的重要切片字段识别,包括金额、账号、日期、凭证号码等。(金融票据切片:金融票据中待识别字段及其周围局部区域的裁剪图像。)
1225
+ * 本接口支持各类印章主体内容、印章其他内容及形状识别,支持单图多印章识别,包括发票章、财务章等,适用于公文票据等场景。
1636
1226
 
1637
1227
  默认接口请求频率限制:5次/秒。
1638
1228
  */
1639
- async FinanBillSliceOCR(
1640
- req: FinanBillSliceOCRRequest,
1641
- cb?: (error: string, rep: FinanBillSliceOCRResponse) => void
1642
- ): Promise<FinanBillSliceOCRResponse> {
1643
- return this.request("FinanBillSliceOCR", req, cb)
1229
+ async SealOCR(
1230
+ req: SealOCRRequest,
1231
+ cb?: (error: string, rep: SealOCRResponse) => void
1232
+ ): Promise<SealOCRResponse> {
1233
+ return this.request("SealOCR", req, cb)
1644
1234
  }
1645
1235
 
1646
1236
  /**
1647
- * 本接口支持对中国大陆机动车车牌的自动定位和识别,返回地域编号和车牌号码与车牌颜色信息。
1237
+ * 本接口用于识别门头照分类标签信息
1238
+ 默认接口请求频率限制:1次/秒
1239
+ */
1240
+ async ClassifyStoreName(
1241
+ req: ClassifyStoreNameRequest,
1242
+ cb?: (error: string, rep: ClassifyStoreNameResponse) => void
1243
+ ): Promise<ClassifyStoreNameResponse> {
1244
+ return this.request("ClassifyStoreName", req, cb)
1245
+ }
1246
+
1247
+ /**
1248
+ * 本接口支持银行回单全字段的识别,包括付款开户行、收款开户行、付款账号、收款账号、回单类型、回单编号、币种、流水号、凭证号码、交易机构、交易金额、手续费、日期等字段信息。
1648
1249
 
1649
1250
  默认接口请求频率限制:10次/秒。
1650
1251
  */
1651
- async LicensePlateOCR(
1652
- req: LicensePlateOCRRequest,
1653
- cb?: (error: string, rep: LicensePlateOCRResponse) => void
1654
- ): Promise<LicensePlateOCRResponse> {
1655
- return this.request("LicensePlateOCR", req, cb)
1252
+ async BankSlipOCR(
1253
+ req: BankSlipOCRRequest,
1254
+ cb?: (error: string, rep: BankSlipOCRResponse) => void
1255
+ ): Promise<BankSlipOCRResponse> {
1256
+ return this.request("BankSlipOCR", req, cb)
1656
1257
  }
1657
1258
 
1658
1259
  /**
@@ -1741,6 +1342,18 @@ export class Client extends AbstractClient {
1741
1342
  return this.request("AdvertiseOCR", req, cb)
1742
1343
  }
1743
1344
 
1345
+ /**
1346
+ * 本接口支持火车票全字段的识别,包括编号、出发站、到达站、出发时间、车次、座位号、姓名、票价、席别、身份证号、发票消费类型、序列号、加收票价、手续费、大写金额、售票站、原票价、发票类型、收据号码、是否仅供报销使用等字段的识别。
1347
+
1348
+ 默认接口请求频率限制:5次/秒。
1349
+ */
1350
+ async TrainTicketOCR(
1351
+ req: TrainTicketOCRRequest,
1352
+ cb?: (error: string, rep: TrainTicketOCRResponse) => void
1353
+ ): Promise<TrainTicketOCRResponse> {
1354
+ return this.request("TrainTicketOCR", req, cb)
1355
+ }
1356
+
1744
1357
  /**
1745
1358
  * 本接口支持居民户口簿户主页及成员页关键字段的识别,包括姓名、户别、地址、籍贯、身份证号码等。
1746
1359
 
@@ -1753,6 +1366,66 @@ export class Client extends AbstractClient {
1753
1366
  return this.request("ResidenceBookletOCR", req, cb)
1754
1367
  }
1755
1368
 
1369
+ /**
1370
+ * 本接口支持通信大数据行程卡识别,包括行程卡颜色、更新时间、途经地、存在中高风险地区的城市、电话号码,五个字段的识别结果输出。
1371
+
1372
+ 默认接口请求频率限制:20次/秒。
1373
+ */
1374
+ async RecognizeTravelCardOCR(
1375
+ req: RecognizeTravelCardOCRRequest,
1376
+ cb?: (error: string, rep: RecognizeTravelCardOCRResponse) => void
1377
+ ): Promise<RecognizeTravelCardOCRResponse> {
1378
+ return this.request("RecognizeTravelCardOCR", req, cb)
1379
+ }
1380
+
1381
+ /**
1382
+ * 本接口支持事业单位法人证书关键字段识别,包括注册号、有效期、住所、名称、法定代表人等。
1383
+
1384
+ 默认接口请求频率限制:5次/秒。
1385
+ */
1386
+ async InstitutionOCR(
1387
+ req: InstitutionOCRRequest,
1388
+ cb?: (error: string, rep: InstitutionOCRResponse) => void
1389
+ ): Promise<InstitutionOCRResponse> {
1390
+ return this.request("InstitutionOCR", req, cb)
1391
+ }
1392
+
1393
+ /**
1394
+ * 本接口支持图像英文文字的检测和识别,返回文字框位置与文字内容。支持多场景、任意版面下的英文、字母、数字和常见字符的识别,同时覆盖英文印刷体和英文手写体识别。
1395
+
1396
+ 默认接口请求频率限制:10次/秒。
1397
+ */
1398
+ async EnglishOCR(
1399
+ req: EnglishOCRRequest,
1400
+ cb?: (error: string, rep: EnglishOCRResponse) => void
1401
+ ): Promise<EnglishOCRResponse> {
1402
+ return this.request("EnglishOCR", req, cb)
1403
+ }
1404
+
1405
+ /**
1406
+ * 本接口支持二代身份证、临时身份证、港澳台居住证、外国人永久居留证,字段内容识别功能,包括姓名、性别、民族、出生、出生日期、住址、公民身份号码、签发机关、有效期限、国籍、通行证号码、持证人持有号码;支持返回证件类型;支持翻拍、复印、边框不完整、遮挡、字段级反光和字段级完整性告警;支持卡片主体框裁剪和头像裁剪。
1407
+
1408
+ 默认接口请求频率限制:20次/秒。
1409
+ */
1410
+ async RecognizeValidIDCardOCR(
1411
+ req: RecognizeValidIDCardOCRRequest,
1412
+ cb?: (error: string, rep: RecognizeValidIDCardOCRResponse) => void
1413
+ ): Promise<RecognizeValidIDCardOCRResponse> {
1414
+ return this.request("RecognizeValidIDCardOCR", req, cb)
1415
+ }
1416
+
1417
+ /**
1418
+ * 本接口支持对中国大陆主流银行卡正反面关键字段的检测与识别,包括卡号、卡类型、卡名字、银行信息、有效期。支持竖排异形卡识别、多角度旋转图片识别。支持对复印件、翻拍件、边框遮挡的银行卡进行告警,可应用于各种银行卡信息有效性校验场景,如金融行业身份认证、第三方支付绑卡等场景。
1419
+
1420
+ 默认接口请求频率限制:10次/秒。
1421
+ */
1422
+ async BankCardOCR(
1423
+ req: BankCardOCRRequest,
1424
+ cb?: (error: string, rep: BankCardOCRResponse) => void
1425
+ ): Promise<BankCardOCRResponse> {
1426
+ return this.request("BankCardOCR", req, cb)
1427
+ }
1428
+
1756
1429
  /**
1757
1430
  * 本接口支持机动车销售统一发票和二手车销售统一发票的识别,包括发票号码、发票代码、合计金额、合计税额等二十多个字段。
1758
1431
 
@@ -1766,25 +1439,35 @@ export class Client extends AbstractClient {
1766
1439
  }
1767
1440
 
1768
1441
  /**
1769
- * 本接口支持北京、上海、广东、江苏、吉林、黑龙江、天津、辽宁、浙江、河南、四川、贵州、山东、安徽、福建、江西、湖北、湖南等省份健康码的识别,包括持码人姓名、持码人身份证号、健康码更新时间、健康码颜色、核酸检测结果、核酸检测间隔时长、核酸检测时间,疫苗接种信息,八个字段的识别结果输出。不同省市健康码显示的字段信息有所不同,上述字段的识别结果可能为空,以图片上具体展示的信息为准。
1442
+ * 本接口支持驾驶证主页和副页所有字段的自动定位与识别,重点字段的识别准确度达到99%以上。
1443
+
1444
+ 驾驶证主页:包括证号、姓名、性别、国籍、住址、出生日期、初次领证日期、准驾车型、有效期限、发证单位
1445
+
1446
+ 驾驶证副页:包括证号、姓名、档案编号、记录。
1447
+
1448
+ 另外,本接口还支持复印件、翻拍告警功能。同时支持识别交管12123 APP发放的电子驾驶证正页。
1449
+
1450
+ 电子驾驶证正页:包括证号、姓名、性别、国籍、出生日期、初次领证日期、准驾车型、有效期开始时间、有效期截止时间、档案编号、状态、累积记分。
1770
1451
 
1771
1452
  默认接口请求频率限制:10次/秒。
1772
1453
  */
1773
- async RecognizeHealthCodeOCR(
1774
- req: RecognizeHealthCodeOCRRequest,
1775
- cb?: (error: string, rep: RecognizeHealthCodeOCRResponse) => void
1776
- ): Promise<RecognizeHealthCodeOCRResponse> {
1777
- return this.request("RecognizeHealthCodeOCR", req, cb)
1454
+ async DriverLicenseOCR(
1455
+ req: DriverLicenseOCRRequest,
1456
+ cb?: (error: string, rep: DriverLicenseOCRResponse) => void
1457
+ ): Promise<DriverLicenseOCRResponse> {
1458
+ return this.request("DriverLicenseOCR", req, cb)
1778
1459
  }
1779
1460
 
1780
1461
  /**
1781
- * 菲律宾SSSID/UMID识别
1782
- */
1783
- async RecognizePhilippinesSssIDOCR(
1784
- req: RecognizePhilippinesSssIDOCRRequest,
1785
- cb?: (error: string, rep: RecognizePhilippinesSssIDOCRResponse) => void
1786
- ): Promise<RecognizePhilippinesSssIDOCRResponse> {
1787
- return this.request("RecognizePhilippinesSssIDOCR", req, cb)
1462
+ * 智能识别并结构化港澳台居民来往内地通行证正面全部字段,包含中文姓名、英文姓名、性别、出生日期、签发机关、有效期限、证件号、签发地点、签发次数、证件类别。
1463
+
1464
+ 默认接口请求频率限制:20次/秒。
1465
+ */
1466
+ async MainlandPermitOCR(
1467
+ req: MainlandPermitOCRRequest,
1468
+ cb?: (error: string, rep: MainlandPermitOCRResponse) => void
1469
+ ): Promise<MainlandPermitOCRResponse> {
1470
+ return this.request("MainlandPermitOCR", req, cb)
1788
1471
  }
1789
1472
 
1790
1473
  /**
@@ -1812,48 +1495,262 @@ export class Client extends AbstractClient {
1812
1495
  }
1813
1496
 
1814
1497
  /**
1815
- * 本接口支持识别轮船票的发票代码、发票号码、日期、姓名、票价、始发地、目的地、姓名、时间、发票消费类型、省、市、币种字段。
1498
+ * 本接口支持常见银行票据的自动分类和识别。整单识别包括支票(含现金支票、普通支票、转账支票),承兑汇票(含银行承兑汇票、商业承兑汇票)以及进账单等,适用于中国人民银行印发的 2010 版银行票据凭证版式(银发[2010]299 号)。
1816
1499
 
1817
1500
  默认接口请求频率限制:5次/秒。
1818
1501
  */
1819
- async ShipInvoiceOCR(
1820
- req: ShipInvoiceOCRRequest,
1821
- cb?: (error: string, rep: ShipInvoiceOCRResponse) => void
1822
- ): Promise<ShipInvoiceOCRResponse> {
1823
- return this.request("ShipInvoiceOCR", req, cb)
1502
+ async FinanBillOCR(
1503
+ req: FinanBillOCRRequest,
1504
+ cb?: (error: string, rep: FinanBillOCRResponse) => void
1505
+ ): Promise<FinanBillOCRResponse> {
1506
+ return this.request("FinanBillOCR", req, cb)
1507
+ }
1508
+
1509
+ /**
1510
+ * 本接口支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(铁路电子客票)、电子发票(航空运输电子客票行程单)识别,返回发票代码、发票号码、开票日期、验证码、机器编号、密码区,购买方和销售方信息,包括名称、纳税人识别号、地址电话、开户行及账号,以及价税合计、开票人、收款人、复核人、税额、不含税金额等字段信息。
1511
+ */
1512
+ async VerifyOfdVatInvoiceOCR(
1513
+ req: VerifyOfdVatInvoiceOCRRequest,
1514
+ cb?: (error: string, rep: VerifyOfdVatInvoiceOCRResponse) => void
1515
+ ): Promise<VerifyOfdVatInvoiceOCRResponse> {
1516
+ return this.request("VerifyOfdVatInvoiceOCR", req, cb)
1824
1517
  }
1825
1518
 
1826
1519
  /**
1827
- * 印尼身份证识别
1520
+ * 本接口支持 单张、多张、多类型 票据的混合识别,同时支持自选需要识别的票据类型,已支持票种包括:增值税发票(专票、普票、卷票)、全电发票、非税发票、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,并支持其他类发票的识别。
1828
1521
 
1829
1522
  默认接口请求频率限制:5次/秒。
1830
1523
  */
1831
- async RecognizeIndonesiaIDCardOCR(
1832
- req: RecognizeIndonesiaIDCardOCRRequest,
1833
- cb?: (error: string, rep: RecognizeIndonesiaIDCardOCRResponse) => void
1834
- ): Promise<RecognizeIndonesiaIDCardOCRResponse> {
1835
- return this.request("RecognizeIndonesiaIDCardOCR", req, cb)
1524
+ async MixedInvoiceOCR(
1525
+ req: MixedInvoiceOCRRequest,
1526
+ cb?: (error: string, rep: MixedInvoiceOCRResponse) => void
1527
+ ): Promise<MixedInvoiceOCRResponse> {
1528
+ return this.request("MixedInvoiceOCR", req, cb)
1529
+ }
1530
+
1531
+ /**
1532
+ * 本接口支持北京、上海、广东、江苏、吉林、黑龙江、天津、辽宁、浙江、河南、四川、贵州、山东、安徽、福建、江西、湖北、湖南等省份健康码的识别,包括持码人姓名、持码人身份证号、健康码更新时间、健康码颜色、核酸检测结果、核酸检测间隔时长、核酸检测时间,疫苗接种信息,八个字段的识别结果输出。不同省市健康码显示的字段信息有所不同,上述字段的识别结果可能为空,以图片上具体展示的信息为准。
1533
+
1534
+ 默认接口请求频率限制:10次/秒。
1535
+ */
1536
+ async RecognizeHealthCodeOCR(
1537
+ req: RecognizeHealthCodeOCRRequest,
1538
+ cb?: (error: string, rep: RecognizeHealthCodeOCRResponse) => void
1539
+ ): Promise<RecognizeHealthCodeOCRResponse> {
1540
+ return this.request("RecognizeHealthCodeOCR", req, cb)
1836
1541
  }
1837
1542
 
1838
1543
  /**
1839
- * 本接口支持网约车运输证关键字段的识别,包括交运管许可字号、车辆所有人、车辆号牌、起始日期、截止日期、发证日期。
1544
+ * 本接口支持数学试题内容的识别和结构化输出,包括通用文本解析和小学/初中/高中数学公式解析能力(包括91种题型,180种符号),公式返回格式为 Latex 格式文本。
1840
1545
 
1841
1546
  默认接口请求频率限制:5次/秒。
1842
1547
  */
1843
- async RideHailingTransportLicenseOCR(
1844
- req: RideHailingTransportLicenseOCRRequest,
1845
- cb?: (error: string, rep: RideHailingTransportLicenseOCRResponse) => void
1846
- ): Promise<RideHailingTransportLicenseOCRResponse> {
1847
- return this.request("RideHailingTransportLicenseOCR", req, cb)
1548
+ async EduPaperOCR(
1549
+ req: EduPaperOCRRequest,
1550
+ cb?: (error: string, rep: EduPaperOCRResponse) => void
1551
+ ): Promise<EduPaperOCRResponse> {
1552
+ return this.request("EduPaperOCR", req, cb)
1848
1553
  }
1849
1554
 
1850
1555
  /**
1851
- * 菲律宾TinID识别
1556
+ * 服务已迁移至 [文档解析](https://cloud.tencent.com/document/product/1759/107504),请跳转查看接口文档。该接口支持将图片或PDF文件转换成Markdown格式文件,可解析包括表格、公式、图片、标题、段落、页眉、页脚等内容元素,并将内容智能转换成阅读顺序。
1852
1557
  */
1853
- async RecognizePhilippinesTinIDOCR(
1854
- req: RecognizePhilippinesTinIDOCRRequest,
1855
- cb?: (error: string, rep: RecognizePhilippinesTinIDOCRResponse) => void
1856
- ): Promise<RecognizePhilippinesTinIDOCRResponse> {
1857
- return this.request("RecognizePhilippinesTinIDOCR", req, cb)
1558
+ async ReconstructDocument(
1559
+ req: ReconstructDocumentRequest,
1560
+ cb?: (error: string, rep: ReconstructDocumentResponse) => void
1561
+ ): Promise<ReconstructDocumentResponse> {
1562
+ return this.request("ReconstructDocument", req, cb)
1563
+ }
1564
+
1565
+ /**
1566
+ * 本接口支持泰国身份证识别,识别字段包括泰文姓名、英文姓名、地址、出生日期、身份证号码、首次领用日期、签发日期等字段。
1567
+ 本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
1568
+
1569
+ 默认接口请求频率限制:10次/秒
1570
+ */
1571
+ async RecognizeThaiIDCardOCR(
1572
+ req: RecognizeThaiIDCardOCRRequest,
1573
+ cb?: (error: string, rep: RecognizeThaiIDCardOCRResponse) => void
1574
+ ): Promise<RecognizeThaiIDCardOCRResponse> {
1575
+ return this.request("RecognizeThaiIDCardOCR", req, cb)
1576
+ }
1577
+
1578
+ /**
1579
+ * 本接口支持 PDF多页(最多30页)、一页中单张、多张、类型票据的混合识别,同时支持单选识别某类票据,已支持票种包括:增值税发票(专票、普票、卷票、区块链发票、通行费发票)、全电发票(专票、普票)、非税发票(通用票据、统一缴纳书)、定额发票、通用机打发票、购车发票(机动车销售发票、二手车发票)、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(机票行程单)、电子发票(铁路电子客票)的第一页识别,并支持非上述类型的其他发票的智能识别,点击[立即试用](https://cloud.tencent.com/product/ocr)。
1580
+
1581
+ 默认接口请求频率限制:5次/秒。
1582
+
1583
+
1584
+ 支持返回的细项目子票种SubType、子票种中文TypeDescription、以及对应所属大类票种Type 的说明如下列表:
1585
+ <table style="width:715px">
1586
+ <thead>
1587
+ <tr>
1588
+ <th style="width:200px">SubType 子票种英文</th>
1589
+ <th style="width:200px">TypeDescription子票种中文</th>
1590
+ <th >Type 所属大类票种</th>
1591
+ </tr>
1592
+ </thead>
1593
+ <tbody>
1594
+ <tr>
1595
+ <td> VatSpecialInvoice</td>
1596
+ <td> 增值税专用发票 </td>
1597
+ <td> 3 </td>
1598
+ </tr>
1599
+ <tr>
1600
+ <td> VatCommonInvoice</td>
1601
+ <td> 增值税普通发票 </td>
1602
+ <td> 3 </td>
1603
+ </tr>
1604
+ <tr>
1605
+ <td> VatElectronicCommonInvoice </td>
1606
+ <td> 增值税电子普通发票 </td>
1607
+ <td> 3 </td>
1608
+ </tr>
1609
+ <tr>
1610
+ <td> VatElectronicSpecialInvoice </td>
1611
+ <td> 增值税电子专用发票 </td>
1612
+ <td> 3 </td>
1613
+ </tr>
1614
+ <tr>
1615
+ <td> VatElectronicInvoiceBlockchain</td>
1616
+ <td> 区块链电子发票 </td>
1617
+ <td> 3 </td>
1618
+ </tr>
1619
+ <tr>
1620
+ <td> VatElectronicInvoiceToll</td>
1621
+ <td> 增值税电子普通发票(通行费)</td>
1622
+ <td> 3 </td>
1623
+ </tr>
1624
+ <tr>
1625
+ <td> VatSalesList</td>
1626
+ <td> 增值税销货清单</td>
1627
+ <td> 3 </td>
1628
+ </tr>
1629
+ <tr>
1630
+ <td> VatElectronicSpecialInvoiceFull</td>
1631
+ <td> 电子发票(专用发票)</td>
1632
+ <td> 16 </td>
1633
+ </tr>
1634
+ <tr>
1635
+ <td> VatElectronicInvoiceFull</td>
1636
+ <td> 电子发票(普通发票) </td>
1637
+ <td> 16 </td>
1638
+ </tr>
1639
+ <tr>
1640
+ <td> ElectronicFlightTicketFull</td>
1641
+ <td> 电子发票(机票行程单),该子类目前仅支持ofd发票</td>
1642
+ <td> 16 </td>
1643
+ </tr>
1644
+ <tr>
1645
+ <td> ElectronicTrainTicketFull</td>
1646
+ <td> 电子发票(铁路电子客票),该子类目前仅支持ofd发票</td>
1647
+ <td> 16 </td>
1648
+ </tr>
1649
+ <tr>
1650
+ <td> MotorVehicleSaleInvoice </td>
1651
+ <td> 机动车销售统一发票 </td>
1652
+ <td> 12 </td>
1653
+ </tr>
1654
+ <tr>
1655
+ <td> UsedCarPurchaseInvoice </td>
1656
+ <td> 二手车销售统一发票 </td>
1657
+ <td> 12 </td>
1658
+ </tr>
1659
+ <tr>
1660
+ <td> VatInvoiceRoll </td>
1661
+ <td> 增值税普通发票(卷票) </td>
1662
+ <td> 11 </td>
1663
+ </tr>
1664
+ <tr>
1665
+ <td> TaxiTicket </td>
1666
+ <td> 出租车发票 </td>
1667
+ <td> 0 </td>
1668
+ </tr>
1669
+ <tr>
1670
+ <td> QuotaInvoice </td>
1671
+ <td> 定额发票 </td>
1672
+ <td> 1 </td>
1673
+ </tr>
1674
+ <tr>
1675
+ <td> TrainTicket </td>
1676
+ <td> 火车票 </td>
1677
+ <td> 2 </td>
1678
+ </tr>
1679
+ <tr>
1680
+ <td> AirTransport </td>
1681
+ <td> 机票行程单 </td>
1682
+ <td> 5 </td>
1683
+ </tr>
1684
+ <tr>
1685
+ <td> MachinePrintedInvoice </td>
1686
+ <td> 通用机打发票 </td>
1687
+ <td> 8 </td>
1688
+ </tr>
1689
+ <tr>
1690
+ <td> BusInvoice </td>
1691
+ <td> 汽车票 </td>
1692
+ <td> 9 </td>
1693
+ </tr>
1694
+ <tr>
1695
+ <td> ShippingInvoice </td>
1696
+ <td> 轮船票 </td>
1697
+ <td> 10 </td>
1698
+ </tr>
1699
+ <tr>
1700
+ <td> NonTaxIncomeGeneralBill </td>
1701
+ <td> 非税收入通用票据 </td>
1702
+ <td> 15 </td>
1703
+ </tr>
1704
+ <tr>
1705
+ <td> NonTaxIncomeElectronicBill </td>
1706
+ <td> 非税收入一般缴款书(电子) </td>
1707
+ <td> 15 </td>
1708
+ </tr>
1709
+ <tr>
1710
+ <td> TollInvoice </td>
1711
+ <td> 过路过桥费发票 </td>
1712
+ <td> 13 </td>
1713
+ </tr>
1714
+ <tr>
1715
+ <td> MedicalOutpatientInvoice </td>
1716
+ <td> 医疗门诊收费票据(电子) </td>
1717
+ <td> 17 </td>
1718
+ </tr>
1719
+ <tr>
1720
+ <td> MedicalHospitalizedInvoice </td>
1721
+ <td> 医疗住院收费票据(电子) </td>
1722
+ <td> 17 </td>
1723
+ </tr>
1724
+ <tr>
1725
+ <td> OtherInvoice </td>
1726
+ <td> 其他发票 </td>
1727
+ <td> -1 </td>
1728
+ </tr>
1729
+ </tbody>
1730
+ </table>
1731
+ */
1732
+ async RecognizeGeneralInvoice(
1733
+ req: RecognizeGeneralInvoiceRequest,
1734
+ cb?: (error: string, rep: RecognizeGeneralInvoiceResponse) => void
1735
+ ): Promise<RecognizeGeneralInvoiceResponse> {
1736
+ return this.request("RecognizeGeneralInvoice", req, cb)
1737
+ }
1738
+
1739
+ /**
1740
+ * 本接口支持行驶证主页和副页所有字段的自动定位与识别。
1741
+
1742
+ 行驶证主页:车牌号码、车辆类型、所有人、住址、使用性质、品牌型号、识别代码、发动机号、注册日期、发证日期、发证单位。
1743
+
1744
+ 行驶证副页:号牌号码、档案编号、核定载人数、总质量、整备质量、核定载质量、外廓尺寸、准牵引总质量、备注、检验记录。
1745
+
1746
+ 另外,本接口还支持复印件、翻拍告警功能。
1747
+
1748
+ 默认接口请求频率限制:10次/秒。
1749
+ */
1750
+ async VehicleLicenseOCR(
1751
+ req: VehicleLicenseOCRRequest,
1752
+ cb?: (error: string, rep: VehicleLicenseOCRResponse) => void
1753
+ ): Promise<VehicleLicenseOCRResponse> {
1754
+ return this.request("VehicleLicenseOCR", req, cb)
1858
1755
  }
1859
1756
  }