tencentcloud-sdk-nodejs 4.0.1004 → 4.0.1005
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +208 -0
- package/SERVICE_CHANGELOG.md +302 -32
- package/package.json +1 -1
- package/products.md +13 -13
- package/src/common/sdk_version.ts +1 -1
- package/src/services/aca/v20210323/aca_models.ts +1 -6
- package/src/services/cbs/v20170312/cbs_models.ts +4 -0
- package/src/services/cdwdoris/v20211228/cdwdoris_models.ts +10 -2
- package/src/services/cls/v20201016/cls_models.ts +40 -27
- package/src/services/cvm/v20170312/cvm_models.ts +3 -3
- package/src/services/dts/v20211206/dts_models.ts +4 -0
- package/src/services/ocr/v20181119/ocr_client.ts +92 -106
- package/src/services/ocr/v20181119/ocr_models.ts +113 -209
- package/src/services/scf/v20180416/scf_client.ts +36 -24
- package/src/services/scf/v20180416/scf_models.ts +158 -168
- package/src/services/tcr/v20190924/tcr_models.ts +86 -81
- package/src/services/tke/v20180525/tke_models.ts +143 -143
- package/src/services/vpc/v20170312/vpc_models.ts +51 -77
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/aca/v20210323/aca_models.d.ts +1 -6
- package/tencentcloud/services/cbs/v20170312/cbs_models.d.ts +4 -0
- package/tencentcloud/services/cdwdoris/v20211228/cdwdoris_models.d.ts +10 -2
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +40 -27
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +3 -3
- package/tencentcloud/services/dts/v20211206/dts_models.d.ts +4 -0
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +73 -79
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +76 -84
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +112 -206
- package/tencentcloud/services/scf/v20180416/scf_client.d.ts +13 -9
- package/tencentcloud/services/scf/v20180416/scf_client.js +18 -12
- package/tencentcloud/services/scf/v20180416/scf_models.d.ts +156 -168
- package/tencentcloud/services/tcr/v20190924/tcr_models.d.ts +86 -81
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +143 -143
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +51 -77
- package/test/ocr.v20181119.test.js +14 -24
- package/test/scf.v20180416.test.js +24 -14
|
@@ -1368,11 +1368,11 @@ export interface DescribeImagesResponse {
|
|
|
1368
1368
|
/**
|
|
1369
1369
|
* 一个关于镜像详细信息的结构体,主要包括镜像的主要状态与属性。
|
|
1370
1370
|
*/
|
|
1371
|
-
ImageSet
|
|
1371
|
+
ImageSet?: Array<Image>;
|
|
1372
1372
|
/**
|
|
1373
1373
|
* 符合要求的镜像数量。
|
|
1374
1374
|
*/
|
|
1375
|
-
TotalCount
|
|
1375
|
+
TotalCount?: number;
|
|
1376
1376
|
/**
|
|
1377
1377
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1378
1378
|
*/
|
|
@@ -5128,7 +5128,7 @@ export interface ChcHostDeniedActions {
|
|
|
5128
5128
|
*/
|
|
5129
5129
|
export interface DescribeImagesRequest {
|
|
5130
5130
|
/**
|
|
5131
|
-
* 镜像ID列表 。镜像ID如:`img-gvbnzy6f`。array型参数的格式可以参考[API简介](https://cloud.tencent.com/document/api/213/15688)。镜像ID可以通过如下方式获取:<br><li>通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回的`ImageId
|
|
5131
|
+
* 镜像ID列表 。镜像ID如:`img-gvbnzy6f`。array型参数的格式可以参考[API简介](https://cloud.tencent.com/document/api/213/15688)。镜像ID可以通过如下方式获取:<br><li>通过[DescribeImages](https://cloud.tencent.com/document/api/213/15715)接口返回的`ImageId`获取。</li><li>通过[镜像控制台](https://console.cloud.tencent.com/cvm/image)获取。</li>
|
|
5132
5132
|
*/
|
|
5133
5133
|
ImageIds?: Array<string>;
|
|
5134
5134
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
2
|
import { ClientConfig } from "../../../common/interface";
|
|
3
|
-
import { RecognizeOnlineTaxiItineraryOCRResponse,
|
|
3
|
+
import { RecognizeOnlineTaxiItineraryOCRResponse, BankSlipOCRRequest, BusinessCardOCRResponse, HKIDCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, GeneralHandwritingOCRResponse, MLIDPassportOCRRequest, RecognizeGeneralTextImageWarnResponse, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, CreateAIFormTaskRequest, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, FlightInvoiceOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, InstitutionOCRResponse, DriverLicenseOCRRequest, SmartStructuralProRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, SmartStructuralOCRV2Response, EnterpriseLicenseOCRRequest, SmartStructuralOCRRequest, RecognizeStoreNameRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, SmartStructuralOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, GeneralAccurateOCRResponse, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VinOCRRequest, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, RecognizeThaiIDCardOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, TaxiInvoiceOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, PropOwnerCertOCRRequest, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, ReconstructDocumentResponse, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, EnglishOCRRequest, VatInvoiceVerifyResponse, RecognizeValidIDCardOCRResponse, IDCardOCRResponse, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, FlightInvoiceOCRResponse, ShipInvoiceOCRResponse, ReconstructDocumentRequest, VatInvoiceVerifyNewRequest, InstitutionOCRRequest, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, ClassifyStoreNameResponse, VatRollInvoiceOCRRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, RecognizeEncryptedIDCardOCRResponse, VinOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, RecognizeEncryptedIDCardOCRRequest, CreateAIFormTaskResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, RecognizeGeneralInvoiceResponse, GetTaskStateResponse, GetTaskStateRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, MLIDPassportOCRResponse, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, HmtResidentPermitOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, GetOCRResultRequest, BusInvoiceOCRResponse, GetOCRResultResponse, MainlandPermitOCRResponse, MLIDCardOCRRequest, EnglishOCRResponse, RecognizeForeignPermanentResidentIdCardResponse, BusInvoiceOCRRequest, OrgCodeCertOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, SmartStructuralProResponse, PermitOCRResponse, InsuranceBillOCRRequest, QrcodeOCRRequest, TableOCRResponse, AdvertiseOCRResponse, VehicleLicenseOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, RecognizeStoreNameResponse, GetOCRTokenRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, TableOCRRequest, VatInvoiceOCRResponse, QuotaInvoiceOCRRequest, BusinessCardOCRRequest, FinanBillOCRRequest, QuotaInvoiceOCRResponse, RecognizeGeneralTextImageWarnRequest, RecognizeForeignPermanentResidentIdCardRequest, GeneralFastOCRResponse } from "./ocr_models";
|
|
4
4
|
/**
|
|
5
5
|
* ocr client
|
|
6
6
|
* @class
|
|
@@ -8,71 +8,11 @@ import { RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOC
|
|
|
8
8
|
export declare class Client extends AbstractClient {
|
|
9
9
|
constructor(clientConfig: ClientConfig);
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
|
|
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>
|
|
11
|
+
* 本接口支持病案首页、费用清单、结算单、医疗发票四种保险理赔单据的文本识别和结构化输出。
|
|
72
12
|
|
|
73
|
-
默认接口请求频率限制:
|
|
13
|
+
默认接口请求频率限制:1次/秒。
|
|
74
14
|
*/
|
|
75
|
-
|
|
15
|
+
InsuranceBillOCR(req: InsuranceBillOCRRequest, cb?: (error: string, rep: InsuranceBillOCRResponse) => void): Promise<InsuranceBillOCRResponse>;
|
|
76
16
|
/**
|
|
77
17
|
* 文本图像增强是面向文档类图片提供的图像增强处理能力,包括切边增强、图像矫正、阴影去除、摩尔纹去除等;可以有效优化文档类的图片质量,提升文字的清晰度。
|
|
78
18
|
|
|
@@ -97,12 +37,6 @@ export declare class Client extends AbstractClient {
|
|
|
97
37
|
默认接口请求频率限制:10次/秒。
|
|
98
38
|
*/
|
|
99
39
|
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>;
|
|
106
40
|
/**
|
|
107
41
|
* 本接口支持网约车行程单关键字段的识别,包括行程起止日期、上车时间、起点、终点、里程、金额等字段。
|
|
108
42
|
|
|
@@ -251,6 +185,12 @@ export declare class Client extends AbstractClient {
|
|
|
251
185
|
默认接口请求频率限制:10次/秒。
|
|
252
186
|
*/
|
|
253
187
|
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>;
|
|
254
194
|
/**
|
|
255
195
|
* 本接口支持集装箱箱门信息识别,识别字段包括集装箱箱号、类型、总重量、有效承重、容量、自身重量,具备集装箱箱号、类型不完整或者不清晰的告警功能。
|
|
256
196
|
默认接口请求频率限制:5次/秒。
|
|
@@ -467,11 +407,71 @@ export declare class Client extends AbstractClient {
|
|
|
467
407
|
*/
|
|
468
408
|
DutyPaidProofOCR(req: DutyPaidProofOCRRequest, cb?: (error: string, rep: DutyPaidProofOCRResponse) => void): Promise<DutyPaidProofOCRResponse>;
|
|
469
409
|
/**
|
|
470
|
-
*
|
|
410
|
+
* 本接口支持图像整体文字的检测和识别。可以识别中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语,阿拉伯语20种语言,且各种语言均支持与英文混合的文字识别。
|
|
471
411
|
|
|
472
|
-
|
|
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>
|
|
471
|
+
|
|
472
|
+
默认接口请求频率限制:20次/秒。
|
|
473
473
|
*/
|
|
474
|
-
|
|
474
|
+
GeneralBasicOCR(req: GeneralBasicOCRRequest, cb?: (error: string, rep: GeneralBasicOCRResponse) => void): Promise<GeneralBasicOCRResponse>;
|
|
475
475
|
/**
|
|
476
476
|
* 本接口支持对卡式港澳台通行证的识别,包括签发地点、签发机关、有效期限、性别、出生日期、英文姓名、姓名、证件号等字段。
|
|
477
477
|
|
|
@@ -695,12 +695,6 @@ 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>;
|
|
704
698
|
/**
|
|
705
699
|
* 本接口支持机动车销售统一发票和二手车销售统一发票的识别,包括发票号码、发票代码、合计金额、合计税额等二十多个字段。
|
|
706
700
|
|
|
@@ -28,72 +28,12 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
28
28
|
super("ocr.tencentcloudapi.com", "2018-11-19", clientConfig);
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
|
|
33
|
-
适用于印刷文档识别、网络图片识别、广告图文字识别、街景店招牌识别、菜单识别、视频标题识别、头像文字识别等场景。
|
|
34
|
-
|
|
35
|
-
产品优势:支持自动识别语言类型,可返回文本框坐标信息,对于倾斜文本支持自动旋转纠正。
|
|
36
|
-
|
|
37
|
-
通用印刷体识别不同版本的差异如下:
|
|
38
|
-
<table style="width:715px">
|
|
39
|
-
<thead>
|
|
40
|
-
<tr>
|
|
41
|
-
<th style="width:150px"></th>
|
|
42
|
-
<th style="width:200px">【荐】通用印刷体识别</th>
|
|
43
|
-
<th ><a href="https://cloud.tencent.com/document/product/866/34937">【荐】通用印刷体识别(高精度版)</a></th>
|
|
44
|
-
<th><a href="https://cloud.tencent.com/document/product/866/37831">通用印刷体识别(精简版)</a></th>
|
|
45
|
-
</tr>
|
|
46
|
-
</thead>
|
|
47
|
-
<tbody>
|
|
48
|
-
<tr>
|
|
49
|
-
<td> 适用场景</td>
|
|
50
|
-
<td>适用于所有通用场景的印刷体识别</td>
|
|
51
|
-
<td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>
|
|
52
|
-
<td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>
|
|
53
|
-
</tr>
|
|
54
|
-
<tr>
|
|
55
|
-
<td>识别准确率</td>
|
|
56
|
-
<td>96%</td>
|
|
57
|
-
<td>99%</td>
|
|
58
|
-
<td>91%</td>
|
|
59
|
-
</tr>
|
|
60
|
-
<tr>
|
|
61
|
-
<td>价格</td>
|
|
62
|
-
<td>中</td>
|
|
63
|
-
<td>高</td>
|
|
64
|
-
<td>低</td>
|
|
65
|
-
</tr>
|
|
66
|
-
<tr>
|
|
67
|
-
<td>支持的语言</td>
|
|
68
|
-
<td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
|
|
69
|
-
<td>中文、英文、中英文</td>
|
|
70
|
-
<td>中文、英文、中英文</td>
|
|
71
|
-
</tr>
|
|
72
|
-
<tr>
|
|
73
|
-
<td>自动语言检测</td>
|
|
74
|
-
<td>支持</td>
|
|
75
|
-
<td>支持</td>
|
|
76
|
-
<td>支持</td>
|
|
77
|
-
</tr>
|
|
78
|
-
<tr>
|
|
79
|
-
<td>返回文本行坐标</td>
|
|
80
|
-
<td>支持</td>
|
|
81
|
-
<td>支持</td>
|
|
82
|
-
<td>支持</td>
|
|
83
|
-
</tr>
|
|
84
|
-
<tr>
|
|
85
|
-
<td>自动旋转纠正</td>
|
|
86
|
-
<td>支持旋转识别,返回角度信息</td>
|
|
87
|
-
<td>支持旋转识别,返回角度信息</td>
|
|
88
|
-
<td>支持旋转识别,返回角度信息</td>
|
|
89
|
-
</tr>
|
|
90
|
-
</tbody>
|
|
91
|
-
</table>
|
|
31
|
+
* 本接口支持病案首页、费用清单、结算单、医疗发票四种保险理赔单据的文本识别和结构化输出。
|
|
92
32
|
|
|
93
|
-
默认接口请求频率限制:
|
|
33
|
+
默认接口请求频率限制:1次/秒。
|
|
94
34
|
*/
|
|
95
|
-
async
|
|
96
|
-
return this.request("
|
|
35
|
+
async InsuranceBillOCR(req, cb) {
|
|
36
|
+
return this.request("InsuranceBillOCR", req, cb);
|
|
97
37
|
}
|
|
98
38
|
/**
|
|
99
39
|
* 文本图像增强是面向文档类图片提供的图像增强处理能力,包括切边增强、图像矫正、阴影去除、摩尔纹去除等;可以有效优化文档类的图片质量,提升文字的清晰度。
|
|
@@ -127,14 +67,6 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
127
67
|
async BusinessCardOCR(req, cb) {
|
|
128
68
|
return this.request("BusinessCardOCR", req, cb);
|
|
129
69
|
}
|
|
130
|
-
/**
|
|
131
|
-
* 本接口支持病案首页、费用清单、结算单、医疗发票四种保险理赔单据的文本识别和结构化输出。
|
|
132
|
-
|
|
133
|
-
默认接口请求频率限制:1次/秒。
|
|
134
|
-
*/
|
|
135
|
-
async InsuranceBillOCR(req, cb) {
|
|
136
|
-
return this.request("InsuranceBillOCR", req, cb);
|
|
137
|
-
}
|
|
138
70
|
/**
|
|
139
71
|
* 本接口支持网约车行程单关键字段的识别,包括行程起止日期、上车时间、起点、终点、里程、金额等字段。
|
|
140
72
|
|
|
@@ -297,6 +229,14 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
297
229
|
async GeneralAccurateOCR(req, cb) {
|
|
298
230
|
return this.request("GeneralAccurateOCR", req, cb);
|
|
299
231
|
}
|
|
232
|
+
/**
|
|
233
|
+
* 本接口支持机票行程单关键字段的识别,包括旅客姓名、有效身份证件号码、电子客票号码、验证码、填开单位、其他税费、燃油附加费、民航发展基金、保险费、销售单位代号、始发地、目的地、航班号、时间、日期、座位等级、承运人、发票消费类型、票价、合计金额、填开日期、国内国际标签、印刷序号、客票级别/类别、客票生效日期、有效期截止日期、免费行李等字段,支持航班信息多行明细输出。
|
|
234
|
+
|
|
235
|
+
默认接口请求频率限制:5次/秒。
|
|
236
|
+
*/
|
|
237
|
+
async FlightInvoiceOCR(req, cb) {
|
|
238
|
+
return this.request("FlightInvoiceOCR", req, cb);
|
|
239
|
+
}
|
|
300
240
|
/**
|
|
301
241
|
* 本接口支持集装箱箱门信息识别,识别字段包括集装箱箱号、类型、总重量、有效承重、容量、自身重量,具备集装箱箱号、类型不完整或者不清晰的告警功能。
|
|
302
242
|
默认接口请求频率限制:5次/秒。
|
|
@@ -569,12 +509,72 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
569
509
|
return this.request("DutyPaidProofOCR", req, cb);
|
|
570
510
|
}
|
|
571
511
|
/**
|
|
572
|
-
*
|
|
512
|
+
* 本接口支持图像整体文字的检测和识别。可以识别中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语,阿拉伯语20种语言,且各种语言均支持与英文混合的文字识别。
|
|
573
513
|
|
|
574
|
-
|
|
514
|
+
适用于印刷文档识别、网络图片识别、广告图文字识别、街景店招牌识别、菜单识别、视频标题识别、头像文字识别等场景。
|
|
515
|
+
|
|
516
|
+
产品优势:支持自动识别语言类型,可返回文本框坐标信息,对于倾斜文本支持自动旋转纠正。
|
|
517
|
+
|
|
518
|
+
通用印刷体识别不同版本的差异如下:
|
|
519
|
+
<table style="width:715px">
|
|
520
|
+
<thead>
|
|
521
|
+
<tr>
|
|
522
|
+
<th style="width:150px"></th>
|
|
523
|
+
<th style="width:200px">【荐】通用印刷体识别</th>
|
|
524
|
+
<th ><a href="https://cloud.tencent.com/document/product/866/34937">【荐】通用印刷体识别(高精度版)</a></th>
|
|
525
|
+
<th><a href="https://cloud.tencent.com/document/product/866/37831">通用印刷体识别(精简版)</a></th>
|
|
526
|
+
</tr>
|
|
527
|
+
</thead>
|
|
528
|
+
<tbody>
|
|
529
|
+
<tr>
|
|
530
|
+
<td> 适用场景</td>
|
|
531
|
+
<td>适用于所有通用场景的印刷体识别</td>
|
|
532
|
+
<td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>
|
|
533
|
+
<td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>
|
|
534
|
+
</tr>
|
|
535
|
+
<tr>
|
|
536
|
+
<td>识别准确率</td>
|
|
537
|
+
<td>96%</td>
|
|
538
|
+
<td>99%</td>
|
|
539
|
+
<td>91%</td>
|
|
540
|
+
</tr>
|
|
541
|
+
<tr>
|
|
542
|
+
<td>价格</td>
|
|
543
|
+
<td>中</td>
|
|
544
|
+
<td>高</td>
|
|
545
|
+
<td>低</td>
|
|
546
|
+
</tr>
|
|
547
|
+
<tr>
|
|
548
|
+
<td>支持的语言</td>
|
|
549
|
+
<td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
|
|
550
|
+
<td>中文、英文、中英文</td>
|
|
551
|
+
<td>中文、英文、中英文</td>
|
|
552
|
+
</tr>
|
|
553
|
+
<tr>
|
|
554
|
+
<td>自动语言检测</td>
|
|
555
|
+
<td>支持</td>
|
|
556
|
+
<td>支持</td>
|
|
557
|
+
<td>支持</td>
|
|
558
|
+
</tr>
|
|
559
|
+
<tr>
|
|
560
|
+
<td>返回文本行坐标</td>
|
|
561
|
+
<td>支持</td>
|
|
562
|
+
<td>支持</td>
|
|
563
|
+
<td>支持</td>
|
|
564
|
+
</tr>
|
|
565
|
+
<tr>
|
|
566
|
+
<td>自动旋转纠正</td>
|
|
567
|
+
<td>支持旋转识别,返回角度信息</td>
|
|
568
|
+
<td>支持旋转识别,返回角度信息</td>
|
|
569
|
+
<td>支持旋转识别,返回角度信息</td>
|
|
570
|
+
</tr>
|
|
571
|
+
</tbody>
|
|
572
|
+
</table>
|
|
573
|
+
|
|
574
|
+
默认接口请求频率限制:20次/秒。
|
|
575
575
|
*/
|
|
576
|
-
async
|
|
577
|
-
return this.request("
|
|
576
|
+
async GeneralBasicOCR(req, cb) {
|
|
577
|
+
return this.request("GeneralBasicOCR", req, cb);
|
|
578
578
|
}
|
|
579
579
|
/**
|
|
580
580
|
* 本接口支持对卡式港澳台通行证的识别,包括签发地点、签发机关、有效期限、性别、出生日期、英文姓名、姓名、证件号等字段。
|
|
@@ -853,14 +853,6 @@ class Client extends 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
|
-
}
|
|
864
856
|
/**
|
|
865
857
|
* 本接口支持机动车销售统一发票和二手车销售统一发票的识别,包括发票号码、发票代码、合计金额、合计税额等二十多个字段。
|
|
866
858
|
|