tencentcloud-sdk-nodejs-ocr 4.0.355 → 4.0.358
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 +927 -0
- package/SERVICE_CHANGELOG.md +893 -130
- package/package.json +1 -1
- package/products.md +34 -31
- 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
|
@@ -403,6 +403,33 @@ export interface FlightInvoiceOCRRequest {
|
|
|
403
403
|
ImageUrl?: string
|
|
404
404
|
}
|
|
405
405
|
|
|
406
|
+
/**
|
|
407
|
+
* RecognizePhilippinesDrivingLicenseOCR请求参数结构体
|
|
408
|
+
*/
|
|
409
|
+
export interface RecognizePhilippinesDrivingLicenseOCRRequest {
|
|
410
|
+
/**
|
|
411
|
+
* 是否返回人像照片。
|
|
412
|
+
*/
|
|
413
|
+
ReturnHeadImage: boolean
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* 图片的 Base64 值。
|
|
417
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
|
418
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
|
419
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
420
|
+
*/
|
|
421
|
+
ImageBase64?: string
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* 图片的 Url 地址。
|
|
425
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
|
426
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
|
427
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
|
428
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
429
|
+
*/
|
|
430
|
+
ImageUrl?: string
|
|
431
|
+
}
|
|
432
|
+
|
|
406
433
|
/**
|
|
407
434
|
* MLIDPassportOCR请求参数结构体
|
|
408
435
|
*/
|
|
@@ -1135,6 +1162,33 @@ export interface EnterpriseLicenseOCRResponse {
|
|
|
1135
1162
|
RequestId?: string
|
|
1136
1163
|
}
|
|
1137
1164
|
|
|
1165
|
+
/**
|
|
1166
|
+
* RecognizePhilippinesVoteIDOCR请求参数结构体
|
|
1167
|
+
*/
|
|
1168
|
+
export interface RecognizePhilippinesVoteIDOCRRequest {
|
|
1169
|
+
/**
|
|
1170
|
+
* 是否返回人像照片。
|
|
1171
|
+
*/
|
|
1172
|
+
ReturnHeadImage: boolean
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* 图片的 Base64 值。
|
|
1176
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
|
1177
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
|
1178
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
1179
|
+
*/
|
|
1180
|
+
ImageBase64?: string
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* 图片的 Url 地址。
|
|
1184
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
|
1185
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
|
1186
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
|
1187
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
1188
|
+
*/
|
|
1189
|
+
ImageUrl?: string
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1138
1192
|
/**
|
|
1139
1193
|
* 通用机打发票信息
|
|
1140
1194
|
*/
|
|
@@ -2039,6 +2093,23 @@ export interface MixedInvoiceDetectResponse {
|
|
|
2039
2093
|
RequestId?: string
|
|
2040
2094
|
}
|
|
2041
2095
|
|
|
2096
|
+
/**
|
|
2097
|
+
* RideHailingDriverLicenseOCR请求参数结构体
|
|
2098
|
+
*/
|
|
2099
|
+
export interface RideHailingDriverLicenseOCRRequest {
|
|
2100
|
+
/**
|
|
2101
|
+
* 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
|
|
2102
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
2103
|
+
*/
|
|
2104
|
+
ImageBase64?: string
|
|
2105
|
+
|
|
2106
|
+
/**
|
|
2107
|
+
* 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
|
|
2108
|
+
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
|
2109
|
+
*/
|
|
2110
|
+
ImageUrl?: string
|
|
2111
|
+
}
|
|
2112
|
+
|
|
2042
2113
|
/**
|
|
2043
2114
|
* 发票人员信息
|
|
2044
2115
|
*/
|
|
@@ -2314,6 +2385,76 @@ export interface CellContent {
|
|
|
2314
2385
|
WordSize: number
|
|
2315
2386
|
}
|
|
2316
2387
|
|
|
2388
|
+
/**
|
|
2389
|
+
* RecognizePhilippinesDrivingLicenseOCR返回参数结构体
|
|
2390
|
+
*/
|
|
2391
|
+
export interface RecognizePhilippinesDrivingLicenseOCRResponse {
|
|
2392
|
+
/**
|
|
2393
|
+
* 人像照片Base64后的结果
|
|
2394
|
+
*/
|
|
2395
|
+
HeadPortrait: TextDetectionResult
|
|
2396
|
+
|
|
2397
|
+
/**
|
|
2398
|
+
* 姓名
|
|
2399
|
+
*/
|
|
2400
|
+
Name: TextDetectionResult
|
|
2401
|
+
|
|
2402
|
+
/**
|
|
2403
|
+
* 姓氏
|
|
2404
|
+
*/
|
|
2405
|
+
LastName: TextDetectionResult
|
|
2406
|
+
|
|
2407
|
+
/**
|
|
2408
|
+
* 首姓名
|
|
2409
|
+
*/
|
|
2410
|
+
FirstName: TextDetectionResult
|
|
2411
|
+
|
|
2412
|
+
/**
|
|
2413
|
+
* 中间姓名
|
|
2414
|
+
*/
|
|
2415
|
+
MiddleName: TextDetectionResult
|
|
2416
|
+
|
|
2417
|
+
/**
|
|
2418
|
+
* 国籍
|
|
2419
|
+
*/
|
|
2420
|
+
Nationality: TextDetectionResult
|
|
2421
|
+
|
|
2422
|
+
/**
|
|
2423
|
+
* 性别
|
|
2424
|
+
*/
|
|
2425
|
+
Sex: TextDetectionResult
|
|
2426
|
+
|
|
2427
|
+
/**
|
|
2428
|
+
* 地址
|
|
2429
|
+
*/
|
|
2430
|
+
Address: TextDetectionResult
|
|
2431
|
+
|
|
2432
|
+
/**
|
|
2433
|
+
* 证号
|
|
2434
|
+
*/
|
|
2435
|
+
LicenseNo: TextDetectionResult
|
|
2436
|
+
|
|
2437
|
+
/**
|
|
2438
|
+
* 有效期
|
|
2439
|
+
*/
|
|
2440
|
+
ExpiresDate: TextDetectionResult
|
|
2441
|
+
|
|
2442
|
+
/**
|
|
2443
|
+
* 机构代码
|
|
2444
|
+
*/
|
|
2445
|
+
AgencyCode: TextDetectionResult
|
|
2446
|
+
|
|
2447
|
+
/**
|
|
2448
|
+
* 出生日期
|
|
2449
|
+
*/
|
|
2450
|
+
Birthday: TextDetectionResult
|
|
2451
|
+
|
|
2452
|
+
/**
|
|
2453
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2454
|
+
*/
|
|
2455
|
+
RequestId?: string
|
|
2456
|
+
}
|
|
2457
|
+
|
|
2317
2458
|
/**
|
|
2318
2459
|
* MixedInvoiceOCR返回参数结构体
|
|
2319
2460
|
*/
|
|
@@ -3743,6 +3884,96 @@ export interface TextVehicleBack {
|
|
|
3743
3884
|
TotalQuasiMass: string
|
|
3744
3885
|
}
|
|
3745
3886
|
|
|
3887
|
+
/**
|
|
3888
|
+
* RecognizeIndonesiaIDCardOCR返回参数结构体
|
|
3889
|
+
*/
|
|
3890
|
+
export interface RecognizeIndonesiaIDCardOCRResponse {
|
|
3891
|
+
/**
|
|
3892
|
+
* 证件号码
|
|
3893
|
+
*/
|
|
3894
|
+
NIK: string
|
|
3895
|
+
|
|
3896
|
+
/**
|
|
3897
|
+
* 姓名
|
|
3898
|
+
*/
|
|
3899
|
+
Nama: string
|
|
3900
|
+
|
|
3901
|
+
/**
|
|
3902
|
+
* 出生地/出生时间
|
|
3903
|
+
*/
|
|
3904
|
+
TempatTglLahir: string
|
|
3905
|
+
|
|
3906
|
+
/**
|
|
3907
|
+
* 性别
|
|
3908
|
+
*/
|
|
3909
|
+
JenisKelamin: string
|
|
3910
|
+
|
|
3911
|
+
/**
|
|
3912
|
+
* 血型
|
|
3913
|
+
*/
|
|
3914
|
+
GolDarah: string
|
|
3915
|
+
|
|
3916
|
+
/**
|
|
3917
|
+
* 地址
|
|
3918
|
+
*/
|
|
3919
|
+
Alamat: string
|
|
3920
|
+
|
|
3921
|
+
/**
|
|
3922
|
+
* 街道
|
|
3923
|
+
*/
|
|
3924
|
+
RTRW: string
|
|
3925
|
+
|
|
3926
|
+
/**
|
|
3927
|
+
* 村
|
|
3928
|
+
*/
|
|
3929
|
+
KelDesa: string
|
|
3930
|
+
|
|
3931
|
+
/**
|
|
3932
|
+
* 地区
|
|
3933
|
+
*/
|
|
3934
|
+
Kecamatan: string
|
|
3935
|
+
|
|
3936
|
+
/**
|
|
3937
|
+
* 宗教信仰
|
|
3938
|
+
*/
|
|
3939
|
+
Agama: string
|
|
3940
|
+
|
|
3941
|
+
/**
|
|
3942
|
+
* 婚姻状况
|
|
3943
|
+
*/
|
|
3944
|
+
StatusPerkawinan: string
|
|
3945
|
+
|
|
3946
|
+
/**
|
|
3947
|
+
* 职业
|
|
3948
|
+
*/
|
|
3949
|
+
Perkerjaan: string
|
|
3950
|
+
|
|
3951
|
+
/**
|
|
3952
|
+
* 国籍
|
|
3953
|
+
*/
|
|
3954
|
+
KewargaNegaraan: string
|
|
3955
|
+
|
|
3956
|
+
/**
|
|
3957
|
+
* 身份证有效期限
|
|
3958
|
+
*/
|
|
3959
|
+
BerlakuHingga: string
|
|
3960
|
+
|
|
3961
|
+
/**
|
|
3962
|
+
* 发证日期
|
|
3963
|
+
*/
|
|
3964
|
+
IssuedDate: string
|
|
3965
|
+
|
|
3966
|
+
/**
|
|
3967
|
+
* 人像截图
|
|
3968
|
+
*/
|
|
3969
|
+
Photo: string
|
|
3970
|
+
|
|
3971
|
+
/**
|
|
3972
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
3973
|
+
*/
|
|
3974
|
+
RequestId?: string
|
|
3975
|
+
}
|
|
3976
|
+
|
|
3746
3977
|
/**
|
|
3747
3978
|
* GeneralEfficientOCR请求参数结构体
|
|
3748
3979
|
*/
|
|
@@ -3956,6 +4187,41 @@ export interface VerifyEnterpriseFourFactorsRequest {
|
|
|
3956
4187
|
EnterpriseMark: string
|
|
3957
4188
|
}
|
|
3958
4189
|
|
|
4190
|
+
/**
|
|
4191
|
+
* RecognizeIndonesiaIDCardOCR请求参数结构体
|
|
4192
|
+
*/
|
|
4193
|
+
export interface RecognizeIndonesiaIDCardOCRRequest {
|
|
4194
|
+
/**
|
|
4195
|
+
* 图片的 Base64 值。
|
|
4196
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
|
4197
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
|
4198
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
4199
|
+
*/
|
|
4200
|
+
ImageBase64?: string
|
|
4201
|
+
|
|
4202
|
+
/**
|
|
4203
|
+
* 图片的 Url 地址。
|
|
4204
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
|
4205
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
|
4206
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
|
4207
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
4208
|
+
*/
|
|
4209
|
+
ImageUrl?: string
|
|
4210
|
+
|
|
4211
|
+
/**
|
|
4212
|
+
* 是否返回人像照片。
|
|
4213
|
+
*/
|
|
4214
|
+
ReturnHeadImage?: boolean
|
|
4215
|
+
|
|
4216
|
+
/**
|
|
4217
|
+
* 场景参数,默认值为V1
|
|
4218
|
+
可选值:
|
|
4219
|
+
V1
|
|
4220
|
+
V2
|
|
4221
|
+
*/
|
|
4222
|
+
Scene?: string
|
|
4223
|
+
}
|
|
4224
|
+
|
|
3959
4225
|
/**
|
|
3960
4226
|
* 轮船票字段信息
|
|
3961
4227
|
*/
|
|
@@ -4053,6 +4319,21 @@ export interface FlightInvoiceOCRResponse {
|
|
|
4053
4319
|
RequestId?: string
|
|
4054
4320
|
}
|
|
4055
4321
|
|
|
4322
|
+
/**
|
|
4323
|
+
* 识别结果
|
|
4324
|
+
*/
|
|
4325
|
+
export interface TextDetectionResult {
|
|
4326
|
+
/**
|
|
4327
|
+
* 识别出的文本行内容
|
|
4328
|
+
*/
|
|
4329
|
+
Value: string
|
|
4330
|
+
|
|
4331
|
+
/**
|
|
4332
|
+
* 坐标,以四个顶点坐标表示
|
|
4333
|
+
*/
|
|
4334
|
+
Polygon: Array<Coord>
|
|
4335
|
+
}
|
|
4336
|
+
|
|
4056
4337
|
/**
|
|
4057
4338
|
* InstitutionOCR请求参数结构体
|
|
4058
4339
|
*/
|
|
@@ -4814,20 +5095,58 @@ export interface RecognizeHealthCodeOCRResponse {
|
|
|
4814
5095
|
}
|
|
4815
5096
|
|
|
4816
5097
|
/**
|
|
4817
|
-
*
|
|
5098
|
+
* RecognizePhilippinesVoteIDOCR返回参数结构体
|
|
4818
5099
|
*/
|
|
4819
|
-
export interface
|
|
5100
|
+
export interface RecognizePhilippinesVoteIDOCRResponse {
|
|
4820
5101
|
/**
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
ImageBase64?: string
|
|
5102
|
+
* 人像照片Base64后的结果
|
|
5103
|
+
*/
|
|
5104
|
+
HeadPortrait: TextDetectionResult
|
|
4825
5105
|
|
|
4826
5106
|
/**
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
5107
|
+
* 菲律宾VoteID的VIN
|
|
5108
|
+
*/
|
|
5109
|
+
VIN: TextDetectionResult
|
|
5110
|
+
|
|
5111
|
+
/**
|
|
5112
|
+
* 姓名
|
|
5113
|
+
*/
|
|
5114
|
+
FirstName: TextDetectionResult
|
|
5115
|
+
|
|
5116
|
+
/**
|
|
5117
|
+
* 姓氏
|
|
5118
|
+
*/
|
|
5119
|
+
LastName: TextDetectionResult
|
|
5120
|
+
|
|
5121
|
+
/**
|
|
5122
|
+
* 出生日期
|
|
5123
|
+
*/
|
|
5124
|
+
Birthday: TextDetectionResult
|
|
5125
|
+
|
|
5126
|
+
/**
|
|
5127
|
+
* 婚姻状况
|
|
5128
|
+
*/
|
|
5129
|
+
CivilStatus: TextDetectionResult
|
|
5130
|
+
|
|
5131
|
+
/**
|
|
5132
|
+
* 国籍
|
|
5133
|
+
*/
|
|
5134
|
+
Citizenship: TextDetectionResult
|
|
5135
|
+
|
|
5136
|
+
/**
|
|
5137
|
+
* 地址
|
|
5138
|
+
*/
|
|
5139
|
+
Address: TextDetectionResult
|
|
5140
|
+
|
|
5141
|
+
/**
|
|
5142
|
+
* 地区
|
|
5143
|
+
*/
|
|
5144
|
+
PrecinctNo: TextDetectionResult
|
|
5145
|
+
|
|
5146
|
+
/**
|
|
5147
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
5148
|
+
*/
|
|
5149
|
+
RequestId?: string
|
|
4831
5150
|
}
|
|
4832
5151
|
|
|
4833
5152
|
/**
|
|
@@ -4929,8 +5248,17 @@ export interface MixedInvoiceOCRRequest {
|
|
|
4929
5248
|
11:增值税发票(卷票 )
|
|
4930
5249
|
12:购车发票
|
|
4931
5250
|
13:过路过桥费发票
|
|
5251
|
+
15:非税发票
|
|
5252
|
+
16:全电发票
|
|
4932
5253
|
*/
|
|
4933
5254
|
Types?: Array<number>
|
|
5255
|
+
|
|
5256
|
+
/**
|
|
5257
|
+
* 是否识别其他类型发票,默认为Yes
|
|
5258
|
+
Yes:识别其他类型发票
|
|
5259
|
+
No:不识别其他类型发票
|
|
5260
|
+
*/
|
|
5261
|
+
ReturnOther?: string
|
|
4934
5262
|
}
|
|
4935
5263
|
|
|
4936
5264
|
/**
|
|
@@ -5679,6 +6007,7 @@ export interface VatInvoice {
|
|
|
5679
6007
|
11:卷式发票
|
|
5680
6008
|
14:通行费发票
|
|
5681
6009
|
15:二手车发票
|
|
6010
|
+
32:深圳区块链发票(仅支持新版接口)
|
|
5682
6011
|
*/
|
|
5683
6012
|
Type: string
|
|
5684
6013
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { RecognizeOnlineTaxiItineraryOCRResponse, BankSlipOCRRequest, BusinessCardOCRResponse, HKIDCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, VerifyBizLicenseResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, VerifyBizLicenseRequest, PermitOCRResponse, InvoiceGeneralOCRRequest, WaybillOCRResponse, MLIDCardOCRRequest, VehicleLicenseOCRRequest, EnterpriseLicenseOCRResponse, InstitutionOCRResponse, DriverLicenseOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, EnterpriseLicenseOCRRequest, BankCardOCRRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, InsuranceBillOCRResponse, GeneralAccurateOCRResponse, HmtResidentPermitOCRRequest, QrcodeOCRRequest, TaxiInvoiceOCRResponse, GeneralBasicOCRResponse, RecognizeThaiIDCardOCRResponse, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VatInvoiceVerifyNewRequest, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, IDCardOCRResponse, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, TaxiInvoiceOCRRequest, PropOwnerCertOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, TableOCRRequest, PassportOCRResponse, VerifyBasicBizLicenseResponse, VehicleRegCertOCRRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, EnglishOCRRequest, VatInvoiceVerifyResponse, SmartStructuralOCRResponse, VerifyEnterpriseFourFactorsRequest, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, FlightInvoiceOCRResponse, InstitutionOCRRequest, QueryBarCodeResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, MLIDPassportOCRResponse, VatRollInvoiceOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, VinOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse,
|
|
2
|
+
import { RecognizeOnlineTaxiItineraryOCRResponse, BankSlipOCRRequest, BusinessCardOCRResponse, HKIDCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, RecognizePhilippinesDrivingLicenseOCRRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, VerifyBizLicenseResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, VerifyBizLicenseRequest, PermitOCRResponse, InvoiceGeneralOCRRequest, WaybillOCRResponse, MLIDCardOCRRequest, VehicleLicenseOCRRequest, EnterpriseLicenseOCRResponse, RecognizePhilippinesVoteIDOCRRequest, InstitutionOCRResponse, DriverLicenseOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, EnterpriseLicenseOCRRequest, BankCardOCRRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, InsuranceBillOCRResponse, GeneralAccurateOCRResponse, HmtResidentPermitOCRRequest, QrcodeOCRRequest, TaxiInvoiceOCRResponse, GeneralBasicOCRResponse, RecognizeThaiIDCardOCRResponse, RecognizePhilippinesDrivingLicenseOCRResponse, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VatInvoiceVerifyNewRequest, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, IDCardOCRResponse, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, TaxiInvoiceOCRRequest, PropOwnerCertOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, TableOCRRequest, PassportOCRResponse, VerifyBasicBizLicenseResponse, VehicleRegCertOCRRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, RecognizeIndonesiaIDCardOCRResponse, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, EnglishOCRRequest, VatInvoiceVerifyResponse, SmartStructuralOCRResponse, VerifyEnterpriseFourFactorsRequest, RecognizeIndonesiaIDCardOCRRequest, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, FlightInvoiceOCRResponse, InstitutionOCRRequest, QueryBarCodeResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, MLIDPassportOCRResponse, VatRollInvoiceOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, VinOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, RecognizePhilippinesVoteIDOCRResponse, QueryBarCodeRequest, OrgCodeCertOCRResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, ResidenceBookletOCRRequest, BusInvoiceOCRResponse, MainlandPermitOCRResponse, HmtResidentPermitOCRResponse, EnglishOCRResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, TableOCRResponse, AdvertiseOCRResponse, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, VinOCRRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, VerifyBasicBizLicenseRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRResponse, BusinessCardOCRRequest, FinanBillOCRRequest, VerifyEnterpriseFourFactorsResponse, GeneralFastOCRResponse } from "./ocr_models";
|
|
3
3
|
/**
|
|
4
4
|
* ocr client
|
|
5
5
|
* @class
|
|
@@ -390,6 +390,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
390
390
|
* 印章识别已支持各类印章,包括发票章,财务章等,适用于公文,票据等场景。
|
|
391
391
|
*/
|
|
392
392
|
SealOCR(req: SealOCRRequest, cb?: (error: string, rep: SealOCRResponse) => void): Promise<SealOCRResponse>;
|
|
393
|
+
/**
|
|
394
|
+
* 菲律宾VoteID识别
|
|
395
|
+
*/
|
|
396
|
+
RecognizePhilippinesVoteIDOCR(req: RecognizePhilippinesVoteIDOCRRequest, cb?: (error: string, rep: RecognizePhilippinesVoteIDOCRResponse) => void): Promise<RecognizePhilippinesVoteIDOCRResponse>;
|
|
393
397
|
/**
|
|
394
398
|
* 本接口支持火车票全字段的识别,包括编号、票价、姓名、座位号、出发时间、出发站、到达站、车次、席别、发票类型及序列号等。
|
|
395
399
|
|
|
@@ -526,14 +530,22 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
526
530
|
* 本接口支持常见银行票据的自动分类和识别。整单识别包括支票(含现金支票、普通支票、转账支票),承兑汇票(含银行承兑汇票、商业承兑汇票)以及进账单等,适用于中国人民银行印发的 2010 版银行票据凭证版式(银发[2010]299 号)。
|
|
527
531
|
*/
|
|
528
532
|
FinanBillOCR(req: FinanBillOCRRequest, cb?: (error: string, rep: FinanBillOCRResponse) => void): Promise<FinanBillOCRResponse>;
|
|
533
|
+
/**
|
|
534
|
+
* 菲律宾驾驶证识别
|
|
535
|
+
*/
|
|
536
|
+
RecognizePhilippinesDrivingLicenseOCR(req: RecognizePhilippinesDrivingLicenseOCRRequest, cb?: (error: string, rep: RecognizePhilippinesDrivingLicenseOCRResponse) => void): Promise<RecognizePhilippinesDrivingLicenseOCRResponse>;
|
|
529
537
|
/**
|
|
530
538
|
* 本接口支持OFD格式的增值税电子普通发票和增值税电子专用发票的识别,返回发票代码、发票号码、开票日期、验证码、机器编号、密码区,购买方和销售方信息,包括名称、纳税人识别号、地址电话、开户行及账号,以及价税合计、开票人、收款人、复核人、税额、不含税金额等字段信息。
|
|
531
539
|
*/
|
|
532
540
|
VerifyOfdVatInvoiceOCR(req: VerifyOfdVatInvoiceOCRRequest, cb?: (error: string, rep: VerifyOfdVatInvoiceOCRResponse) => void): Promise<VerifyOfdVatInvoiceOCRResponse>;
|
|
533
541
|
/**
|
|
534
|
-
*
|
|
542
|
+
* 本接口支持 单张、多张、多类型 票据的混合识别,同时支持自选需要识别的票据类型,已支持票种包括:增值税发票(专票、普票、卷票)、全电发票、非税发票、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,并支持其他类发票的识别。
|
|
535
543
|
*/
|
|
536
544
|
MixedInvoiceOCR(req: MixedInvoiceOCRRequest, cb?: (error: string, rep: MixedInvoiceOCRResponse) => void): Promise<MixedInvoiceOCRResponse>;
|
|
545
|
+
/**
|
|
546
|
+
* 印尼身份证识别
|
|
547
|
+
*/
|
|
548
|
+
RecognizeIndonesiaIDCardOCR(req: RecognizeIndonesiaIDCardOCRRequest, cb?: (error: string, rep: RecognizeIndonesiaIDCardOCRResponse) => void): Promise<RecognizeIndonesiaIDCardOCRResponse>;
|
|
537
549
|
/**
|
|
538
550
|
* 本接口支持北京、上海、广东、江苏、吉林、黑龙江省市健康码的识别,包括持码人姓名、持码人身份证号、健康码更新时间、健康码颜色、核酸检测结果、核酸检测间隔时长、核酸检测时间,七个字段的识别结果输出。不同省市健康码显示的字段信息有所不同,上述字段的识别结果可能为空,以图片上具体展示的信息为准。
|
|
539
551
|
*/
|
|
@@ -509,6 +509,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
509
509
|
async SealOCR(req, cb) {
|
|
510
510
|
return this.request("SealOCR", req, cb);
|
|
511
511
|
}
|
|
512
|
+
/**
|
|
513
|
+
* 菲律宾VoteID识别
|
|
514
|
+
*/
|
|
515
|
+
async RecognizePhilippinesVoteIDOCR(req, cb) {
|
|
516
|
+
return this.request("RecognizePhilippinesVoteIDOCR", req, cb);
|
|
517
|
+
}
|
|
512
518
|
/**
|
|
513
519
|
* 本接口支持火车票全字段的识别,包括编号、票价、姓名、座位号、出发时间、出发站、到达站、车次、席别、发票类型及序列号等。
|
|
514
520
|
|
|
@@ -677,6 +683,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
677
683
|
async FinanBillOCR(req, cb) {
|
|
678
684
|
return this.request("FinanBillOCR", req, cb);
|
|
679
685
|
}
|
|
686
|
+
/**
|
|
687
|
+
* 菲律宾驾驶证识别
|
|
688
|
+
*/
|
|
689
|
+
async RecognizePhilippinesDrivingLicenseOCR(req, cb) {
|
|
690
|
+
return this.request("RecognizePhilippinesDrivingLicenseOCR", req, cb);
|
|
691
|
+
}
|
|
680
692
|
/**
|
|
681
693
|
* 本接口支持OFD格式的增值税电子普通发票和增值税电子专用发票的识别,返回发票代码、发票号码、开票日期、验证码、机器编号、密码区,购买方和销售方信息,包括名称、纳税人识别号、地址电话、开户行及账号,以及价税合计、开票人、收款人、复核人、税额、不含税金额等字段信息。
|
|
682
694
|
*/
|
|
@@ -684,11 +696,17 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
684
696
|
return this.request("VerifyOfdVatInvoiceOCR", req, cb);
|
|
685
697
|
}
|
|
686
698
|
/**
|
|
687
|
-
*
|
|
699
|
+
* 本接口支持 单张、多张、多类型 票据的混合识别,同时支持自选需要识别的票据类型,已支持票种包括:增值税发票(专票、普票、卷票)、全电发票、非税发票、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,并支持其他类发票的识别。
|
|
688
700
|
*/
|
|
689
701
|
async MixedInvoiceOCR(req, cb) {
|
|
690
702
|
return this.request("MixedInvoiceOCR", req, cb);
|
|
691
703
|
}
|
|
704
|
+
/**
|
|
705
|
+
* 印尼身份证识别
|
|
706
|
+
*/
|
|
707
|
+
async RecognizeIndonesiaIDCardOCR(req, cb) {
|
|
708
|
+
return this.request("RecognizeIndonesiaIDCardOCR", req, cb);
|
|
709
|
+
}
|
|
692
710
|
/**
|
|
693
711
|
* 本接口支持北京、上海、广东、江苏、吉林、黑龙江省市健康码的识别,包括持码人姓名、持码人身份证号、健康码更新时间、健康码颜色、核酸检测结果、核酸检测间隔时长、核酸检测时间,七个字段的识别结果输出。不同省市健康码显示的字段信息有所不同,上述字段的识别结果可能为空,以图片上具体展示的信息为准。
|
|
694
712
|
*/
|