tencentcloud-sdk-nodejs-ocr 4.0.567 → 4.0.568
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 +160 -0
- package/SERVICE_CHANGELOG.md +259 -296
- package/package.json +1 -1
- package/products.md +21 -21
- package/src/services/ocr/v20181119/ocr_client.ts +30 -15
- package/src/services/ocr/v20181119/ocr_models.ts +34 -34
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +30 -15
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +30 -15
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +34 -34
@@ -157,8 +157,10 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
157
157
|
return this.request("VatInvoiceVerifyNew", req, cb);
|
158
158
|
}
|
159
159
|
/**
|
160
|
-
|
161
|
-
|
160
|
+
* 本接口支持条形码和二维码的识别(包括 DataMatrix 和 PDF417)。
|
161
|
+
|
162
|
+
默认接口请求频率限制:5次/秒。
|
163
|
+
*/
|
162
164
|
async QrcodeOCR(req, cb) {
|
163
165
|
return this.request("QrcodeOCR", req, cb);
|
164
166
|
}
|
@@ -240,7 +242,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
240
242
|
}
|
241
243
|
/**
|
242
244
|
* 本接口支持集装箱箱门信息识别,识别字段包括集装箱箱号、类型、总重量、有效承重、容量、自身重量,具备集装箱箱号、类型不完整或者不清晰的告警功能。
|
243
|
-
|
245
|
+
默认接口请求频率限制:5次/秒。
|
244
246
|
*/
|
245
247
|
async RecognizeContainerOCR(req, cb) {
|
246
248
|
return this.request("RecognizeContainerOCR", req, cb);
|
@@ -252,8 +254,9 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
252
254
|
return this.request("RecognizeTableAccurateOCR", req, cb);
|
253
255
|
}
|
254
256
|
/**
|
255
|
-
|
256
|
-
|
257
|
+
* 本接口支持多张、多类型票据的混合检测和自动分类,返回对应票据类型。目前已支持增值税发票、增值税发票(卷票)、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票、酒店账单、客运限额发票、购物小票、完税证明共15种票据。
|
258
|
+
默认接口请求频率限制:5次/秒。
|
259
|
+
*/
|
257
260
|
async MixedInvoiceDetect(req, cb) {
|
258
261
|
return this.request("MixedInvoiceDetect", req, cb);
|
259
262
|
}
|
@@ -306,6 +309,8 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
306
309
|
/**
|
307
310
|
* 本接口支持房产证关键字段的识别,包括房地产权利人、共有情况、登记时间、规划用途、房屋性质、房屋坐落等。
|
308
311
|
目前接口对合肥、成都、佛山三个城市的房产证版式识别较好。
|
312
|
+
|
313
|
+
默认接口请求频率限制:5次/秒。
|
309
314
|
*/
|
310
315
|
async PropOwnerCertOCR(req, cb) {
|
311
316
|
return this.request("PropOwnerCertOCR", req, cb);
|
@@ -473,14 +478,18 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
473
478
|
return this.request("GeneralBasicOCR", req, cb);
|
474
479
|
}
|
475
480
|
/**
|
476
|
-
|
477
|
-
|
481
|
+
* 本接口支持对卡式港澳台通行证的识别,包括签发地点、签发机关、有效期限、性别、出生日期、英文姓名、姓名、证件号等字段。
|
482
|
+
|
483
|
+
默认接口请求频率限制:10次/秒。
|
484
|
+
*/
|
478
485
|
async PermitOCR(req, cb) {
|
479
486
|
return this.request("PermitOCR", req, cb);
|
480
487
|
}
|
481
488
|
/**
|
482
|
-
|
483
|
-
|
489
|
+
* 本接口支持组织机构代码证关键字段的识别,包括代码、有效期、地址、机构名称等。
|
490
|
+
|
491
|
+
默认接口请求频率限制:5次/秒。
|
492
|
+
*/
|
484
493
|
async OrgCodeCertOCR(req, cb) {
|
485
494
|
return this.request("OrgCodeCertOCR", req, cb);
|
486
495
|
}
|
@@ -491,8 +500,10 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
491
500
|
return this.request("TextDetect", req, cb);
|
492
501
|
}
|
493
502
|
/**
|
494
|
-
|
495
|
-
|
503
|
+
* 本接口支持常见银行票据的自动分类和识别。切片识别包括金融行业常见票据的重要切片字段识别,包括金额、账号、日期、凭证号码等。(金融票据切片:金融票据中待识别字段及其周围局部区域的裁剪图像。)
|
504
|
+
|
505
|
+
默认接口请求频率限制:5次/秒。
|
506
|
+
*/
|
496
507
|
async FinanBillSliceOCR(req, cb) {
|
497
508
|
return this.request("FinanBillSliceOCR", req, cb);
|
498
509
|
}
|
@@ -773,8 +784,10 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
773
784
|
return this.request("DriverLicenseOCR", req, cb);
|
774
785
|
}
|
775
786
|
/**
|
776
|
-
|
777
|
-
|
787
|
+
* 智能识别并结构化港澳台居民来往内地通行证正面全部字段,包含中文姓名、英文姓名、性别、出生日期、签发机关、有效期限、证件号、签发地点、签发次数、证件类别。
|
788
|
+
|
789
|
+
默认接口请求频率限制:20次/秒。
|
790
|
+
*/
|
778
791
|
async MainlandPermitOCR(req, cb) {
|
779
792
|
return this.request("MainlandPermitOCR", req, cb);
|
780
793
|
}
|
@@ -787,8 +800,10 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
787
800
|
return this.request("FormulaOCR", req, cb);
|
788
801
|
}
|
789
802
|
/**
|
790
|
-
|
791
|
-
|
803
|
+
* 本接口支持中国大陆地区护照个人资料页多个字段的检测与识别。已支持字段包括英文姓名、中文姓名、国家码、护照号、出生地、出生日期、国籍英文、性别英文、有效期、签发地点英文、签发日期、持证人签名、护照机读码(MRZ码)等。
|
804
|
+
|
805
|
+
默认接口请求频率限制:10次/秒。
|
806
|
+
*/
|
792
807
|
async PassportOCR(req, cb) {
|
793
808
|
return this.request("PassportOCR", req, cb);
|
794
809
|
}
|
@@ -805,35 +805,35 @@ export interface PermitOCRResponse {
|
|
805
805
|
/**
|
806
806
|
* 姓名
|
807
807
|
*/
|
808
|
-
Name
|
808
|
+
Name?: string;
|
809
809
|
/**
|
810
810
|
* 英文姓名
|
811
811
|
*/
|
812
|
-
EnglishName
|
812
|
+
EnglishName?: string;
|
813
813
|
/**
|
814
814
|
* 证件号
|
815
815
|
*/
|
816
|
-
Number
|
816
|
+
Number?: string;
|
817
817
|
/**
|
818
818
|
* 性别
|
819
819
|
*/
|
820
|
-
Sex
|
820
|
+
Sex?: string;
|
821
821
|
/**
|
822
822
|
* 有效期限
|
823
823
|
*/
|
824
|
-
ValidDate
|
824
|
+
ValidDate?: string;
|
825
825
|
/**
|
826
826
|
* 签发机关
|
827
827
|
*/
|
828
|
-
IssueAuthority
|
828
|
+
IssueAuthority?: string;
|
829
829
|
/**
|
830
830
|
* 签发地点
|
831
831
|
*/
|
832
|
-
IssueAddress
|
832
|
+
IssueAddress?: string;
|
833
833
|
/**
|
834
834
|
* 出生日期
|
835
835
|
*/
|
836
|
-
Birthday
|
836
|
+
Birthday?: string;
|
837
837
|
/**
|
838
838
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
839
839
|
*/
|
@@ -1444,11 +1444,11 @@ export interface QrcodeOCRResponse {
|
|
1444
1444
|
/**
|
1445
1445
|
* 二维码/条形码识别结果信息,具体内容请点击左侧链接。
|
1446
1446
|
*/
|
1447
|
-
CodeResults
|
1447
|
+
CodeResults?: Array<QrcodeResultsInfo>;
|
1448
1448
|
/**
|
1449
1449
|
* 图片大小,具体内容请点击左侧链接。
|
1450
1450
|
*/
|
1451
|
-
ImgSize
|
1451
|
+
ImgSize?: QrcodeImgSize;
|
1452
1452
|
/**
|
1453
1453
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1454
1454
|
*/
|
@@ -1664,27 +1664,27 @@ export interface PropOwnerCertOCRResponse {
|
|
1664
1664
|
/**
|
1665
1665
|
* 房地产权利人
|
1666
1666
|
*/
|
1667
|
-
Owner
|
1667
|
+
Owner?: string;
|
1668
1668
|
/**
|
1669
1669
|
* 共有情况
|
1670
1670
|
*/
|
1671
|
-
Possession
|
1671
|
+
Possession?: string;
|
1672
1672
|
/**
|
1673
1673
|
* 登记时间
|
1674
1674
|
*/
|
1675
|
-
RegisterTime
|
1675
|
+
RegisterTime?: string;
|
1676
1676
|
/**
|
1677
1677
|
* 规划用途
|
1678
1678
|
*/
|
1679
|
-
Purpose
|
1679
|
+
Purpose?: string;
|
1680
1680
|
/**
|
1681
1681
|
* 房屋性质
|
1682
1682
|
*/
|
1683
|
-
Nature
|
1683
|
+
Nature?: string;
|
1684
1684
|
/**
|
1685
1685
|
* 房地坐落
|
1686
1686
|
*/
|
1687
|
-
Location
|
1687
|
+
Location?: string;
|
1688
1688
|
/**
|
1689
1689
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1690
1690
|
*/
|
@@ -2022,7 +2022,7 @@ export interface MixedInvoiceDetectResponse {
|
|
2022
2022
|
/**
|
2023
2023
|
* 检测出的票据类型列表,具体内容请点击左侧链接。
|
2024
2024
|
*/
|
2025
|
-
InvoiceDetectInfos
|
2025
|
+
InvoiceDetectInfos?: Array<InvoiceDetectInfo>;
|
2026
2026
|
/**
|
2027
2027
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2028
2028
|
*/
|
@@ -2729,19 +2729,19 @@ export interface OrgCodeCertOCRResponse {
|
|
2729
2729
|
/**
|
2730
2730
|
* 代码
|
2731
2731
|
*/
|
2732
|
-
OrgCode
|
2732
|
+
OrgCode?: string;
|
2733
2733
|
/**
|
2734
2734
|
* 机构名称
|
2735
2735
|
*/
|
2736
|
-
Name
|
2736
|
+
Name?: string;
|
2737
2737
|
/**
|
2738
2738
|
* 地址
|
2739
2739
|
*/
|
2740
|
-
Address
|
2740
|
+
Address?: string;
|
2741
2741
|
/**
|
2742
2742
|
* 有效期
|
2743
2743
|
*/
|
2744
|
-
ValidDate
|
2744
|
+
ValidDate?: string;
|
2745
2745
|
/**
|
2746
2746
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2747
2747
|
*/
|
@@ -4299,14 +4299,14 @@ export interface FinanBillSliceOCRRequest {
|
|
4299
4299
|
/**
|
4300
4300
|
* 图片的 Base64 值。
|
4301
4301
|
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
4302
|
-
支持的图片大小:所下载图片经Base64编码后不超过
|
4302
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
4303
4303
|
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
4304
4304
|
*/
|
4305
4305
|
ImageBase64?: string;
|
4306
4306
|
/**
|
4307
4307
|
* 图片的 Url 地址。
|
4308
4308
|
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
4309
|
-
支持的图片大小:所下载图片经 Base64 编码后不超过
|
4309
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
4310
4310
|
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
4311
4311
|
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
4312
4312
|
*/
|
@@ -5546,47 +5546,47 @@ export interface MainlandPermitOCRResponse {
|
|
5546
5546
|
/**
|
5547
5547
|
* 中文姓名
|
5548
5548
|
*/
|
5549
|
-
Name
|
5549
|
+
Name?: string;
|
5550
5550
|
/**
|
5551
5551
|
* 英文姓名
|
5552
5552
|
*/
|
5553
|
-
EnglishName
|
5553
|
+
EnglishName?: string;
|
5554
5554
|
/**
|
5555
5555
|
* 性别
|
5556
5556
|
*/
|
5557
|
-
Sex
|
5557
|
+
Sex?: string;
|
5558
5558
|
/**
|
5559
5559
|
* 出生日期
|
5560
5560
|
*/
|
5561
|
-
Birthday
|
5561
|
+
Birthday?: string;
|
5562
5562
|
/**
|
5563
5563
|
* 签发机关
|
5564
5564
|
*/
|
5565
|
-
IssueAuthority
|
5565
|
+
IssueAuthority?: string;
|
5566
5566
|
/**
|
5567
5567
|
* 有效期限
|
5568
5568
|
*/
|
5569
|
-
ValidDate
|
5569
|
+
ValidDate?: string;
|
5570
5570
|
/**
|
5571
5571
|
* 证件号
|
5572
5572
|
*/
|
5573
|
-
Number
|
5573
|
+
Number?: string;
|
5574
5574
|
/**
|
5575
5575
|
* 签发地点
|
5576
5576
|
*/
|
5577
|
-
IssueAddress
|
5577
|
+
IssueAddress?: string;
|
5578
5578
|
/**
|
5579
5579
|
* 签发次数
|
5580
5580
|
*/
|
5581
|
-
IssueNumber
|
5581
|
+
IssueNumber?: string;
|
5582
5582
|
/**
|
5583
5583
|
* 证件类别, 如:台湾居民来往大陆通行证、港澳居民来往内地通行证。
|
5584
5584
|
*/
|
5585
|
-
Type
|
5585
|
+
Type?: string;
|
5586
5586
|
/**
|
5587
5587
|
* RetProfile为True时返回头像字段, Base64编码
|
5588
5588
|
*/
|
5589
|
-
Profile
|
5589
|
+
Profile?: string;
|
5590
5590
|
/**
|
5591
5591
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5592
5592
|
*/
|