tencentcloud-sdk-nodejs 4.0.1005 → 4.0.1006
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +194 -0
- package/SERVICE_CHANGELOG.md +235 -89
- package/package.json +1 -1
- package/products.md +15 -15
- package/src/common/sdk_version.ts +1 -1
- package/src/services/dbbrain/v20210527/dbbrain_client.ts +13 -0
- package/src/services/dbbrain/v20210527/dbbrain_models.ts +70 -0
- package/src/services/essbasic/v20210526/essbasic_client.ts +3 -3
- package/src/services/hunyuan/v20230901/hunyuan_models.ts +1 -1
- package/src/services/lighthouse/v20200324/lighthouse_models.ts +1 -1
- package/src/services/lke/v20231130/lke_models.ts +12 -0
- package/src/services/monitor/v20180724/monitor_client.ts +1 -0
- package/src/services/monitor/v20180724/monitor_models.ts +26 -0
- package/src/services/ocr/v20181119/ocr_client.ts +106 -92
- package/src/services/ocr/v20181119/ocr_models.ts +209 -113
- package/src/services/tcm/v20210413/tcm_models.ts +1 -1
- package/src/services/teo/v20220901/teo_models.ts +10 -7
- package/src/services/tke/v20180525/tke_models.ts +148 -133
- package/src/services/trocket/v20230308/trocket_client.ts +14 -0
- package/src/services/trocket/v20230308/trocket_models.ts +45 -0
- package/src/services/vclm/v20240523/vclm_models.ts +3 -2
- package/src/services/vpc/v20170312/vpc_client.ts +2 -2
- package/src/services/vpc/v20170312/vpc_models.ts +13 -13
- package/src/services/waf/v20180125/waf_models.ts +1 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_client.d.ts +5 -1
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_client.js +6 -0
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_models.d.ts +67 -0
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +3 -3
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +3 -3
- package/tencentcloud/services/hunyuan/v20230901/hunyuan_models.d.ts +1 -1
- package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +1 -1
- package/tencentcloud/services/lke/v20231130/lke_models.d.ts +12 -0
- package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +25 -0
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +79 -73
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +84 -76
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +206 -112
- package/tencentcloud/services/tcm/v20210413/tcm_models.d.ts +1 -1
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +10 -7
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +148 -133
- package/tencentcloud/services/trocket/v20230308/trocket_client.d.ts +7 -1
- package/tencentcloud/services/trocket/v20230308/trocket_client.js +8 -0
- package/tencentcloud/services/trocket/v20230308/trocket_models.d.ts +43 -0
- package/tencentcloud/services/vclm/v20240523/vclm_models.d.ts +3 -2
- package/tencentcloud/services/vpc/v20170312/vpc_client.d.ts +2 -2
- package/tencentcloud/services/vpc/v20170312/vpc_client.js +2 -2
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +13 -13
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +1 -1
- package/test/dbbrain.v20210527.test.js +10 -0
- package/test/ocr.v20181119.test.js +24 -14
- package/test/trocket.v20230308.test.js +10 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
2
|
import { ClientConfig } from "../../../common/interface";
|
|
3
|
-
import { RecognizeOnlineTaxiItineraryOCRResponse, BankSlipOCRRequest, BusinessCardOCRResponse,
|
|
3
|
+
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";
|
|
4
4
|
/**
|
|
5
5
|
* ocr client
|
|
6
6
|
* @class
|
|
@@ -8,11 +8,71 @@ import { RecognizeOnlineTaxiItineraryOCRResponse, BankSlipOCRRequest, BusinessCa
|
|
|
8
8
|
export declare class Client extends AbstractClient {
|
|
9
9
|
constructor(clientConfig: ClientConfig);
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* 本接口支持图像整体文字的检测和识别。可以识别中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语,阿拉伯语20种语言,且各种语言均支持与英文混合的文字识别。
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
适用于印刷文档识别、网络图片识别、广告图文字识别、街景店招牌识别、菜单识别、视频标题识别、头像文字识别等场景。
|
|
14
|
+
|
|
15
|
+
产品优势:支持自动识别语言类型,可返回文本框坐标信息,对于倾斜文本支持自动旋转纠正。
|
|
16
|
+
|
|
17
|
+
通用印刷体识别不同版本的差异如下:
|
|
18
|
+
<table style="width:715px">
|
|
19
|
+
<thead>
|
|
20
|
+
<tr>
|
|
21
|
+
<th style="width:150px"></th>
|
|
22
|
+
<th style="width:200px">【荐】通用印刷体识别</th>
|
|
23
|
+
<th ><a href="https://cloud.tencent.com/document/product/866/34937">【荐】通用印刷体识别(高精度版)</a></th>
|
|
24
|
+
<th><a href="https://cloud.tencent.com/document/product/866/37831">通用印刷体识别(精简版)</a></th>
|
|
25
|
+
</tr>
|
|
26
|
+
</thead>
|
|
27
|
+
<tbody>
|
|
28
|
+
<tr>
|
|
29
|
+
<td> 适用场景</td>
|
|
30
|
+
<td>适用于所有通用场景的印刷体识别</td>
|
|
31
|
+
<td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>
|
|
32
|
+
<td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>
|
|
33
|
+
</tr>
|
|
34
|
+
<tr>
|
|
35
|
+
<td>识别准确率</td>
|
|
36
|
+
<td>96%</td>
|
|
37
|
+
<td>99%</td>
|
|
38
|
+
<td>91%</td>
|
|
39
|
+
</tr>
|
|
40
|
+
<tr>
|
|
41
|
+
<td>价格</td>
|
|
42
|
+
<td>中</td>
|
|
43
|
+
<td>高</td>
|
|
44
|
+
<td>低</td>
|
|
45
|
+
</tr>
|
|
46
|
+
<tr>
|
|
47
|
+
<td>支持的语言</td>
|
|
48
|
+
<td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
|
|
49
|
+
<td>中文、英文、中英文</td>
|
|
50
|
+
<td>中文、英文、中英文</td>
|
|
51
|
+
</tr>
|
|
52
|
+
<tr>
|
|
53
|
+
<td>自动语言检测</td>
|
|
54
|
+
<td>支持</td>
|
|
55
|
+
<td>支持</td>
|
|
56
|
+
<td>支持</td>
|
|
57
|
+
</tr>
|
|
58
|
+
<tr>
|
|
59
|
+
<td>返回文本行坐标</td>
|
|
60
|
+
<td>支持</td>
|
|
61
|
+
<td>支持</td>
|
|
62
|
+
<td>支持</td>
|
|
63
|
+
</tr>
|
|
64
|
+
<tr>
|
|
65
|
+
<td>自动旋转纠正</td>
|
|
66
|
+
<td>支持旋转识别,返回角度信息</td>
|
|
67
|
+
<td>支持旋转识别,返回角度信息</td>
|
|
68
|
+
<td>支持旋转识别,返回角度信息</td>
|
|
69
|
+
</tr>
|
|
70
|
+
</tbody>
|
|
71
|
+
</table>
|
|
72
|
+
|
|
73
|
+
默认接口请求频率限制:20次/秒。
|
|
14
74
|
*/
|
|
15
|
-
|
|
75
|
+
GeneralBasicOCR(req: GeneralBasicOCRRequest, cb?: (error: string, rep: GeneralBasicOCRResponse) => void): Promise<GeneralBasicOCRResponse>;
|
|
16
76
|
/**
|
|
17
77
|
* 文本图像增强是面向文档类图片提供的图像增强处理能力,包括切边增强、图像矫正、阴影去除、摩尔纹去除等;可以有效优化文档类的图片质量,提升文字的清晰度。
|
|
18
78
|
|
|
@@ -37,6 +97,12 @@ export declare class Client extends AbstractClient {
|
|
|
37
97
|
默认接口请求频率限制:10次/秒。
|
|
38
98
|
*/
|
|
39
99
|
BusinessCardOCR(req: BusinessCardOCRRequest, cb?: (error: string, rep: BusinessCardOCRResponse) => void): Promise<BusinessCardOCRResponse>;
|
|
100
|
+
/**
|
|
101
|
+
* 本接口支持病案首页、费用清单、结算单、医疗发票四种保险理赔单据的文本识别和结构化输出。
|
|
102
|
+
|
|
103
|
+
默认接口请求频率限制:1次/秒。
|
|
104
|
+
*/
|
|
105
|
+
InsuranceBillOCR(req: InsuranceBillOCRRequest, cb?: (error: string, rep: InsuranceBillOCRResponse) => void): Promise<InsuranceBillOCRResponse>;
|
|
40
106
|
/**
|
|
41
107
|
* 本接口支持网约车行程单关键字段的识别,包括行程起止日期、上车时间、起点、终点、里程、金额等字段。
|
|
42
108
|
|
|
@@ -185,12 +251,6 @@ export declare class Client extends AbstractClient {
|
|
|
185
251
|
默认接口请求频率限制:10次/秒。
|
|
186
252
|
*/
|
|
187
253
|
GeneralAccurateOCR(req: GeneralAccurateOCRRequest, cb?: (error: string, rep: GeneralAccurateOCRResponse) => void): Promise<GeneralAccurateOCRResponse>;
|
|
188
|
-
/**
|
|
189
|
-
* 本接口支持机票行程单关键字段的识别,包括旅客姓名、有效身份证件号码、电子客票号码、验证码、填开单位、其他税费、燃油附加费、民航发展基金、保险费、销售单位代号、始发地、目的地、航班号、时间、日期、座位等级、承运人、发票消费类型、票价、合计金额、填开日期、国内国际标签、印刷序号、客票级别/类别、客票生效日期、有效期截止日期、免费行李等字段,支持航班信息多行明细输出。
|
|
190
|
-
|
|
191
|
-
默认接口请求频率限制:5次/秒。
|
|
192
|
-
*/
|
|
193
|
-
FlightInvoiceOCR(req: FlightInvoiceOCRRequest, cb?: (error: string, rep: FlightInvoiceOCRResponse) => void): Promise<FlightInvoiceOCRResponse>;
|
|
194
254
|
/**
|
|
195
255
|
* 本接口支持集装箱箱门信息识别,识别字段包括集装箱箱号、类型、总重量、有效承重、容量、自身重量,具备集装箱箱号、类型不完整或者不清晰的告警功能。
|
|
196
256
|
默认接口请求频率限制:5次/秒。
|
|
@@ -407,71 +467,11 @@ export declare class Client extends AbstractClient {
|
|
|
407
467
|
*/
|
|
408
468
|
DutyPaidProofOCR(req: DutyPaidProofOCRRequest, cb?: (error: string, rep: DutyPaidProofOCRResponse) => void): Promise<DutyPaidProofOCRResponse>;
|
|
409
469
|
/**
|
|
410
|
-
*
|
|
411
|
-
|
|
412
|
-
适用于印刷文档识别、网络图片识别、广告图文字识别、街景店招牌识别、菜单识别、视频标题识别、头像文字识别等场景。
|
|
413
|
-
|
|
414
|
-
产品优势:支持自动识别语言类型,可返回文本框坐标信息,对于倾斜文本支持自动旋转纠正。
|
|
415
|
-
|
|
416
|
-
通用印刷体识别不同版本的差异如下:
|
|
417
|
-
<table style="width:715px">
|
|
418
|
-
<thead>
|
|
419
|
-
<tr>
|
|
420
|
-
<th style="width:150px"></th>
|
|
421
|
-
<th style="width:200px">【荐】通用印刷体识别</th>
|
|
422
|
-
<th ><a href="https://cloud.tencent.com/document/product/866/34937">【荐】通用印刷体识别(高精度版)</a></th>
|
|
423
|
-
<th><a href="https://cloud.tencent.com/document/product/866/37831">通用印刷体识别(精简版)</a></th>
|
|
424
|
-
</tr>
|
|
425
|
-
</thead>
|
|
426
|
-
<tbody>
|
|
427
|
-
<tr>
|
|
428
|
-
<td> 适用场景</td>
|
|
429
|
-
<td>适用于所有通用场景的印刷体识别</td>
|
|
430
|
-
<td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>
|
|
431
|
-
<td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>
|
|
432
|
-
</tr>
|
|
433
|
-
<tr>
|
|
434
|
-
<td>识别准确率</td>
|
|
435
|
-
<td>96%</td>
|
|
436
|
-
<td>99%</td>
|
|
437
|
-
<td>91%</td>
|
|
438
|
-
</tr>
|
|
439
|
-
<tr>
|
|
440
|
-
<td>价格</td>
|
|
441
|
-
<td>中</td>
|
|
442
|
-
<td>高</td>
|
|
443
|
-
<td>低</td>
|
|
444
|
-
</tr>
|
|
445
|
-
<tr>
|
|
446
|
-
<td>支持的语言</td>
|
|
447
|
-
<td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
|
|
448
|
-
<td>中文、英文、中英文</td>
|
|
449
|
-
<td>中文、英文、中英文</td>
|
|
450
|
-
</tr>
|
|
451
|
-
<tr>
|
|
452
|
-
<td>自动语言检测</td>
|
|
453
|
-
<td>支持</td>
|
|
454
|
-
<td>支持</td>
|
|
455
|
-
<td>支持</td>
|
|
456
|
-
</tr>
|
|
457
|
-
<tr>
|
|
458
|
-
<td>返回文本行坐标</td>
|
|
459
|
-
<td>支持</td>
|
|
460
|
-
<td>支持</td>
|
|
461
|
-
<td>支持</td>
|
|
462
|
-
</tr>
|
|
463
|
-
<tr>
|
|
464
|
-
<td>自动旋转纠正</td>
|
|
465
|
-
<td>支持旋转识别,返回角度信息</td>
|
|
466
|
-
<td>支持旋转识别,返回角度信息</td>
|
|
467
|
-
<td>支持旋转识别,返回角度信息</td>
|
|
468
|
-
</tr>
|
|
469
|
-
</tbody>
|
|
470
|
-
</table>
|
|
470
|
+
* 本接口支持机票行程单关键字段的识别,包括旅客姓名、有效身份证件号码、电子客票号码、验证码、填开单位、其他税费、燃油附加费、民航发展基金、保险费、销售单位代号、始发地、目的地、航班号、时间、日期、座位等级、承运人、发票消费类型、票价、合计金额、填开日期、国内国际标签、印刷序号、客票级别/类别、客票生效日期、有效期截止日期、免费行李等字段,支持航班信息多行明细输出。
|
|
471
471
|
|
|
472
|
-
默认接口请求频率限制:
|
|
472
|
+
默认接口请求频率限制:5次/秒。
|
|
473
473
|
*/
|
|
474
|
-
|
|
474
|
+
FlightInvoiceOCR(req: FlightInvoiceOCRRequest, cb?: (error: string, rep: FlightInvoiceOCRResponse) => void): Promise<FlightInvoiceOCRResponse>;
|
|
475
475
|
/**
|
|
476
476
|
* 本接口支持对卡式港澳台通行证的识别,包括签发地点、签发机关、有效期限、性别、出生日期、英文姓名、姓名、证件号等字段。
|
|
477
477
|
|
|
@@ -695,6 +695,12 @@ export declare class Client extends AbstractClient {
|
|
|
695
695
|
默认接口请求频率限制:20次/秒。
|
|
696
696
|
*/
|
|
697
697
|
RecognizeValidIDCardOCR(req: RecognizeValidIDCardOCRRequest, cb?: (error: string, rep: RecognizeValidIDCardOCRResponse) => void): Promise<RecognizeValidIDCardOCRResponse>;
|
|
698
|
+
/**
|
|
699
|
+
* 本接口支持对中国大陆主流银行卡正反面关键字段的检测与识别,包括卡号、卡类型、卡名字、银行信息、有效期。支持竖排异形卡识别、多角度旋转图片识别。支持对复印件、翻拍件、边框遮挡的银行卡进行告警,可应用于各种银行卡信息有效性校验场景,如金融行业身份认证、第三方支付绑卡等场景。
|
|
700
|
+
|
|
701
|
+
默认接口请求频率限制:10次/秒。
|
|
702
|
+
*/
|
|
703
|
+
BankCardOCR(req: BankCardOCRRequest, cb?: (error: string, rep: BankCardOCRResponse) => void): Promise<BankCardOCRResponse>;
|
|
698
704
|
/**
|
|
699
705
|
* 本接口支持机动车销售统一发票和二手车销售统一发票的识别,包括发票号码、发票代码、合计金额、合计税额等二十多个字段。
|
|
700
706
|
|
|
@@ -28,12 +28,72 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
28
28
|
super("ocr.tencentcloudapi.com", "2018-11-19", clientConfig);
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* 本接口支持图像整体文字的检测和识别。可以识别中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语,阿拉伯语20种语言,且各种语言均支持与英文混合的文字识别。
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
适用于印刷文档识别、网络图片识别、广告图文字识别、街景店招牌识别、菜单识别、视频标题识别、头像文字识别等场景。
|
|
34
|
+
|
|
35
|
+
产品优势:支持自动识别语言类型,可返回文本框坐标信息,对于倾斜文本支持自动旋转纠正。
|
|
36
|
+
|
|
37
|
+
通用印刷体识别不同版本的差异如下:
|
|
38
|
+
<table style="width:715px">
|
|
39
|
+
<thead>
|
|
40
|
+
<tr>
|
|
41
|
+
<th style="width:150px"></th>
|
|
42
|
+
<th style="width:200px">【荐】通用印刷体识别</th>
|
|
43
|
+
<th ><a href="https://cloud.tencent.com/document/product/866/34937">【荐】通用印刷体识别(高精度版)</a></th>
|
|
44
|
+
<th><a href="https://cloud.tencent.com/document/product/866/37831">通用印刷体识别(精简版)</a></th>
|
|
45
|
+
</tr>
|
|
46
|
+
</thead>
|
|
47
|
+
<tbody>
|
|
48
|
+
<tr>
|
|
49
|
+
<td> 适用场景</td>
|
|
50
|
+
<td>适用于所有通用场景的印刷体识别</td>
|
|
51
|
+
<td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>
|
|
52
|
+
<td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>
|
|
53
|
+
</tr>
|
|
54
|
+
<tr>
|
|
55
|
+
<td>识别准确率</td>
|
|
56
|
+
<td>96%</td>
|
|
57
|
+
<td>99%</td>
|
|
58
|
+
<td>91%</td>
|
|
59
|
+
</tr>
|
|
60
|
+
<tr>
|
|
61
|
+
<td>价格</td>
|
|
62
|
+
<td>中</td>
|
|
63
|
+
<td>高</td>
|
|
64
|
+
<td>低</td>
|
|
65
|
+
</tr>
|
|
66
|
+
<tr>
|
|
67
|
+
<td>支持的语言</td>
|
|
68
|
+
<td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
|
|
69
|
+
<td>中文、英文、中英文</td>
|
|
70
|
+
<td>中文、英文、中英文</td>
|
|
71
|
+
</tr>
|
|
72
|
+
<tr>
|
|
73
|
+
<td>自动语言检测</td>
|
|
74
|
+
<td>支持</td>
|
|
75
|
+
<td>支持</td>
|
|
76
|
+
<td>支持</td>
|
|
77
|
+
</tr>
|
|
78
|
+
<tr>
|
|
79
|
+
<td>返回文本行坐标</td>
|
|
80
|
+
<td>支持</td>
|
|
81
|
+
<td>支持</td>
|
|
82
|
+
<td>支持</td>
|
|
83
|
+
</tr>
|
|
84
|
+
<tr>
|
|
85
|
+
<td>自动旋转纠正</td>
|
|
86
|
+
<td>支持旋转识别,返回角度信息</td>
|
|
87
|
+
<td>支持旋转识别,返回角度信息</td>
|
|
88
|
+
<td>支持旋转识别,返回角度信息</td>
|
|
89
|
+
</tr>
|
|
90
|
+
</tbody>
|
|
91
|
+
</table>
|
|
92
|
+
|
|
93
|
+
默认接口请求频率限制:20次/秒。
|
|
34
94
|
*/
|
|
35
|
-
async
|
|
36
|
-
return this.request("
|
|
95
|
+
async GeneralBasicOCR(req, cb) {
|
|
96
|
+
return this.request("GeneralBasicOCR", req, cb);
|
|
37
97
|
}
|
|
38
98
|
/**
|
|
39
99
|
* 文本图像增强是面向文档类图片提供的图像增强处理能力,包括切边增强、图像矫正、阴影去除、摩尔纹去除等;可以有效优化文档类的图片质量,提升文字的清晰度。
|
|
@@ -67,6 +127,14 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
67
127
|
async BusinessCardOCR(req, cb) {
|
|
68
128
|
return this.request("BusinessCardOCR", req, cb);
|
|
69
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* 本接口支持病案首页、费用清单、结算单、医疗发票四种保险理赔单据的文本识别和结构化输出。
|
|
132
|
+
|
|
133
|
+
默认接口请求频率限制:1次/秒。
|
|
134
|
+
*/
|
|
135
|
+
async InsuranceBillOCR(req, cb) {
|
|
136
|
+
return this.request("InsuranceBillOCR", req, cb);
|
|
137
|
+
}
|
|
70
138
|
/**
|
|
71
139
|
* 本接口支持网约车行程单关键字段的识别,包括行程起止日期、上车时间、起点、终点、里程、金额等字段。
|
|
72
140
|
|
|
@@ -229,14 +297,6 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
229
297
|
async GeneralAccurateOCR(req, cb) {
|
|
230
298
|
return this.request("GeneralAccurateOCR", req, cb);
|
|
231
299
|
}
|
|
232
|
-
/**
|
|
233
|
-
* 本接口支持机票行程单关键字段的识别,包括旅客姓名、有效身份证件号码、电子客票号码、验证码、填开单位、其他税费、燃油附加费、民航发展基金、保险费、销售单位代号、始发地、目的地、航班号、时间、日期、座位等级、承运人、发票消费类型、票价、合计金额、填开日期、国内国际标签、印刷序号、客票级别/类别、客票生效日期、有效期截止日期、免费行李等字段,支持航班信息多行明细输出。
|
|
234
|
-
|
|
235
|
-
默认接口请求频率限制:5次/秒。
|
|
236
|
-
*/
|
|
237
|
-
async FlightInvoiceOCR(req, cb) {
|
|
238
|
-
return this.request("FlightInvoiceOCR", req, cb);
|
|
239
|
-
}
|
|
240
300
|
/**
|
|
241
301
|
* 本接口支持集装箱箱门信息识别,识别字段包括集装箱箱号、类型、总重量、有效承重、容量、自身重量,具备集装箱箱号、类型不完整或者不清晰的告警功能。
|
|
242
302
|
默认接口请求频率限制:5次/秒。
|
|
@@ -509,72 +569,12 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
509
569
|
return this.request("DutyPaidProofOCR", req, cb);
|
|
510
570
|
}
|
|
511
571
|
/**
|
|
512
|
-
*
|
|
513
|
-
|
|
514
|
-
适用于印刷文档识别、网络图片识别、广告图文字识别、街景店招牌识别、菜单识别、视频标题识别、头像文字识别等场景。
|
|
515
|
-
|
|
516
|
-
产品优势:支持自动识别语言类型,可返回文本框坐标信息,对于倾斜文本支持自动旋转纠正。
|
|
517
|
-
|
|
518
|
-
通用印刷体识别不同版本的差异如下:
|
|
519
|
-
<table style="width:715px">
|
|
520
|
-
<thead>
|
|
521
|
-
<tr>
|
|
522
|
-
<th style="width:150px"></th>
|
|
523
|
-
<th style="width:200px">【荐】通用印刷体识别</th>
|
|
524
|
-
<th ><a href="https://cloud.tencent.com/document/product/866/34937">【荐】通用印刷体识别(高精度版)</a></th>
|
|
525
|
-
<th><a href="https://cloud.tencent.com/document/product/866/37831">通用印刷体识别(精简版)</a></th>
|
|
526
|
-
</tr>
|
|
527
|
-
</thead>
|
|
528
|
-
<tbody>
|
|
529
|
-
<tr>
|
|
530
|
-
<td> 适用场景</td>
|
|
531
|
-
<td>适用于所有通用场景的印刷体识别</td>
|
|
532
|
-
<td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>
|
|
533
|
-
<td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>
|
|
534
|
-
</tr>
|
|
535
|
-
<tr>
|
|
536
|
-
<td>识别准确率</td>
|
|
537
|
-
<td>96%</td>
|
|
538
|
-
<td>99%</td>
|
|
539
|
-
<td>91%</td>
|
|
540
|
-
</tr>
|
|
541
|
-
<tr>
|
|
542
|
-
<td>价格</td>
|
|
543
|
-
<td>中</td>
|
|
544
|
-
<td>高</td>
|
|
545
|
-
<td>低</td>
|
|
546
|
-
</tr>
|
|
547
|
-
<tr>
|
|
548
|
-
<td>支持的语言</td>
|
|
549
|
-
<td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
|
|
550
|
-
<td>中文、英文、中英文</td>
|
|
551
|
-
<td>中文、英文、中英文</td>
|
|
552
|
-
</tr>
|
|
553
|
-
<tr>
|
|
554
|
-
<td>自动语言检测</td>
|
|
555
|
-
<td>支持</td>
|
|
556
|
-
<td>支持</td>
|
|
557
|
-
<td>支持</td>
|
|
558
|
-
</tr>
|
|
559
|
-
<tr>
|
|
560
|
-
<td>返回文本行坐标</td>
|
|
561
|
-
<td>支持</td>
|
|
562
|
-
<td>支持</td>
|
|
563
|
-
<td>支持</td>
|
|
564
|
-
</tr>
|
|
565
|
-
<tr>
|
|
566
|
-
<td>自动旋转纠正</td>
|
|
567
|
-
<td>支持旋转识别,返回角度信息</td>
|
|
568
|
-
<td>支持旋转识别,返回角度信息</td>
|
|
569
|
-
<td>支持旋转识别,返回角度信息</td>
|
|
570
|
-
</tr>
|
|
571
|
-
</tbody>
|
|
572
|
-
</table>
|
|
572
|
+
* 本接口支持机票行程单关键字段的识别,包括旅客姓名、有效身份证件号码、电子客票号码、验证码、填开单位、其他税费、燃油附加费、民航发展基金、保险费、销售单位代号、始发地、目的地、航班号、时间、日期、座位等级、承运人、发票消费类型、票价、合计金额、填开日期、国内国际标签、印刷序号、客票级别/类别、客票生效日期、有效期截止日期、免费行李等字段,支持航班信息多行明细输出。
|
|
573
573
|
|
|
574
|
-
默认接口请求频率限制:
|
|
574
|
+
默认接口请求频率限制:5次/秒。
|
|
575
575
|
*/
|
|
576
|
-
async
|
|
577
|
-
return this.request("
|
|
576
|
+
async FlightInvoiceOCR(req, cb) {
|
|
577
|
+
return this.request("FlightInvoiceOCR", req, cb);
|
|
578
578
|
}
|
|
579
579
|
/**
|
|
580
580
|
* 本接口支持对卡式港澳台通行证的识别,包括签发地点、签发机关、有效期限、性别、出生日期、英文姓名、姓名、证件号等字段。
|
|
@@ -853,6 +853,14 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
853
853
|
async RecognizeValidIDCardOCR(req, cb) {
|
|
854
854
|
return this.request("RecognizeValidIDCardOCR", req, cb);
|
|
855
855
|
}
|
|
856
|
+
/**
|
|
857
|
+
* 本接口支持对中国大陆主流银行卡正反面关键字段的检测与识别,包括卡号、卡类型、卡名字、银行信息、有效期。支持竖排异形卡识别、多角度旋转图片识别。支持对复印件、翻拍件、边框遮挡的银行卡进行告警,可应用于各种银行卡信息有效性校验场景,如金融行业身份认证、第三方支付绑卡等场景。
|
|
858
|
+
|
|
859
|
+
默认接口请求频率限制:10次/秒。
|
|
860
|
+
*/
|
|
861
|
+
async BankCardOCR(req, cb) {
|
|
862
|
+
return this.request("BankCardOCR", req, cb);
|
|
863
|
+
}
|
|
856
864
|
/**
|
|
857
865
|
* 本接口支持机动车销售统一发票和二手车销售统一发票的识别,包括发票号码、发票代码、合计金额、合计税额等二十多个字段。
|
|
858
866
|
|