tencentcloud-sdk-nodejs-ocr 4.0.782 → 4.0.788
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/package.json +1 -1
- package/products.md +61 -61
- package/src/services/ocr/v20181119/ocr_client.ts +66 -2
- package/src/services/ocr/v20181119/ocr_models.ts +310 -123
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +56 -1
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +57 -0
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +307 -123
@@ -533,11 +533,16 @@ export interface MLIDPassportOCRRequest {
|
|
533
533
|
/**
|
534
534
|
* 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
|
535
535
|
*/
|
536
|
-
ImageBase64
|
536
|
+
ImageBase64?: string
|
537
537
|
/**
|
538
538
|
* 是否返回图片,默认false
|
539
539
|
*/
|
540
540
|
RetImage?: boolean
|
541
|
+
/**
|
542
|
+
* 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
|
543
|
+
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
544
|
+
*/
|
545
|
+
ImageUrl?: string
|
541
546
|
}
|
542
547
|
|
543
548
|
/**
|
@@ -2664,7 +2669,7 @@ export interface BizLicenseOCRRequest {
|
|
2664
2669
|
*/
|
2665
2670
|
ImageUrl?: string
|
2666
2671
|
/**
|
2667
|
-
*
|
2672
|
+
* 是否返回告警码,默认为false
|
2668
2673
|
*/
|
2669
2674
|
EnableCopyWarn?: boolean
|
2670
2675
|
}
|
@@ -4918,24 +4923,129 @@ export interface MotorVehicleSaleInvoice {
|
|
4918
4923
|
}
|
4919
4924
|
|
4920
4925
|
/**
|
4921
|
-
*
|
4926
|
+
* 全电发票(铁路电子客票)
|
4922
4927
|
*/
|
4923
|
-
export interface
|
4928
|
+
export interface ElectronicTrainTicket {
|
4924
4929
|
/**
|
4925
|
-
*
|
4926
|
-
|
4927
|
-
支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
|
4928
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
4930
|
+
* 购方名称
|
4931
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4929
4932
|
*/
|
4930
|
-
|
4933
|
+
BuyerName?: string
|
4931
4934
|
/**
|
4932
|
-
*
|
4933
|
-
|
4934
|
-
支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
|
4935
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
4936
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
4935
|
+
* 购方识别号
|
4936
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4937
4937
|
*/
|
4938
|
-
|
4938
|
+
BuyerTaxCode?: string
|
4939
|
+
/**
|
4940
|
+
* 发票号码
|
4941
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4942
|
+
*/
|
4943
|
+
Number?: string
|
4944
|
+
/**
|
4945
|
+
* 开票日期
|
4946
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4947
|
+
*/
|
4948
|
+
Date?: string
|
4949
|
+
/**
|
4950
|
+
* 价税合计(中文大写)
|
4951
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4952
|
+
*/
|
4953
|
+
TotalCN?: string
|
4954
|
+
/**
|
4955
|
+
* 税额
|
4956
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4957
|
+
*/
|
4958
|
+
Tax?: string
|
4959
|
+
/**
|
4960
|
+
* 业务类型,0:退票,1:售票
|
4961
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4962
|
+
*/
|
4963
|
+
ServiceType?: string
|
4964
|
+
/**
|
4965
|
+
* 出发时间
|
4966
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4967
|
+
*/
|
4968
|
+
TimeGetOn?: string
|
4969
|
+
/**
|
4970
|
+
* 车次
|
4971
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4972
|
+
*/
|
4973
|
+
TrainNumber?: string
|
4974
|
+
/**
|
4975
|
+
* 发票代码
|
4976
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4977
|
+
*/
|
4978
|
+
Code?: string
|
4979
|
+
/**
|
4980
|
+
* 席别
|
4981
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4982
|
+
*/
|
4983
|
+
SeatType?: string
|
4984
|
+
/**
|
4985
|
+
* 乘车日期
|
4986
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4987
|
+
*/
|
4988
|
+
DateGetOn?: string
|
4989
|
+
/**
|
4990
|
+
* 车厢
|
4991
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4992
|
+
*/
|
4993
|
+
TrainCabin?: string
|
4994
|
+
/**
|
4995
|
+
* 出发站
|
4996
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4997
|
+
*/
|
4998
|
+
StationGetOn?: string
|
4999
|
+
/**
|
5000
|
+
* 电子客票号
|
5001
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
5002
|
+
*/
|
5003
|
+
ElectronicNumber?: string
|
5004
|
+
/**
|
5005
|
+
* 姓名
|
5006
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
5007
|
+
*/
|
5008
|
+
PassengerName?: string
|
5009
|
+
/**
|
5010
|
+
* 证件号
|
5011
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
5012
|
+
*/
|
5013
|
+
PassengerNo?: string
|
5014
|
+
/**
|
5015
|
+
* 金额
|
5016
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
5017
|
+
*/
|
5018
|
+
Amount?: string
|
5019
|
+
/**
|
5020
|
+
* 到达站
|
5021
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
5022
|
+
*/
|
5023
|
+
StationGetOff?: string
|
5024
|
+
/**
|
5025
|
+
* 税率
|
5026
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
5027
|
+
*/
|
5028
|
+
TaxRate?: string
|
5029
|
+
/**
|
5030
|
+
* 席位
|
5031
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
5032
|
+
*/
|
5033
|
+
Seat?: string
|
5034
|
+
/**
|
5035
|
+
* 价税合计
|
5036
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
5037
|
+
*/
|
5038
|
+
Total?: string
|
5039
|
+
/**
|
5040
|
+
* 校验码
|
5041
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
5042
|
+
*/
|
5043
|
+
CheckCode?: string
|
5044
|
+
/**
|
5045
|
+
* 发票状态代码,0正常 1 未更新 2作废 3已红冲
|
5046
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
5047
|
+
*/
|
5048
|
+
StateCode?: string
|
4939
5049
|
}
|
4940
5050
|
|
4941
5051
|
/**
|
@@ -5088,6 +5198,24 @@ export interface PassportRecognizeInfos {
|
|
5088
5198
|
* 截止日期(护照信息页识别结果)
|
5089
5199
|
*/
|
5090
5200
|
DateOfExpiration?: string
|
5201
|
+
/**
|
5202
|
+
* 持证人签名(护照信息页识别结果)
|
5203
|
+
|
5204
|
+
仅中国大陆护照支持返回此字段,港澳台及境外护照不支持
|
5205
|
+
*/
|
5206
|
+
Signature?: string
|
5207
|
+
/**
|
5208
|
+
* 签发地点(护照信息页识别结果)
|
5209
|
+
|
5210
|
+
仅中国大陆护照支持返回此字段,港澳台及境外护照不支持
|
5211
|
+
*/
|
5212
|
+
IssuePlace?: string
|
5213
|
+
/**
|
5214
|
+
* 签发机关(护照信息页识别结果)
|
5215
|
+
|
5216
|
+
仅中国大陆护照支持返回此字段,港澳台及境外护照不支持
|
5217
|
+
*/
|
5218
|
+
IssuingAuthority?: string
|
5091
5219
|
}
|
5092
5220
|
|
5093
5221
|
/**
|
@@ -6406,129 +6534,34 @@ export interface RideHailingDriverLicenseOCRRequest {
|
|
6406
6534
|
}
|
6407
6535
|
|
6408
6536
|
/**
|
6409
|
-
*
|
6537
|
+
* 敏感数据加密
|
6410
6538
|
*/
|
6411
|
-
export interface
|
6412
|
-
/**
|
6413
|
-
* 购方名称
|
6414
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
6415
|
-
*/
|
6416
|
-
BuyerName?: string
|
6417
|
-
/**
|
6418
|
-
* 购方识别号
|
6419
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
6420
|
-
*/
|
6421
|
-
BuyerTaxCode?: string
|
6422
|
-
/**
|
6423
|
-
* 发票号码
|
6424
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
6425
|
-
*/
|
6426
|
-
Number?: string
|
6427
|
-
/**
|
6428
|
-
* 开票日期
|
6429
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
6430
|
-
*/
|
6431
|
-
Date?: string
|
6432
|
-
/**
|
6433
|
-
* 价税合计(中文大写)
|
6434
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
6435
|
-
*/
|
6436
|
-
TotalCN?: string
|
6437
|
-
/**
|
6438
|
-
* 税额
|
6439
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
6440
|
-
*/
|
6441
|
-
Tax?: string
|
6442
|
-
/**
|
6443
|
-
* 业务类型,0:退票,1:售票
|
6444
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
6445
|
-
*/
|
6446
|
-
ServiceType?: string
|
6447
|
-
/**
|
6448
|
-
* 出发时间
|
6449
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
6450
|
-
*/
|
6451
|
-
TimeGetOn?: string
|
6452
|
-
/**
|
6453
|
-
* 车次
|
6454
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
6455
|
-
*/
|
6456
|
-
TrainNumber?: string
|
6457
|
-
/**
|
6458
|
-
* 发票代码
|
6459
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
6460
|
-
*/
|
6461
|
-
Code?: string
|
6462
|
-
/**
|
6463
|
-
* 席别
|
6464
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
6465
|
-
*/
|
6466
|
-
SeatType?: string
|
6467
|
-
/**
|
6468
|
-
* 乘车日期
|
6469
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
6470
|
-
*/
|
6471
|
-
DateGetOn?: string
|
6472
|
-
/**
|
6473
|
-
* 车厢
|
6474
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
6475
|
-
*/
|
6476
|
-
TrainCabin?: string
|
6477
|
-
/**
|
6478
|
-
* 出发站
|
6479
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
6480
|
-
*/
|
6481
|
-
StationGetOn?: string
|
6482
|
-
/**
|
6483
|
-
* 电子客票号
|
6484
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
6485
|
-
*/
|
6486
|
-
ElectronicNumber?: string
|
6539
|
+
export interface Encryption {
|
6487
6540
|
/**
|
6488
|
-
*
|
6541
|
+
* 有加密需求的用户,接入传入kms的CiphertextBlob,关于数据加密可查阅数据加密 文档。
|
6489
6542
|
注意:此字段可能返回 null,表示取不到有效值。
|
6490
6543
|
*/
|
6491
|
-
|
6544
|
+
CiphertextBlob: string
|
6492
6545
|
/**
|
6493
|
-
*
|
6494
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
6495
|
-
*/
|
6496
|
-
PassengerNo?: string
|
6497
|
-
/**
|
6498
|
-
* 金额
|
6499
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
6500
|
-
*/
|
6501
|
-
Amount?: string
|
6502
|
-
/**
|
6503
|
-
* 到达站
|
6504
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
6505
|
-
*/
|
6506
|
-
StationGetOff?: string
|
6507
|
-
/**
|
6508
|
-
* 税率
|
6509
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
6510
|
-
*/
|
6511
|
-
TaxRate?: string
|
6512
|
-
/**
|
6513
|
-
* 席位
|
6546
|
+
* 有加密需求的用户,传入CBC加密的初始向量(客户自定义字符串,长度16字符)。
|
6514
6547
|
注意:此字段可能返回 null,表示取不到有效值。
|
6515
6548
|
*/
|
6516
|
-
|
6549
|
+
Iv: string
|
6517
6550
|
/**
|
6518
|
-
*
|
6551
|
+
* 加密使用的算法(支持'AES-256-CBC'、'SM4-GCM'),不传默认为'AES-256-CBC'
|
6519
6552
|
注意:此字段可能返回 null,表示取不到有效值。
|
6520
6553
|
*/
|
6521
|
-
|
6554
|
+
Algorithm?: string
|
6522
6555
|
/**
|
6523
|
-
*
|
6556
|
+
* SM4-GCM算法生成的消息摘要(校验消息完整性时使用)
|
6524
6557
|
注意:此字段可能返回 null,表示取不到有效值。
|
6525
6558
|
*/
|
6526
|
-
|
6559
|
+
TagList?: Array<string>
|
6527
6560
|
/**
|
6528
|
-
*
|
6561
|
+
* 在使用加密服务时,指定要被加密的字段。本接口默认为EncryptedBody
|
6529
6562
|
注意:此字段可能返回 null,表示取不到有效值。
|
6530
6563
|
*/
|
6531
|
-
|
6564
|
+
EncryptList?: Array<string>
|
6532
6565
|
}
|
6533
6566
|
|
6534
6567
|
/**
|
@@ -7098,6 +7131,79 @@ export interface BankSlipOCRResponse {
|
|
7098
7131
|
RequestId?: string
|
7099
7132
|
}
|
7100
7133
|
|
7134
|
+
/**
|
7135
|
+
* RecognizeEncryptedIDCardOCR返回参数结构体
|
7136
|
+
*/
|
7137
|
+
export interface RecognizeEncryptedIDCardOCRResponse {
|
7138
|
+
/**
|
7139
|
+
* 姓名(人像面)
|
7140
|
+
*/
|
7141
|
+
Name?: string
|
7142
|
+
/**
|
7143
|
+
* 性别(人像面)
|
7144
|
+
*/
|
7145
|
+
Sex?: string
|
7146
|
+
/**
|
7147
|
+
* 民族(人像面)
|
7148
|
+
*/
|
7149
|
+
Nation?: string
|
7150
|
+
/**
|
7151
|
+
* 出生日期(人像面)
|
7152
|
+
*/
|
7153
|
+
Birth?: string
|
7154
|
+
/**
|
7155
|
+
* 地址(人像面)
|
7156
|
+
*/
|
7157
|
+
Address?: string
|
7158
|
+
/**
|
7159
|
+
* 身份证号(人像面)
|
7160
|
+
*/
|
7161
|
+
IdNum?: string
|
7162
|
+
/**
|
7163
|
+
* 发证机关(国徽面)
|
7164
|
+
*/
|
7165
|
+
Authority?: string
|
7166
|
+
/**
|
7167
|
+
* 证件有效期(国徽面)
|
7168
|
+
*/
|
7169
|
+
ValidDate?: string
|
7170
|
+
/**
|
7171
|
+
* 扩展信息,不请求则不返回,具体输入参考示例3和示例4。
|
7172
|
+
IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;
|
7173
|
+
Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;
|
7174
|
+
|
7175
|
+
Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);
|
7176
|
+
BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);
|
7177
|
+
|
7178
|
+
WarnInfos,告警信息,Code 告警码列表和释义:
|
7179
|
+
-9100 身份证有效日期不合法告警,
|
7180
|
+
-9101 身份证边框不完整告警,
|
7181
|
+
-9102 身份证复印件告警,
|
7182
|
+
-9103 身份证翻拍告警,
|
7183
|
+
-9105 身份证框内遮挡告警,
|
7184
|
+
-9104 临时身份证告警,
|
7185
|
+
-9106 身份证疑似存在PS痕迹告警,
|
7186
|
+
-9107 身份证反光告警。
|
7187
|
+
*/
|
7188
|
+
AdvancedInfo?: string
|
7189
|
+
/**
|
7190
|
+
* 反光点覆盖区域详情结果,具体内容请点击左侧链接
|
7191
|
+
*/
|
7192
|
+
ReflectDetailInfos?: Array<ReflectDetailInfo>
|
7193
|
+
/**
|
7194
|
+
* 加密后的数据
|
7195
|
+
*/
|
7196
|
+
EncryptedBody?: string
|
7197
|
+
/**
|
7198
|
+
* 敏感数据加密信息
|
7199
|
+
*/
|
7200
|
+
Encryption?: Encryption
|
7201
|
+
/**
|
7202
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
7203
|
+
*/
|
7204
|
+
RequestId?: string
|
7205
|
+
}
|
7206
|
+
|
7101
7207
|
/**
|
7102
7208
|
* 通行费发票信息
|
7103
7209
|
*/
|
@@ -7373,6 +7479,66 @@ export interface LineInfo {
|
|
7373
7479
|
Lines?: Array<ItemInfo>
|
7374
7480
|
}
|
7375
7481
|
|
7482
|
+
/**
|
7483
|
+
* RecognizeEncryptedIDCardOCR请求参数结构体
|
7484
|
+
*/
|
7485
|
+
export interface RecognizeEncryptedIDCardOCRRequest {
|
7486
|
+
/**
|
7487
|
+
* 请求体被加密后的密文,本接口只支持加密传输
|
7488
|
+
*/
|
7489
|
+
EncryptedBody: string
|
7490
|
+
/**
|
7491
|
+
* 敏感数据加密信息。对传入信息有加密需求的用户可使用此参数,详情请点击左侧链接。
|
7492
|
+
*/
|
7493
|
+
Encryption: Encryption
|
7494
|
+
/**
|
7495
|
+
* 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
|
7496
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
7497
|
+
*/
|
7498
|
+
ImageBase64?: string
|
7499
|
+
/**
|
7500
|
+
* 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
|
7501
|
+
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
7502
|
+
*/
|
7503
|
+
ImageUrl?: string
|
7504
|
+
/**
|
7505
|
+
* FRONT:身份证有照片的一面(人像面),
|
7506
|
+
BACK:身份证有国徽的一面(国徽面),
|
7507
|
+
该参数如果不填,将为您自动判断身份证正反面。
|
7508
|
+
*/
|
7509
|
+
CardSide?: string
|
7510
|
+
/**
|
7511
|
+
* 以下可选字段均为bool 类型,默认false:
|
7512
|
+
CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)
|
7513
|
+
CropPortrait,人像照片裁剪(自动抠取身份证头像区域)
|
7514
|
+
CopyWarn,复印件告警
|
7515
|
+
BorderCheckWarn,边框和框内遮挡告警
|
7516
|
+
ReshootWarn,翻拍告警
|
7517
|
+
DetectPsWarn,疑似存在PS痕迹告警
|
7518
|
+
TempIdWarn,临时身份证告警
|
7519
|
+
InvalidDateWarn,身份证有效日期不合法告警
|
7520
|
+
Quality,图片质量分数(评价图片的模糊程度)
|
7521
|
+
MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)
|
7522
|
+
ReflectWarn,是否开启反光检测
|
7523
|
+
|
7524
|
+
SDK 设置方式参考:
|
7525
|
+
Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})
|
7526
|
+
API 3.0 Explorer 设置方式参考:
|
7527
|
+
Config = {"CropIdCard":true,"CropPortrait":true}
|
7528
|
+
*/
|
7529
|
+
Config?: string
|
7530
|
+
/**
|
7531
|
+
* 默认值为true,打开识别结果纠正开关。开关开启后,身份证号、出生日期、性别,三个字段会进行矫正补齐,统一结果输出;若关闭此开关,以上三个字段不会进行矫正补齐,保持原始识别结果输出,若原图出现篡改情况,这三个字段的识别结果可能会不统一。
|
7532
|
+
*/
|
7533
|
+
EnableRecognitionRectify?: boolean
|
7534
|
+
/**
|
7535
|
+
* 默认值为false。
|
7536
|
+
|
7537
|
+
此开关需要在反光检测开关开启下才会生效(即此开关生效的前提是config入参里的"ReflectWarn":true),若EnableReflectDetail设置为true,则会返回反光点覆盖区域详情。反光点覆盖区域详情分为四部分:人像照片位置、国徽位置、识别字段位置、其他位置。一个反光点允许覆盖多个区域,且一张图片可能存在多个反光点。
|
7538
|
+
*/
|
7539
|
+
EnableReflectDetail?: boolean
|
7540
|
+
}
|
7541
|
+
|
7376
7542
|
/**
|
7377
7543
|
* 过路过桥费发票
|
7378
7544
|
*/
|
@@ -9554,7 +9720,7 @@ export interface BizLicenseOCRResponse {
|
|
9554
9720
|
/**
|
9555
9721
|
* 告警码说明:
|
9556
9722
|
WARN_COPY_CARD 黑白复印件告警
|
9557
|
-
|
9723
|
+
WARN_RESHOOT_CARD翻拍件告警
|
9558
9724
|
*/
|
9559
9725
|
RecognizeWarnMsg?: Array<string>
|
9560
9726
|
/**
|
@@ -9577,6 +9743,27 @@ WARN_RESHOOT_SCREENED_CARD 翻拍件告警
|
|
9577
9743
|
RequestId?: string
|
9578
9744
|
}
|
9579
9745
|
|
9746
|
+
/**
|
9747
|
+
* TableOCR请求参数结构体
|
9748
|
+
*/
|
9749
|
+
export interface TableOCRRequest {
|
9750
|
+
/**
|
9751
|
+
* 图片的 Base64 值。
|
9752
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
9753
|
+
支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
|
9754
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
9755
|
+
*/
|
9756
|
+
ImageBase64?: string
|
9757
|
+
/**
|
9758
|
+
* 图片的 Url 地址。
|
9759
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
9760
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
|
9761
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
9762
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
9763
|
+
*/
|
9764
|
+
ImageUrl?: string
|
9765
|
+
}
|
9766
|
+
|
9580
9767
|
/**
|
9581
9768
|
* VatInvoiceOCR返回参数结构体
|
9582
9769
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
2
|
-
import { RecognizeOnlineTaxiItineraryOCRResponse, BankSlipOCRRequest, BusinessCardOCRResponse, HKIDCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, GeneralHandwritingOCRResponse, RecognizePhilippinesDrivingLicenseOCRRequest, MLIDPassportOCRRequest, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, CreateAIFormTaskRequest, PermitOCRResponse, InvoiceGeneralOCRRequest, RideHailingTransportLicenseOCRRequest, FlightInvoiceOCRRequest, HmtResidentPermitOCRResponse, IDCardOCRResponse, EnterpriseLicenseOCRResponse, RecognizePhilippinesVoteIDOCRRequest, InstitutionOCRResponse, DriverLicenseOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, SmartStructuralOCRV2Response, EnterpriseLicenseOCRRequest, BankCardOCRRequest, VehicleRegCertOCRRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, RecognizePhilippinesTinIDOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RecognizePhilippinesVoteIDOCRResponse, GeneralAccurateOCRResponse, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeThaiIDCardOCRResponse, RecognizeMedicalInvoiceOCRResponse, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VatInvoiceVerifyNewRequest, VehicleLicenseOCRResponse, RecognizePhilippinesSssIDOCRRequest, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, RecognizePhilippinesSssIDOCRResponse, TaxiInvoiceOCRRequest, PropOwnerCertOCRRequest, RecognizeContainerOCRRequest, EduPaperOCRRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest,
|
2
|
+
import { RecognizeOnlineTaxiItineraryOCRResponse, BankSlipOCRRequest, BusinessCardOCRResponse, HKIDCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, GeneralHandwritingOCRResponse, RecognizePhilippinesDrivingLicenseOCRRequest, MLIDPassportOCRRequest, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, CreateAIFormTaskRequest, PermitOCRResponse, InvoiceGeneralOCRRequest, RideHailingTransportLicenseOCRRequest, FlightInvoiceOCRRequest, HmtResidentPermitOCRResponse, IDCardOCRResponse, EnterpriseLicenseOCRResponse, RecognizePhilippinesVoteIDOCRRequest, InstitutionOCRResponse, DriverLicenseOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, SmartStructuralOCRV2Response, EnterpriseLicenseOCRRequest, BankCardOCRRequest, VehicleRegCertOCRRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, RecognizePhilippinesTinIDOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RecognizePhilippinesVoteIDOCRResponse, GeneralAccurateOCRResponse, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeThaiIDCardOCRResponse, RecognizeMedicalInvoiceOCRResponse, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VatInvoiceVerifyNewRequest, VehicleLicenseOCRResponse, RecognizePhilippinesSssIDOCRRequest, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, RecognizePhilippinesSssIDOCRResponse, TaxiInvoiceOCRRequest, PropOwnerCertOCRRequest, RecognizeContainerOCRRequest, EduPaperOCRRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, ImageEnhancementResponse, PassportOCRResponse, TextDetectRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, RecognizeIndonesiaIDCardOCRResponse, GeneralEfficientOCRRequest, RecognizePhilippinesUMIDOCRResponse, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, EnglishOCRRequest, VatInvoiceVerifyResponse, SmartStructuralOCRResponse, RecognizeIndonesiaIDCardOCRRequest, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, FlightInvoiceOCRResponse, InstitutionOCRRequest, RideHailingDriverLicenseOCRRequest, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, MLIDPassportOCRResponse, VatRollInvoiceOCRRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, RecognizeEncryptedIDCardOCRResponse, VinOCRResponse, GetTaskStateResponse, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, RecognizeEncryptedIDCardOCRRequest, CreateAIFormTaskResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, RecognizeGeneralInvoiceResponse, GetTaskStateRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, HmtResidentPermitOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, BusInvoiceOCRResponse, MainlandPermitOCRResponse, MLIDCardOCRRequest, EnglishOCRResponse, RecognizeForeignPermanentResidentIdCardResponse, BusInvoiceOCRRequest, OrgCodeCertOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, InsuranceBillOCRRequest, QrcodeOCRRequest, TableOCRResponse, AdvertiseOCRResponse, VehicleLicenseOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, VinOCRRequest, VatInvoiceOCRRequest, RecognizePhilippinesUMIDOCRRequest, MLIDCardOCRResponse, RecognizePhilippinesTinIDOCRRequest, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, TableOCRRequest, VatInvoiceOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRResponse, BusinessCardOCRRequest, RecognizePhilippinesDrivingLicenseOCRResponse, FinanBillOCRRequest, QuotaInvoiceOCRResponse, RecognizeForeignPermanentResidentIdCardRequest, GeneralFastOCRResponse } from "./ocr_models";
|
3
3
|
/**
|
4
4
|
* ocr client
|
5
5
|
* @class
|
@@ -196,6 +196,61 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
196
196
|
默认接口请求频率限制:2次/秒。
|
197
197
|
*/
|
198
198
|
RecognizeTableAccurateOCR(req: RecognizeTableAccurateOCRRequest, cb?: (error: string, rep: RecognizeTableAccurateOCRResponse) => void): Promise<RecognizeTableAccurateOCRResponse>;
|
199
|
+
/**
|
200
|
+
* 身份证识别(安全加密版)接口实现了数据加密传输,能够有效防止个人身份证隐私信息不被窃取泄露。
|
201
|
+
|
202
|
+
本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限,识别准确度达到99%以上。
|
203
|
+
|
204
|
+
另外,本接口还支持多种增值能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备9种告警功能,如下表所示。
|
205
|
+
|
206
|
+
<table style="width:650px">
|
207
|
+
<thead>
|
208
|
+
<tr>
|
209
|
+
<th width="150">增值能力</th>
|
210
|
+
<th width="500">能力项</th>
|
211
|
+
</tr>
|
212
|
+
</thead>
|
213
|
+
<tbody>
|
214
|
+
<tr>
|
215
|
+
<td rowspan="2">裁剪功能</td>
|
216
|
+
<td>身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)</td>
|
217
|
+
</tr>
|
218
|
+
<tr>
|
219
|
+
<td>人像照片裁剪(自动抠取身份证头像区域)</td>
|
220
|
+
</tr>
|
221
|
+
<tr>
|
222
|
+
<td rowspan="9">告警功能</td>
|
223
|
+
<td>身份证有效日期不合法,即有效日期不符合5年、10年、20年、长期期限
|
224
|
+
|
225
|
+
</td>
|
226
|
+
</tr>
|
227
|
+
<tr>
|
228
|
+
<td>身份证边框不完整告警</td>
|
229
|
+
</tr>
|
230
|
+
<tr>
|
231
|
+
<td>身份证复印件告警</td>
|
232
|
+
</tr>
|
233
|
+
<tr>
|
234
|
+
<td>身份证翻拍告警</td>
|
235
|
+
</tr>
|
236
|
+
<tr>
|
237
|
+
<td>身份证框内遮挡告警</td>
|
238
|
+
</tr>
|
239
|
+
<tr>
|
240
|
+
<td>临时身份证告警</td>
|
241
|
+
</tr>
|
242
|
+
<tr>
|
243
|
+
<td>身份证疑似存在PS痕迹告警</td>
|
244
|
+
</tr>
|
245
|
+
<tr>
|
246
|
+
<td>图片模糊告警(可根据图片质量分数判断)</td>
|
247
|
+
</tr>
|
248
|
+
</tbody>
|
249
|
+
</table>
|
250
|
+
|
251
|
+
默认接口请求频率限制:20次/秒。
|
252
|
+
*/
|
253
|
+
RecognizeEncryptedIDCardOCR(req: RecognizeEncryptedIDCardOCRRequest, cb?: (error: string, rep: RecognizeEncryptedIDCardOCRResponse) => void): Promise<RecognizeEncryptedIDCardOCRResponse>;
|
199
254
|
/**
|
200
255
|
* 本接口支持多张、多类型票据的混合检测和自动分类,返回对应票据类型。目前已支持增值税发票、增值税发票(卷票)、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票、酒店账单、客运限额发票、购物小票、完税证明共15种票据。
|
201
256
|
默认接口请求频率限制:5次/秒。
|
@@ -245,6 +245,63 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
245
245
|
async RecognizeTableAccurateOCR(req, cb) {
|
246
246
|
return this.request("RecognizeTableAccurateOCR", req, cb);
|
247
247
|
}
|
248
|
+
/**
|
249
|
+
* 身份证识别(安全加密版)接口实现了数据加密传输,能够有效防止个人身份证隐私信息不被窃取泄露。
|
250
|
+
|
251
|
+
本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限,识别准确度达到99%以上。
|
252
|
+
|
253
|
+
另外,本接口还支持多种增值能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备9种告警功能,如下表所示。
|
254
|
+
|
255
|
+
<table style="width:650px">
|
256
|
+
<thead>
|
257
|
+
<tr>
|
258
|
+
<th width="150">增值能力</th>
|
259
|
+
<th width="500">能力项</th>
|
260
|
+
</tr>
|
261
|
+
</thead>
|
262
|
+
<tbody>
|
263
|
+
<tr>
|
264
|
+
<td rowspan="2">裁剪功能</td>
|
265
|
+
<td>身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)</td>
|
266
|
+
</tr>
|
267
|
+
<tr>
|
268
|
+
<td>人像照片裁剪(自动抠取身份证头像区域)</td>
|
269
|
+
</tr>
|
270
|
+
<tr>
|
271
|
+
<td rowspan="9">告警功能</td>
|
272
|
+
<td>身份证有效日期不合法,即有效日期不符合5年、10年、20年、长期期限
|
273
|
+
|
274
|
+
</td>
|
275
|
+
</tr>
|
276
|
+
<tr>
|
277
|
+
<td>身份证边框不完整告警</td>
|
278
|
+
</tr>
|
279
|
+
<tr>
|
280
|
+
<td>身份证复印件告警</td>
|
281
|
+
</tr>
|
282
|
+
<tr>
|
283
|
+
<td>身份证翻拍告警</td>
|
284
|
+
</tr>
|
285
|
+
<tr>
|
286
|
+
<td>身份证框内遮挡告警</td>
|
287
|
+
</tr>
|
288
|
+
<tr>
|
289
|
+
<td>临时身份证告警</td>
|
290
|
+
</tr>
|
291
|
+
<tr>
|
292
|
+
<td>身份证疑似存在PS痕迹告警</td>
|
293
|
+
</tr>
|
294
|
+
<tr>
|
295
|
+
<td>图片模糊告警(可根据图片质量分数判断)</td>
|
296
|
+
</tr>
|
297
|
+
</tbody>
|
298
|
+
</table>
|
299
|
+
|
300
|
+
默认接口请求频率限制:20次/秒。
|
301
|
+
*/
|
302
|
+
async RecognizeEncryptedIDCardOCR(req, cb) {
|
303
|
+
return this.request("RecognizeEncryptedIDCardOCR", req, cb);
|
304
|
+
}
|
248
305
|
/**
|
249
306
|
* 本接口支持多张、多类型票据的混合检测和自动分类,返回对应票据类型。目前已支持增值税发票、增值税发票(卷票)、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票、酒店账单、客运限额发票、购物小票、完税证明共15种票据。
|
250
307
|
默认接口请求频率限制:5次/秒。
|