tencentcloud-sdk-nodejs-ocr 4.0.1002 → 4.0.1003
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 +38 -38
- package/src/services/ocr/v20181119/ocr_client.ts +44 -16
- package/src/services/ocr/v20181119/ocr_models.ts +264 -79
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +17 -9
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +21 -9
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +256 -79
@@ -886,6 +886,90 @@ export interface TollInvoiceOCRResponse {
|
|
886
886
|
RequestId?: string
|
887
887
|
}
|
888
888
|
|
889
|
+
/**
|
890
|
+
* GetOCRToken返回参数结构体
|
891
|
+
*/
|
892
|
+
export interface GetOCRTokenResponse {
|
893
|
+
/**
|
894
|
+
* token值
|
895
|
+
*/
|
896
|
+
OCRToken?: string
|
897
|
+
/**
|
898
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
899
|
+
*/
|
900
|
+
RequestId?: string
|
901
|
+
}
|
902
|
+
|
903
|
+
/**
|
904
|
+
* 身份证ocr信息结果
|
905
|
+
*/
|
906
|
+
export interface IDCardInfoResult {
|
907
|
+
/**
|
908
|
+
* 警告代码
|
909
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
910
|
+
*/
|
911
|
+
WarnCodes?: Array<number | bigint>
|
912
|
+
/**
|
913
|
+
* 地址
|
914
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
915
|
+
*/
|
916
|
+
Address?: string
|
917
|
+
/**
|
918
|
+
* 签发机关
|
919
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
920
|
+
*/
|
921
|
+
Authority?: string
|
922
|
+
/**
|
923
|
+
* 出生日期
|
924
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
925
|
+
*/
|
926
|
+
Birth?: string
|
927
|
+
/**
|
928
|
+
* 身份证号
|
929
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
930
|
+
*/
|
931
|
+
IdNum?: string
|
932
|
+
/**
|
933
|
+
* 名字
|
934
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
935
|
+
*/
|
936
|
+
Name?: string
|
937
|
+
/**
|
938
|
+
* 地区
|
939
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
940
|
+
*/
|
941
|
+
Nation?: string
|
942
|
+
/**
|
943
|
+
* 性别
|
944
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
945
|
+
*/
|
946
|
+
Sex?: string
|
947
|
+
/**
|
948
|
+
* 到期时间
|
949
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
950
|
+
*/
|
951
|
+
ValidDate?: string
|
952
|
+
/**
|
953
|
+
* 请求的id
|
954
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
955
|
+
*/
|
956
|
+
RequestId?: string
|
957
|
+
/**
|
958
|
+
* 错误码
|
959
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
960
|
+
*/
|
961
|
+
ErrorCode?: string
|
962
|
+
/**
|
963
|
+
* 错误信息
|
964
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
965
|
+
*/
|
966
|
+
ErrorMessage?: string
|
967
|
+
/**
|
968
|
+
* 原图地址
|
969
|
+
*/
|
970
|
+
ImageUrl?: string
|
971
|
+
}
|
972
|
+
|
889
973
|
/**
|
890
974
|
* FinanBillSliceOCR返回参数结构体
|
891
975
|
*/
|
@@ -3114,25 +3198,29 @@ export interface GeneralBasicOCRResponse {
|
|
3114
3198
|
}
|
3115
3199
|
|
3116
3200
|
/**
|
3117
|
-
*
|
3201
|
+
* 港澳台来往内地通行证背面字段信息
|
3118
3202
|
*/
|
3119
|
-
export interface
|
3203
|
+
export interface MainlandTravelPermitBackInfos {
|
3120
3204
|
/**
|
3121
|
-
*
|
3205
|
+
* String 证件类别, 如:台湾居民来往大陆通行证、港澳居民来往内地通行证。
|
3206
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
3122
3207
|
*/
|
3123
|
-
|
3208
|
+
Type?: string
|
3124
3209
|
/**
|
3125
|
-
*
|
3210
|
+
* 卡证背面的中文姓名
|
3211
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
3126
3212
|
*/
|
3127
|
-
|
3213
|
+
Name?: string
|
3128
3214
|
/**
|
3129
|
-
*
|
3215
|
+
* 卡证背面的身份证号码
|
3216
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
3130
3217
|
*/
|
3131
|
-
|
3218
|
+
IDNumber?: string
|
3132
3219
|
/**
|
3133
|
-
*
|
3220
|
+
* 历史通行证号码
|
3221
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
3134
3222
|
*/
|
3135
|
-
|
3223
|
+
HistoryNumber?: string
|
3136
3224
|
}
|
3137
3225
|
|
3138
3226
|
/**
|
@@ -3289,53 +3377,35 @@ export interface ClassifyDetectOCRResponse {
|
|
3289
3377
|
}
|
3290
3378
|
|
3291
3379
|
/**
|
3292
|
-
*
|
3380
|
+
* VinOCR请求参数结构体
|
3293
3381
|
*/
|
3294
|
-
export interface
|
3295
|
-
/**
|
3296
|
-
* 发票号码,8位、20位(全电票)
|
3297
|
-
*/
|
3298
|
-
InvoiceNo: string
|
3299
|
-
/**
|
3300
|
-
* 开票日期(不支持当天发票查询,支持五年以内开具的发票),格式:“YYYY-MM-DD”,如:2019-12-20。
|
3301
|
-
*/
|
3302
|
-
InvoiceDate: string
|
3303
|
-
/**
|
3304
|
-
* 发票代码(10或12 位),全电发票为空。查验未成功超过5次后当日无法再查。
|
3305
|
-
*/
|
3306
|
-
InvoiceCode?: string
|
3307
|
-
/**
|
3308
|
-
* 票种类型 01:增值税专用发票, 02:货运运输业增值税专用发 票, 03:机动车销售统一发票, 04:增值税普通发票, 08:增值税电子专用发票(含全电), 10:增值税电子普通发票(含全电), 11:增值税普通发票(卷式), 14:增值税电子(通行费)发 票, 15:二手车销售统一发票,16:财务发票, 32:深圳区块链发票(云南区块链因业务调整现已下线)。
|
3309
|
-
*/
|
3310
|
-
InvoiceKind?: string
|
3311
|
-
/**
|
3312
|
-
* 校验码后 6 位,增值税普通发票、增值税电子普通发票、增值税普通发票(卷式)、增值税电子普通发票(通行费)、全电纸质发票(增值税普通发票)、财政票据时必填;
|
3313
|
-
区块链为 5 位
|
3314
|
-
*/
|
3315
|
-
CheckCode?: string
|
3316
|
-
/**
|
3317
|
-
* 不含税金额,增值税专用发票、增值税电子专用发票、机动车销售统一发票、二手车销售统一发票、区块链发票、财政发票时必填; 全电发票为价税合计(含税金额)
|
3318
|
-
*/
|
3319
|
-
Amount?: string
|
3320
|
-
/**
|
3321
|
-
* 地区编码,通用机打电子发票时必填。
|
3322
|
-
广东:4400,浙江:3300
|
3323
|
-
*/
|
3324
|
-
RegionCode?: string
|
3382
|
+
export interface VinOCRRequest {
|
3325
3383
|
/**
|
3326
|
-
*
|
3384
|
+
* 图片的 Base64 值。
|
3385
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
3386
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
3387
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
3327
3388
|
*/
|
3328
|
-
|
3389
|
+
ImageBase64?: string
|
3329
3390
|
/**
|
3330
|
-
*
|
3391
|
+
* 图片的 Url 地址。
|
3392
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
3393
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
3394
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
3395
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
3331
3396
|
*/
|
3332
|
-
|
3333
|
-
|
3334
|
-
* 是否允许查验当日发票,默认值为false。
|
3397
|
+
ImageUrl?: string
|
3398
|
+
}
|
3335
3399
|
|
3336
|
-
|
3400
|
+
/**
|
3401
|
+
* ocr结果信息
|
3402
|
+
*/
|
3403
|
+
export interface OCRResult {
|
3404
|
+
/**
|
3405
|
+
* 身份证结果
|
3406
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
3337
3407
|
*/
|
3338
|
-
|
3408
|
+
IDCardResult?: IDCardResult
|
3339
3409
|
}
|
3340
3410
|
|
3341
3411
|
/**
|
@@ -6666,6 +6736,54 @@ export interface ReconstructDocumentRequest {
|
|
6666
6736
|
Config?: ReconstructDocumentConfig
|
6667
6737
|
}
|
6668
6738
|
|
6739
|
+
/**
|
6740
|
+
* VatInvoiceVerifyNew请求参数结构体
|
6741
|
+
*/
|
6742
|
+
export interface VatInvoiceVerifyNewRequest {
|
6743
|
+
/**
|
6744
|
+
* 发票号码,8位、20位(全电票)
|
6745
|
+
*/
|
6746
|
+
InvoiceNo: string
|
6747
|
+
/**
|
6748
|
+
* 开票日期(不支持当天发票查询,支持五年以内开具的发票),格式:“YYYY-MM-DD”,如:2019-12-20。
|
6749
|
+
*/
|
6750
|
+
InvoiceDate: string
|
6751
|
+
/**
|
6752
|
+
* 发票代码(10或12 位),全电发票为空。查验超过5次后当日无法再查。
|
6753
|
+
*/
|
6754
|
+
InvoiceCode?: string
|
6755
|
+
/**
|
6756
|
+
* 票种类型 01:增值税专用发票, 02:货运运输业增值税专用发 票, 03:机动车销售统一发票, 04:增值税普通发票, 08:增值税电子专用发票(含全电), 10:增值税电子普通发票(含全电), 11:增值税普通发票(卷式), 14:增值税电子(通行费)发 票, 15:二手车销售统一发票,16:财务发票, 32:深圳区块链发票(云南区块链因业务调整现已下线)。
|
6757
|
+
*/
|
6758
|
+
InvoiceKind?: string
|
6759
|
+
/**
|
6760
|
+
* 校验码后 6 位,增值税普通发票、增值税电子普通发票、增值税普通发票(卷式)、增值税电子普通发票(通行费)、全电纸质发票(增值税普通发票)、财政票据时必填;
|
6761
|
+
区块链为 5 位
|
6762
|
+
*/
|
6763
|
+
CheckCode?: string
|
6764
|
+
/**
|
6765
|
+
* 不含税金额,增值税专用发票、增值税电子专用发票、机动车销售统一发票、二手车销售统一发票、区块链发票、财政发票时必填; 全电发票为价税合计(含税金额)
|
6766
|
+
*/
|
6767
|
+
Amount?: string
|
6768
|
+
/**
|
6769
|
+
* 地区编码,通用机打电子发票时必填。
|
6770
|
+
广东:4400,浙江:3300
|
6771
|
+
*/
|
6772
|
+
RegionCode?: string
|
6773
|
+
/**
|
6774
|
+
* 销方税号,通用机打电子发票必填,区块链发票时必填
|
6775
|
+
*/
|
6776
|
+
SellerTaxCode?: string
|
6777
|
+
/**
|
6778
|
+
* 是否开启通用机打电子发票,默认为关闭。
|
6779
|
+
*/
|
6780
|
+
EnableCommonElectronic?: boolean
|
6781
|
+
/**
|
6782
|
+
* 是否允许查验当日发票,默认值为false。请注意,发票从开具到录入税局需要一定的时间来更新和验证发票信息,打开后仅支持查验已成功录入到税局中的当日发票。
|
6783
|
+
*/
|
6784
|
+
EnableTodayInvoice?: boolean
|
6785
|
+
}
|
6786
|
+
|
6669
6787
|
/**
|
6670
6788
|
* InstitutionOCR请求参数结构体
|
6671
6789
|
*/
|
@@ -8152,6 +8270,40 @@ export interface TableDetectInfo {
|
|
8152
8270
|
TableCoordPoint: Array<Coord>
|
8153
8271
|
}
|
8154
8272
|
|
8273
|
+
/**
|
8274
|
+
* 身份证配置信息
|
8275
|
+
*/
|
8276
|
+
export interface IDCardConfig {
|
8277
|
+
/**
|
8278
|
+
* 默认为false
|
8279
|
+
*/
|
8280
|
+
CopyWarn?: boolean
|
8281
|
+
/**
|
8282
|
+
* 默认为false
|
8283
|
+
*/
|
8284
|
+
BorderCheckWarn?: boolean
|
8285
|
+
/**
|
8286
|
+
* 默认为false
|
8287
|
+
*/
|
8288
|
+
ReshootWarn?: boolean
|
8289
|
+
/**
|
8290
|
+
* 默认为false
|
8291
|
+
*/
|
8292
|
+
DetectPsWarn?: boolean
|
8293
|
+
/**
|
8294
|
+
* 默认为false
|
8295
|
+
*/
|
8296
|
+
TempIdWarn?: boolean
|
8297
|
+
/**
|
8298
|
+
* 默认为false
|
8299
|
+
*/
|
8300
|
+
InvalidDateWarn?: boolean
|
8301
|
+
/**
|
8302
|
+
* 默认为false
|
8303
|
+
*/
|
8304
|
+
ReflectWarn?: boolean
|
8305
|
+
}
|
8306
|
+
|
8155
8307
|
/**
|
8156
8308
|
* ResidenceBookletOCR返回参数结构体
|
8157
8309
|
*/
|
@@ -9112,6 +9264,16 @@ export interface ResidenceBookletOCRRequest {
|
|
9112
9264
|
ImageUrl?: string
|
9113
9265
|
}
|
9114
9266
|
|
9267
|
+
/**
|
9268
|
+
* GetOCRResult请求参数结构体
|
9269
|
+
*/
|
9270
|
+
export interface GetOCRResultRequest {
|
9271
|
+
/**
|
9272
|
+
* token值
|
9273
|
+
*/
|
9274
|
+
OCRToken: string
|
9275
|
+
}
|
9276
|
+
|
9115
9277
|
/**
|
9116
9278
|
* BusInvoiceOCR返回参数结构体
|
9117
9279
|
*/
|
@@ -9153,6 +9315,24 @@ DataMatrix:DATA_MATRIX
|
|
9153
9315
|
Position?: QrcodePositionObj
|
9154
9316
|
}
|
9155
9317
|
|
9318
|
+
/**
|
9319
|
+
* GetOCRResult返回参数结构体
|
9320
|
+
*/
|
9321
|
+
export interface GetOCRResultResponse {
|
9322
|
+
/**
|
9323
|
+
* ocr业务类型
|
9324
|
+
*/
|
9325
|
+
Type?: string
|
9326
|
+
/**
|
9327
|
+
* ocr结果
|
9328
|
+
*/
|
9329
|
+
OCRResult?: OCRResult
|
9330
|
+
/**
|
9331
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
9332
|
+
*/
|
9333
|
+
RequestId?: string
|
9334
|
+
}
|
9335
|
+
|
9156
9336
|
/**
|
9157
9337
|
* MainlandPermitOCR返回参数结构体
|
9158
9338
|
*/
|
@@ -10026,29 +10206,19 @@ export interface GeneralHandwritingOCRResponse {
|
|
10026
10206
|
}
|
10027
10207
|
|
10028
10208
|
/**
|
10029
|
-
*
|
10209
|
+
* IDCardResult
|
10030
10210
|
*/
|
10031
|
-
export interface
|
10211
|
+
export interface IDCardResult {
|
10032
10212
|
/**
|
10033
|
-
*
|
10213
|
+
* 正面结果
|
10034
10214
|
注意:此字段可能返回 null,表示取不到有效值。
|
10035
10215
|
*/
|
10036
|
-
|
10216
|
+
Front?: IDCardInfoResult
|
10037
10217
|
/**
|
10038
|
-
*
|
10218
|
+
* 反面结果
|
10039
10219
|
注意:此字段可能返回 null,表示取不到有效值。
|
10040
10220
|
*/
|
10041
|
-
|
10042
|
-
/**
|
10043
|
-
* 卡证背面的身份证号码
|
10044
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
10045
|
-
*/
|
10046
|
-
IDNumber?: string
|
10047
|
-
/**
|
10048
|
-
* 历史通行证号码
|
10049
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
10050
|
-
*/
|
10051
|
-
HistoryNumber?: string
|
10221
|
+
Back?: IDCardInfoResult
|
10052
10222
|
}
|
10053
10223
|
|
10054
10224
|
/**
|
@@ -10366,24 +10536,39 @@ export interface ReconstructDocumentConfig {
|
|
10366
10536
|
}
|
10367
10537
|
|
10368
10538
|
/**
|
10369
|
-
*
|
10539
|
+
* RecognizeStoreName返回参数结构体
|
10370
10540
|
*/
|
10371
|
-
export interface
|
10541
|
+
export interface RecognizeStoreNameResponse {
|
10372
10542
|
/**
|
10373
|
-
*
|
10374
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
10375
|
-
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
10376
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
10543
|
+
* 门头照名称
|
10377
10544
|
*/
|
10378
|
-
|
10545
|
+
StoreInfo?: Array<StoreInfo>
|
10379
10546
|
/**
|
10380
|
-
*
|
10381
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
10382
|
-
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
10383
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
10384
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
10547
|
+
* 图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负
|
10385
10548
|
*/
|
10386
|
-
|
10549
|
+
Angle?: number
|
10550
|
+
/**
|
10551
|
+
* 门头照标签
|
10552
|
+
*/
|
10553
|
+
StoreLabel?: Array<string>
|
10554
|
+
/**
|
10555
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
10556
|
+
*/
|
10557
|
+
RequestId?: string
|
10558
|
+
}
|
10559
|
+
|
10560
|
+
/**
|
10561
|
+
* GetOCRToken请求参数结构体
|
10562
|
+
*/
|
10563
|
+
export interface GetOCRTokenRequest {
|
10564
|
+
/**
|
10565
|
+
* 业务类型,如身份证识别为IDCardOCR
|
10566
|
+
*/
|
10567
|
+
Type: string
|
10568
|
+
/**
|
10569
|
+
* 身份证配置信息
|
10570
|
+
*/
|
10571
|
+
IDCardConfig?: IDCardConfig
|
10387
10572
|
}
|
10388
10573
|
|
10389
10574
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
2
|
-
import { RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, BankCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, MLIDPassportOCRRequest, RecognizeGeneralTextImageWarnResponse, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, CreateAIFormTaskRequest, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, InstitutionOCRResponse, DriverLicenseOCRRequest, SmartStructuralProRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, SmartStructuralOCRV2Response, EnterpriseLicenseOCRRequest, SmartStructuralOCRRequest, RecognizeStoreNameRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, SmartStructuralOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, GeneralAccurateOCRResponse, QrcodeOCRRequest, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse,
|
2
|
+
import { RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, BankCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, MLIDPassportOCRRequest, RecognizeGeneralTextImageWarnResponse, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, CreateAIFormTaskRequest, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, InstitutionOCRResponse, DriverLicenseOCRRequest, SmartStructuralProRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, SmartStructuralOCRV2Response, EnterpriseLicenseOCRRequest, SmartStructuralOCRRequest, RecognizeStoreNameRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, SmartStructuralOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, GeneralAccurateOCRResponse, QrcodeOCRRequest, 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, GeneralHandwritingOCRResponse, TableOCRResponse, AdvertiseOCRResponse, VehicleLicenseOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, RecognizeStoreNameResponse, GetOCRTokenRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, TableOCRRequest, VatInvoiceOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRResponse, BusinessCardOCRRequest, FinanBillOCRRequest, QuotaInvoiceOCRResponse, RecognizeGeneralTextImageWarnRequest, RecognizeForeignPermanentResidentIdCardRequest, GeneralFastOCRResponse } from "./ocr_models";
|
3
3
|
/**
|
4
4
|
* ocr client
|
5
5
|
* @class
|
@@ -102,10 +102,16 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
102
102
|
默认接口请求频率限制:1次/秒。
|
103
103
|
*/
|
104
104
|
InsuranceBillOCR(req: InsuranceBillOCRRequest, cb?: (error: string, rep: InsuranceBillOCRResponse) => void): Promise<InsuranceBillOCRResponse>;
|
105
|
+
/**
|
106
|
+
* 本接口支持网约车行程单关键字段的识别,包括行程起止日期、上车时间、起点、终点、里程、金额等字段。
|
107
|
+
|
108
|
+
默认接口请求频率限制:20次/秒。
|
109
|
+
*/
|
110
|
+
RecognizeOnlineTaxiItineraryOCR(req: RecognizeOnlineTaxiItineraryOCRRequest, cb?: (error: string, rep: RecognizeOnlineTaxiItineraryOCRResponse) => void): Promise<RecognizeOnlineTaxiItineraryOCRResponse>;
|
105
111
|
/**
|
106
112
|
* 本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限,识别准确度达到99%以上。
|
107
113
|
|
108
|
-
|
114
|
+
另外,本接口还支持多种扩展能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备8种告警功能,如下表所示。
|
109
115
|
|
110
116
|
<table style="width:650px">
|
111
117
|
<thead>
|
@@ -250,7 +256,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
250
256
|
*/
|
251
257
|
RecognizeContainerOCR(req: RecognizeContainerOCRRequest, cb?: (error: string, rep: RecognizeContainerOCRResponse) => void): Promise<RecognizeContainerOCRResponse>;
|
252
258
|
/**
|
253
|
-
* 本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2
|
259
|
+
* 本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2。
|
254
260
|
|
255
261
|
默认接口请求频率限制:2次/秒。
|
256
262
|
*/
|
@@ -260,7 +266,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
260
266
|
|
261
267
|
本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限,识别准确度达到99%以上。
|
262
268
|
|
263
|
-
|
269
|
+
另外,本接口还支持多种扩展能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备9种告警功能,如下表所示。
|
264
270
|
|
265
271
|
<table style="width:650px">
|
266
272
|
<thead>
|
@@ -430,11 +436,9 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
430
436
|
*/
|
431
437
|
GetTaskState(req: GetTaskStateRequest, cb?: (error: string, rep: GetTaskStateResponse) => void): Promise<GetTaskStateResponse>;
|
432
438
|
/**
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
*/
|
437
|
-
RecognizeOnlineTaxiItineraryOCR(req: RecognizeOnlineTaxiItineraryOCRRequest, cb?: (error: string, rep: RecognizeOnlineTaxiItineraryOCRResponse) => void): Promise<RecognizeOnlineTaxiItineraryOCRResponse>;
|
439
|
+
* 获取ocr结果
|
440
|
+
*/
|
441
|
+
GetOCRResult(req: GetOCRResultRequest, cb?: (error: string, rep: GetOCRResultResponse) => void): Promise<GetOCRResultResponse>;
|
438
442
|
/**
|
439
443
|
* 本接口支持中国香港身份证人像面中关键字段的识别,包括中文姓名、英文姓名、姓名电码、出生日期、性别、证件符号、首次签发日期、最近领用日期、身份证号、是否是永久性居民身份证;具备人像照片裁剪等扩展功能。
|
440
444
|
|
@@ -740,6 +744,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
740
744
|
默认接口请求频率限制:5次/秒。
|
741
745
|
*/
|
742
746
|
FinanBillOCR(req: FinanBillOCRRequest, cb?: (error: string, rep: FinanBillOCRResponse) => void): Promise<FinanBillOCRResponse>;
|
747
|
+
/**
|
748
|
+
* 获取ocr的token值
|
749
|
+
*/
|
750
|
+
GetOCRToken(req: GetOCRTokenRequest, cb?: (error: string, rep: GetOCRTokenResponse) => void): Promise<GetOCRTokenResponse>;
|
743
751
|
/**
|
744
752
|
* 本接口支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(铁路电子客票)、电子发票(航空运输电子客票行程单)识别,返回发票代码、发票号码、开票日期、验证码、机器编号、密码区,购买方和销售方信息,包括名称、纳税人识别号、地址电话、开户行及账号,以及价税合计、开票人、收款人、复核人、税额、不含税金额等字段信息。
|
745
753
|
*/
|
@@ -135,10 +135,18 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
135
135
|
async InsuranceBillOCR(req, cb) {
|
136
136
|
return this.request("InsuranceBillOCR", req, cb);
|
137
137
|
}
|
138
|
+
/**
|
139
|
+
* 本接口支持网约车行程单关键字段的识别,包括行程起止日期、上车时间、起点、终点、里程、金额等字段。
|
140
|
+
|
141
|
+
默认接口请求频率限制:20次/秒。
|
142
|
+
*/
|
143
|
+
async RecognizeOnlineTaxiItineraryOCR(req, cb) {
|
144
|
+
return this.request("RecognizeOnlineTaxiItineraryOCR", req, cb);
|
145
|
+
}
|
138
146
|
/**
|
139
147
|
* 本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限,识别准确度达到99%以上。
|
140
148
|
|
141
|
-
|
149
|
+
另外,本接口还支持多种扩展能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备8种告警功能,如下表所示。
|
142
150
|
|
143
151
|
<table style="width:650px">
|
144
152
|
<thead>
|
@@ -297,7 +305,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
297
305
|
return this.request("RecognizeContainerOCR", req, cb);
|
298
306
|
}
|
299
307
|
/**
|
300
|
-
* 本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2
|
308
|
+
* 本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2。
|
301
309
|
|
302
310
|
默认接口请求频率限制:2次/秒。
|
303
311
|
*/
|
@@ -309,7 +317,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
309
317
|
|
310
318
|
本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限,识别准确度达到99%以上。
|
311
319
|
|
312
|
-
|
320
|
+
另外,本接口还支持多种扩展能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备9种告警功能,如下表所示。
|
313
321
|
|
314
322
|
<table style="width:650px">
|
315
323
|
<thead>
|
@@ -521,12 +529,10 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
521
529
|
return this.request("GetTaskState", req, cb);
|
522
530
|
}
|
523
531
|
/**
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
async RecognizeOnlineTaxiItineraryOCR(req, cb) {
|
529
|
-
return this.request("RecognizeOnlineTaxiItineraryOCR", req, cb);
|
532
|
+
* 获取ocr结果
|
533
|
+
*/
|
534
|
+
async GetOCRResult(req, cb) {
|
535
|
+
return this.request("GetOCRResult", req, cb);
|
530
536
|
}
|
531
537
|
/**
|
532
538
|
* 本接口支持中国香港身份证人像面中关键字段的识别,包括中文姓名、英文姓名、姓名电码、出生日期、性别、证件符号、首次签发日期、最近领用日期、身份证号、是否是永久性居民身份证;具备人像照片裁剪等扩展功能。
|
@@ -911,6 +917,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
911
917
|
async FinanBillOCR(req, cb) {
|
912
918
|
return this.request("FinanBillOCR", req, cb);
|
913
919
|
}
|
920
|
+
/**
|
921
|
+
* 获取ocr的token值
|
922
|
+
*/
|
923
|
+
async GetOCRToken(req, cb) {
|
924
|
+
return this.request("GetOCRToken", req, cb);
|
925
|
+
}
|
914
926
|
/**
|
915
927
|
* 本接口支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(铁路电子客票)、电子发票(航空运输电子客票行程单)识别,返回发票代码、发票号码、开票日期、验证码、机器编号、密码区,购买方和销售方信息,包括名称、纳税人识别号、地址电话、开户行及账号,以及价税合计、开票人、收款人、复核人、税额、不含税金额等字段信息。
|
916
928
|
*/
|