tencentcloud-sdk-nodejs-ocr 4.0.354 → 4.0.357
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 +956 -0
- package/SERVICE_CHANGELOG.md +1040 -31
- package/package.json +1 -1
- package/products.md +38 -34
- package/src/services/ocr/v20181119/ocr_client.ts +39 -2
- package/src/services/ocr/v20181119/ocr_models.ts +339 -10
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +14 -2
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +19 -1
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +286 -10
|
@@ -333,6 +333,30 @@ export interface FlightInvoiceOCRRequest {
|
|
|
333
333
|
*/
|
|
334
334
|
ImageUrl?: string;
|
|
335
335
|
}
|
|
336
|
+
/**
|
|
337
|
+
* RecognizePhilippinesDrivingLicenseOCR请求参数结构体
|
|
338
|
+
*/
|
|
339
|
+
export interface RecognizePhilippinesDrivingLicenseOCRRequest {
|
|
340
|
+
/**
|
|
341
|
+
* 是否返回人像照片。
|
|
342
|
+
*/
|
|
343
|
+
ReturnHeadImage: boolean;
|
|
344
|
+
/**
|
|
345
|
+
* 图片的 Base64 值。
|
|
346
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
|
347
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
|
348
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
349
|
+
*/
|
|
350
|
+
ImageBase64?: string;
|
|
351
|
+
/**
|
|
352
|
+
* 图片的 Url 地址。
|
|
353
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
|
354
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
|
355
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
|
356
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
357
|
+
*/
|
|
358
|
+
ImageUrl?: string;
|
|
359
|
+
}
|
|
336
360
|
/**
|
|
337
361
|
* MLIDPassportOCR请求参数结构体
|
|
338
362
|
*/
|
|
@@ -948,6 +972,30 @@ export interface EnterpriseLicenseOCRResponse {
|
|
|
948
972
|
*/
|
|
949
973
|
RequestId?: string;
|
|
950
974
|
}
|
|
975
|
+
/**
|
|
976
|
+
* RecognizePhilippinesVoteIDOCR请求参数结构体
|
|
977
|
+
*/
|
|
978
|
+
export interface RecognizePhilippinesVoteIDOCRRequest {
|
|
979
|
+
/**
|
|
980
|
+
* 是否返回人像照片。
|
|
981
|
+
*/
|
|
982
|
+
ReturnHeadImage: boolean;
|
|
983
|
+
/**
|
|
984
|
+
* 图片的 Base64 值。
|
|
985
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
|
986
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
|
987
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
988
|
+
*/
|
|
989
|
+
ImageBase64?: string;
|
|
990
|
+
/**
|
|
991
|
+
* 图片的 Url 地址。
|
|
992
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
|
993
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
|
994
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
|
995
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
996
|
+
*/
|
|
997
|
+
ImageUrl?: string;
|
|
998
|
+
}
|
|
951
999
|
/**
|
|
952
1000
|
* 通用机打发票信息
|
|
953
1001
|
*/
|
|
@@ -1718,6 +1766,21 @@ export interface MixedInvoiceDetectResponse {
|
|
|
1718
1766
|
*/
|
|
1719
1767
|
RequestId?: string;
|
|
1720
1768
|
}
|
|
1769
|
+
/**
|
|
1770
|
+
* RideHailingDriverLicenseOCR请求参数结构体
|
|
1771
|
+
*/
|
|
1772
|
+
export interface RideHailingDriverLicenseOCRRequest {
|
|
1773
|
+
/**
|
|
1774
|
+
* 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
|
|
1775
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
1776
|
+
*/
|
|
1777
|
+
ImageBase64?: string;
|
|
1778
|
+
/**
|
|
1779
|
+
* 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
|
|
1780
|
+
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
|
1781
|
+
*/
|
|
1782
|
+
ImageUrl?: string;
|
|
1783
|
+
}
|
|
1721
1784
|
/**
|
|
1722
1785
|
* 发票人员信息
|
|
1723
1786
|
*/
|
|
@@ -1950,6 +2013,63 @@ export interface CellContent {
|
|
|
1950
2013
|
*/
|
|
1951
2014
|
WordSize: number;
|
|
1952
2015
|
}
|
|
2016
|
+
/**
|
|
2017
|
+
* RecognizePhilippinesDrivingLicenseOCR返回参数结构体
|
|
2018
|
+
*/
|
|
2019
|
+
export interface RecognizePhilippinesDrivingLicenseOCRResponse {
|
|
2020
|
+
/**
|
|
2021
|
+
* 人像照片Base64后的结果
|
|
2022
|
+
*/
|
|
2023
|
+
HeadPortrait: TextDetectionResult;
|
|
2024
|
+
/**
|
|
2025
|
+
* 姓名
|
|
2026
|
+
*/
|
|
2027
|
+
Name: TextDetectionResult;
|
|
2028
|
+
/**
|
|
2029
|
+
* 姓氏
|
|
2030
|
+
*/
|
|
2031
|
+
LastName: TextDetectionResult;
|
|
2032
|
+
/**
|
|
2033
|
+
* 首姓名
|
|
2034
|
+
*/
|
|
2035
|
+
FirstName: TextDetectionResult;
|
|
2036
|
+
/**
|
|
2037
|
+
* 中间姓名
|
|
2038
|
+
*/
|
|
2039
|
+
MiddleName: TextDetectionResult;
|
|
2040
|
+
/**
|
|
2041
|
+
* 国籍
|
|
2042
|
+
*/
|
|
2043
|
+
Nationality: TextDetectionResult;
|
|
2044
|
+
/**
|
|
2045
|
+
* 性别
|
|
2046
|
+
*/
|
|
2047
|
+
Sex: TextDetectionResult;
|
|
2048
|
+
/**
|
|
2049
|
+
* 地址
|
|
2050
|
+
*/
|
|
2051
|
+
Address: TextDetectionResult;
|
|
2052
|
+
/**
|
|
2053
|
+
* 证号
|
|
2054
|
+
*/
|
|
2055
|
+
LicenseNo: TextDetectionResult;
|
|
2056
|
+
/**
|
|
2057
|
+
* 有效期
|
|
2058
|
+
*/
|
|
2059
|
+
ExpiresDate: TextDetectionResult;
|
|
2060
|
+
/**
|
|
2061
|
+
* 机构代码
|
|
2062
|
+
*/
|
|
2063
|
+
AgencyCode: TextDetectionResult;
|
|
2064
|
+
/**
|
|
2065
|
+
* 出生日期
|
|
2066
|
+
*/
|
|
2067
|
+
Birthday: TextDetectionResult;
|
|
2068
|
+
/**
|
|
2069
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2070
|
+
*/
|
|
2071
|
+
RequestId?: string;
|
|
2072
|
+
}
|
|
1953
2073
|
/**
|
|
1954
2074
|
* MixedInvoiceOCR返回参数结构体
|
|
1955
2075
|
*/
|
|
@@ -3171,6 +3291,79 @@ export interface TextVehicleBack {
|
|
|
3171
3291
|
*/
|
|
3172
3292
|
TotalQuasiMass: string;
|
|
3173
3293
|
}
|
|
3294
|
+
/**
|
|
3295
|
+
* RecognizeIndonesiaIDCardOCR返回参数结构体
|
|
3296
|
+
*/
|
|
3297
|
+
export interface RecognizeIndonesiaIDCardOCRResponse {
|
|
3298
|
+
/**
|
|
3299
|
+
* 证件号码
|
|
3300
|
+
*/
|
|
3301
|
+
NIK: string;
|
|
3302
|
+
/**
|
|
3303
|
+
* 姓名
|
|
3304
|
+
*/
|
|
3305
|
+
Nama: string;
|
|
3306
|
+
/**
|
|
3307
|
+
* 出生地/出生时间
|
|
3308
|
+
*/
|
|
3309
|
+
TempatTglLahir: string;
|
|
3310
|
+
/**
|
|
3311
|
+
* 性别
|
|
3312
|
+
*/
|
|
3313
|
+
JenisKelamin: string;
|
|
3314
|
+
/**
|
|
3315
|
+
* 血型
|
|
3316
|
+
*/
|
|
3317
|
+
GolDarah: string;
|
|
3318
|
+
/**
|
|
3319
|
+
* 地址
|
|
3320
|
+
*/
|
|
3321
|
+
Alamat: string;
|
|
3322
|
+
/**
|
|
3323
|
+
* 街道
|
|
3324
|
+
*/
|
|
3325
|
+
RTRW: string;
|
|
3326
|
+
/**
|
|
3327
|
+
* 村
|
|
3328
|
+
*/
|
|
3329
|
+
KelDesa: string;
|
|
3330
|
+
/**
|
|
3331
|
+
* 地区
|
|
3332
|
+
*/
|
|
3333
|
+
Kecamatan: string;
|
|
3334
|
+
/**
|
|
3335
|
+
* 宗教信仰
|
|
3336
|
+
*/
|
|
3337
|
+
Agama: string;
|
|
3338
|
+
/**
|
|
3339
|
+
* 婚姻状况
|
|
3340
|
+
*/
|
|
3341
|
+
StatusPerkawinan: string;
|
|
3342
|
+
/**
|
|
3343
|
+
* 职业
|
|
3344
|
+
*/
|
|
3345
|
+
Perkerjaan: string;
|
|
3346
|
+
/**
|
|
3347
|
+
* 国籍
|
|
3348
|
+
*/
|
|
3349
|
+
KewargaNegaraan: string;
|
|
3350
|
+
/**
|
|
3351
|
+
* 身份证有效期限
|
|
3352
|
+
*/
|
|
3353
|
+
BerlakuHingga: string;
|
|
3354
|
+
/**
|
|
3355
|
+
* 发证日期
|
|
3356
|
+
*/
|
|
3357
|
+
IssuedDate: string;
|
|
3358
|
+
/**
|
|
3359
|
+
* 人像截图
|
|
3360
|
+
*/
|
|
3361
|
+
Photo: string;
|
|
3362
|
+
/**
|
|
3363
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
3364
|
+
*/
|
|
3365
|
+
RequestId?: string;
|
|
3366
|
+
}
|
|
3174
3367
|
/**
|
|
3175
3368
|
* GeneralEfficientOCR请求参数结构体
|
|
3176
3369
|
*/
|
|
@@ -3354,6 +3547,37 @@ export interface VerifyEnterpriseFourFactorsRequest {
|
|
|
3354
3547
|
*/
|
|
3355
3548
|
EnterpriseMark: string;
|
|
3356
3549
|
}
|
|
3550
|
+
/**
|
|
3551
|
+
* RecognizeIndonesiaIDCardOCR请求参数结构体
|
|
3552
|
+
*/
|
|
3553
|
+
export interface RecognizeIndonesiaIDCardOCRRequest {
|
|
3554
|
+
/**
|
|
3555
|
+
* 图片的 Base64 值。
|
|
3556
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
|
3557
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
|
3558
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
3559
|
+
*/
|
|
3560
|
+
ImageBase64?: string;
|
|
3561
|
+
/**
|
|
3562
|
+
* 图片的 Url 地址。
|
|
3563
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
|
3564
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
|
3565
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
|
3566
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
3567
|
+
*/
|
|
3568
|
+
ImageUrl?: string;
|
|
3569
|
+
/**
|
|
3570
|
+
* 是否返回人像照片。
|
|
3571
|
+
*/
|
|
3572
|
+
ReturnHeadImage?: boolean;
|
|
3573
|
+
/**
|
|
3574
|
+
* 场景参数,默认值为V1
|
|
3575
|
+
可选值:
|
|
3576
|
+
V1
|
|
3577
|
+
V2
|
|
3578
|
+
*/
|
|
3579
|
+
Scene?: string;
|
|
3580
|
+
}
|
|
3357
3581
|
/**
|
|
3358
3582
|
* 轮船票字段信息
|
|
3359
3583
|
*/
|
|
@@ -3438,6 +3662,19 @@ export interface FlightInvoiceOCRResponse {
|
|
|
3438
3662
|
*/
|
|
3439
3663
|
RequestId?: string;
|
|
3440
3664
|
}
|
|
3665
|
+
/**
|
|
3666
|
+
* 识别结果
|
|
3667
|
+
*/
|
|
3668
|
+
export interface TextDetectionResult {
|
|
3669
|
+
/**
|
|
3670
|
+
* 识别出的文本行内容
|
|
3671
|
+
*/
|
|
3672
|
+
Value: string;
|
|
3673
|
+
/**
|
|
3674
|
+
* 坐标,以四个顶点坐标表示
|
|
3675
|
+
*/
|
|
3676
|
+
Polygon: Array<Coord>;
|
|
3677
|
+
}
|
|
3441
3678
|
/**
|
|
3442
3679
|
* InstitutionOCR请求参数结构体
|
|
3443
3680
|
*/
|
|
@@ -4094,19 +4331,49 @@ export interface RecognizeHealthCodeOCRResponse {
|
|
|
4094
4331
|
RequestId?: string;
|
|
4095
4332
|
}
|
|
4096
4333
|
/**
|
|
4097
|
-
*
|
|
4334
|
+
* RecognizePhilippinesVoteIDOCR返回参数结构体
|
|
4098
4335
|
*/
|
|
4099
|
-
export interface
|
|
4336
|
+
export interface RecognizePhilippinesVoteIDOCRResponse {
|
|
4100
4337
|
/**
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
ImageBase64?: string;
|
|
4338
|
+
* 人像照片Base64后的结果
|
|
4339
|
+
*/
|
|
4340
|
+
HeadPortrait: TextDetectionResult;
|
|
4105
4341
|
/**
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4342
|
+
* 菲律宾VoteID的VIN
|
|
4343
|
+
*/
|
|
4344
|
+
VIN: TextDetectionResult;
|
|
4345
|
+
/**
|
|
4346
|
+
* 姓名
|
|
4347
|
+
*/
|
|
4348
|
+
FirstName: TextDetectionResult;
|
|
4349
|
+
/**
|
|
4350
|
+
* 姓氏
|
|
4351
|
+
*/
|
|
4352
|
+
LastName: TextDetectionResult;
|
|
4353
|
+
/**
|
|
4354
|
+
* 出生日期
|
|
4355
|
+
*/
|
|
4356
|
+
Birthday: TextDetectionResult;
|
|
4357
|
+
/**
|
|
4358
|
+
* 婚姻状况
|
|
4359
|
+
*/
|
|
4360
|
+
CivilStatus: TextDetectionResult;
|
|
4361
|
+
/**
|
|
4362
|
+
* 国籍
|
|
4363
|
+
*/
|
|
4364
|
+
Citizenship: TextDetectionResult;
|
|
4365
|
+
/**
|
|
4366
|
+
* 地址
|
|
4367
|
+
*/
|
|
4368
|
+
Address: TextDetectionResult;
|
|
4369
|
+
/**
|
|
4370
|
+
* 地区
|
|
4371
|
+
*/
|
|
4372
|
+
PrecinctNo: TextDetectionResult;
|
|
4373
|
+
/**
|
|
4374
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
4375
|
+
*/
|
|
4376
|
+
RequestId?: string;
|
|
4110
4377
|
}
|
|
4111
4378
|
/**
|
|
4112
4379
|
* QueryBarCode请求参数结构体
|
|
@@ -4195,8 +4462,16 @@ export interface MixedInvoiceOCRRequest {
|
|
|
4195
4462
|
11:增值税发票(卷票 )
|
|
4196
4463
|
12:购车发票
|
|
4197
4464
|
13:过路过桥费发票
|
|
4465
|
+
15:非税发票
|
|
4466
|
+
16:全电发票
|
|
4198
4467
|
*/
|
|
4199
4468
|
Types?: Array<number>;
|
|
4469
|
+
/**
|
|
4470
|
+
* 是否识别其他类型发票,默认为Yes
|
|
4471
|
+
Yes:识别其他类型发票
|
|
4472
|
+
No:不识别其他类型发票
|
|
4473
|
+
*/
|
|
4474
|
+
ReturnOther?: string;
|
|
4200
4475
|
}
|
|
4201
4476
|
/**
|
|
4202
4477
|
* 表格内容检测
|
|
@@ -4824,6 +5099,7 @@ export interface VatInvoice {
|
|
|
4824
5099
|
11:卷式发票
|
|
4825
5100
|
14:通行费发票
|
|
4826
5101
|
15:二手车发票
|
|
5102
|
+
32:深圳区块链发票(仅支持新版接口)
|
|
4827
5103
|
*/
|
|
4828
5104
|
Type: string;
|
|
4829
5105
|
/**
|