tencentcloud-sdk-nodejs-ocr 4.0.1002 → 4.0.1004
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 +43 -43
- package/src/services/ocr/v20181119/ocr_client.ts +47 -19
- package/src/services/ocr/v20181119/ocr_models.ts +268 -79
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +20 -12
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +24 -12
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +260 -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
|
*/
|
@@ -1778,6 +1862,10 @@ export interface SmartStructuralProRequest {
|
|
1778
1862
|
* 配置id支持:General -- 通用场景 InvoiceEng -- 海运提单、国际invoice模版 WayBillEng --海运订单模板
|
1779
1863
|
*/
|
1780
1864
|
ConfigId?: string
|
1865
|
+
/**
|
1866
|
+
* 是否开启全文字段坐标值的识别
|
1867
|
+
*/
|
1868
|
+
EnableCoord?: boolean
|
1781
1869
|
}
|
1782
1870
|
|
1783
1871
|
/**
|
@@ -3114,25 +3202,29 @@ export interface GeneralBasicOCRResponse {
|
|
3114
3202
|
}
|
3115
3203
|
|
3116
3204
|
/**
|
3117
|
-
*
|
3205
|
+
* 港澳台来往内地通行证背面字段信息
|
3118
3206
|
*/
|
3119
|
-
export interface
|
3207
|
+
export interface MainlandTravelPermitBackInfos {
|
3120
3208
|
/**
|
3121
|
-
*
|
3209
|
+
* String 证件类别, 如:台湾居民来往大陆通行证、港澳居民来往内地通行证。
|
3210
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
3122
3211
|
*/
|
3123
|
-
|
3212
|
+
Type?: string
|
3124
3213
|
/**
|
3125
|
-
*
|
3214
|
+
* 卡证背面的中文姓名
|
3215
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
3126
3216
|
*/
|
3127
|
-
|
3217
|
+
Name?: string
|
3128
3218
|
/**
|
3129
|
-
*
|
3219
|
+
* 卡证背面的身份证号码
|
3220
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
3130
3221
|
*/
|
3131
|
-
|
3222
|
+
IDNumber?: string
|
3132
3223
|
/**
|
3133
|
-
*
|
3224
|
+
* 历史通行证号码
|
3225
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
3134
3226
|
*/
|
3135
|
-
|
3227
|
+
HistoryNumber?: string
|
3136
3228
|
}
|
3137
3229
|
|
3138
3230
|
/**
|
@@ -3289,53 +3381,35 @@ export interface ClassifyDetectOCRResponse {
|
|
3289
3381
|
}
|
3290
3382
|
|
3291
3383
|
/**
|
3292
|
-
*
|
3384
|
+
* VinOCR请求参数结构体
|
3293
3385
|
*/
|
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
|
3386
|
+
export interface VinOCRRequest {
|
3325
3387
|
/**
|
3326
|
-
*
|
3388
|
+
* 图片的 Base64 值。
|
3389
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
3390
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
3391
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
3327
3392
|
*/
|
3328
|
-
|
3393
|
+
ImageBase64?: string
|
3329
3394
|
/**
|
3330
|
-
*
|
3395
|
+
* 图片的 Url 地址。
|
3396
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
3397
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
3398
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
3399
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
3331
3400
|
*/
|
3332
|
-
|
3333
|
-
|
3334
|
-
* 是否允许查验当日发票,默认值为false。
|
3401
|
+
ImageUrl?: string
|
3402
|
+
}
|
3335
3403
|
|
3336
|
-
|
3404
|
+
/**
|
3405
|
+
* ocr结果信息
|
3406
|
+
*/
|
3407
|
+
export interface OCRResult {
|
3408
|
+
/**
|
3409
|
+
* 身份证结果
|
3410
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
3337
3411
|
*/
|
3338
|
-
|
3412
|
+
IDCardResult?: IDCardResult
|
3339
3413
|
}
|
3340
3414
|
|
3341
3415
|
/**
|
@@ -6666,6 +6740,54 @@ export interface ReconstructDocumentRequest {
|
|
6666
6740
|
Config?: ReconstructDocumentConfig
|
6667
6741
|
}
|
6668
6742
|
|
6743
|
+
/**
|
6744
|
+
* VatInvoiceVerifyNew请求参数结构体
|
6745
|
+
*/
|
6746
|
+
export interface VatInvoiceVerifyNewRequest {
|
6747
|
+
/**
|
6748
|
+
* 发票号码,8位、20位(全电票)
|
6749
|
+
*/
|
6750
|
+
InvoiceNo: string
|
6751
|
+
/**
|
6752
|
+
* 开票日期(不支持当天发票查询,支持五年以内开具的发票),格式:“YYYY-MM-DD”,如:2019-12-20。
|
6753
|
+
*/
|
6754
|
+
InvoiceDate: string
|
6755
|
+
/**
|
6756
|
+
* 发票代码(10或12 位),全电发票为空。查验超过5次后当日无法再查。
|
6757
|
+
*/
|
6758
|
+
InvoiceCode?: string
|
6759
|
+
/**
|
6760
|
+
* 票种类型 01:增值税专用发票, 02:货运运输业增值税专用发 票, 03:机动车销售统一发票, 04:增值税普通发票, 08:增值税电子专用发票(含全电), 10:增值税电子普通发票(含全电), 11:增值税普通发票(卷式), 14:增值税电子(通行费)发 票, 15:二手车销售统一发票,16:财务发票, 32:深圳区块链发票(云南区块链因业务调整现已下线)。
|
6761
|
+
*/
|
6762
|
+
InvoiceKind?: string
|
6763
|
+
/**
|
6764
|
+
* 校验码后 6 位,增值税普通发票、增值税电子普通发票、增值税普通发票(卷式)、增值税电子普通发票(通行费)、全电纸质发票(增值税普通发票)、财政票据时必填;
|
6765
|
+
区块链为 5 位
|
6766
|
+
*/
|
6767
|
+
CheckCode?: string
|
6768
|
+
/**
|
6769
|
+
* 不含税金额,增值税专用发票、增值税电子专用发票、机动车销售统一发票、二手车销售统一发票、区块链发票、财政发票时必填; 全电发票为价税合计(含税金额)
|
6770
|
+
*/
|
6771
|
+
Amount?: string
|
6772
|
+
/**
|
6773
|
+
* 地区编码,通用机打电子发票时必填。
|
6774
|
+
广东:4400,浙江:3300
|
6775
|
+
*/
|
6776
|
+
RegionCode?: string
|
6777
|
+
/**
|
6778
|
+
* 销方税号,通用机打电子发票必填,区块链发票时必填
|
6779
|
+
*/
|
6780
|
+
SellerTaxCode?: string
|
6781
|
+
/**
|
6782
|
+
* 是否开启通用机打电子发票,默认为关闭。
|
6783
|
+
*/
|
6784
|
+
EnableCommonElectronic?: boolean
|
6785
|
+
/**
|
6786
|
+
* 是否允许查验当日发票,默认值为false。请注意,发票从开具到录入税局需要一定的时间来更新和验证发票信息,打开后仅支持查验已成功录入到税局中的当日发票。
|
6787
|
+
*/
|
6788
|
+
EnableTodayInvoice?: boolean
|
6789
|
+
}
|
6790
|
+
|
6669
6791
|
/**
|
6670
6792
|
* InstitutionOCR请求参数结构体
|
6671
6793
|
*/
|
@@ -8152,6 +8274,40 @@ export interface TableDetectInfo {
|
|
8152
8274
|
TableCoordPoint: Array<Coord>
|
8153
8275
|
}
|
8154
8276
|
|
8277
|
+
/**
|
8278
|
+
* 身份证配置信息
|
8279
|
+
*/
|
8280
|
+
export interface IDCardConfig {
|
8281
|
+
/**
|
8282
|
+
* 默认为false
|
8283
|
+
*/
|
8284
|
+
CopyWarn?: boolean
|
8285
|
+
/**
|
8286
|
+
* 默认为false
|
8287
|
+
*/
|
8288
|
+
BorderCheckWarn?: boolean
|
8289
|
+
/**
|
8290
|
+
* 默认为false
|
8291
|
+
*/
|
8292
|
+
ReshootWarn?: boolean
|
8293
|
+
/**
|
8294
|
+
* 默认为false
|
8295
|
+
*/
|
8296
|
+
DetectPsWarn?: boolean
|
8297
|
+
/**
|
8298
|
+
* 默认为false
|
8299
|
+
*/
|
8300
|
+
TempIdWarn?: boolean
|
8301
|
+
/**
|
8302
|
+
* 默认为false
|
8303
|
+
*/
|
8304
|
+
InvalidDateWarn?: boolean
|
8305
|
+
/**
|
8306
|
+
* 默认为false
|
8307
|
+
*/
|
8308
|
+
ReflectWarn?: boolean
|
8309
|
+
}
|
8310
|
+
|
8155
8311
|
/**
|
8156
8312
|
* ResidenceBookletOCR返回参数结构体
|
8157
8313
|
*/
|
@@ -9112,6 +9268,16 @@ export interface ResidenceBookletOCRRequest {
|
|
9112
9268
|
ImageUrl?: string
|
9113
9269
|
}
|
9114
9270
|
|
9271
|
+
/**
|
9272
|
+
* GetOCRResult请求参数结构体
|
9273
|
+
*/
|
9274
|
+
export interface GetOCRResultRequest {
|
9275
|
+
/**
|
9276
|
+
* token值
|
9277
|
+
*/
|
9278
|
+
OCRToken: string
|
9279
|
+
}
|
9280
|
+
|
9115
9281
|
/**
|
9116
9282
|
* BusInvoiceOCR返回参数结构体
|
9117
9283
|
*/
|
@@ -9153,6 +9319,24 @@ DataMatrix:DATA_MATRIX
|
|
9153
9319
|
Position?: QrcodePositionObj
|
9154
9320
|
}
|
9155
9321
|
|
9322
|
+
/**
|
9323
|
+
* GetOCRResult返回参数结构体
|
9324
|
+
*/
|
9325
|
+
export interface GetOCRResultResponse {
|
9326
|
+
/**
|
9327
|
+
* ocr业务类型
|
9328
|
+
*/
|
9329
|
+
Type?: string
|
9330
|
+
/**
|
9331
|
+
* ocr结果
|
9332
|
+
*/
|
9333
|
+
OCRResult?: OCRResult
|
9334
|
+
/**
|
9335
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
9336
|
+
*/
|
9337
|
+
RequestId?: string
|
9338
|
+
}
|
9339
|
+
|
9156
9340
|
/**
|
9157
9341
|
* MainlandPermitOCR返回参数结构体
|
9158
9342
|
*/
|
@@ -10026,29 +10210,19 @@ export interface GeneralHandwritingOCRResponse {
|
|
10026
10210
|
}
|
10027
10211
|
|
10028
10212
|
/**
|
10029
|
-
*
|
10213
|
+
* IDCardResult
|
10030
10214
|
*/
|
10031
|
-
export interface
|
10215
|
+
export interface IDCardResult {
|
10032
10216
|
/**
|
10033
|
-
*
|
10217
|
+
* 正面结果
|
10034
10218
|
注意:此字段可能返回 null,表示取不到有效值。
|
10035
10219
|
*/
|
10036
|
-
|
10220
|
+
Front?: IDCardInfoResult
|
10037
10221
|
/**
|
10038
|
-
*
|
10222
|
+
* 反面结果
|
10039
10223
|
注意:此字段可能返回 null,表示取不到有效值。
|
10040
10224
|
*/
|
10041
|
-
|
10042
|
-
/**
|
10043
|
-
* 卡证背面的身份证号码
|
10044
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
10045
|
-
*/
|
10046
|
-
IDNumber?: string
|
10047
|
-
/**
|
10048
|
-
* 历史通行证号码
|
10049
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
10050
|
-
*/
|
10051
|
-
HistoryNumber?: string
|
10225
|
+
Back?: IDCardInfoResult
|
10052
10226
|
}
|
10053
10227
|
|
10054
10228
|
/**
|
@@ -10366,24 +10540,39 @@ export interface ReconstructDocumentConfig {
|
|
10366
10540
|
}
|
10367
10541
|
|
10368
10542
|
/**
|
10369
|
-
*
|
10543
|
+
* RecognizeStoreName返回参数结构体
|
10370
10544
|
*/
|
10371
|
-
export interface
|
10545
|
+
export interface RecognizeStoreNameResponse {
|
10372
10546
|
/**
|
10373
|
-
*
|
10374
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
10375
|
-
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
10376
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
10547
|
+
* 门头照名称
|
10377
10548
|
*/
|
10378
|
-
|
10549
|
+
StoreInfo?: Array<StoreInfo>
|
10379
10550
|
/**
|
10380
|
-
*
|
10381
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
10382
|
-
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
10383
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
10384
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
10551
|
+
* 图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负
|
10385
10552
|
*/
|
10386
|
-
|
10553
|
+
Angle?: number
|
10554
|
+
/**
|
10555
|
+
* 门头照标签
|
10556
|
+
*/
|
10557
|
+
StoreLabel?: Array<string>
|
10558
|
+
/**
|
10559
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
10560
|
+
*/
|
10561
|
+
RequestId?: string
|
10562
|
+
}
|
10563
|
+
|
10564
|
+
/**
|
10565
|
+
* GetOCRToken请求参数结构体
|
10566
|
+
*/
|
10567
|
+
export interface GetOCRTokenRequest {
|
10568
|
+
/**
|
10569
|
+
* 业务类型,如身份证识别为IDCardOCR
|
10570
|
+
*/
|
10571
|
+
Type: string
|
10572
|
+
/**
|
10573
|
+
* 身份证配置信息
|
10574
|
+
*/
|
10575
|
+
IDCardConfig?: IDCardConfig
|
10387
10576
|
}
|
10388
10577
|
|
10389
10578
|
/**
|
@@ -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,15 +102,21 @@ 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>
|
112
118
|
<tr>
|
113
|
-
<th width="150"
|
119
|
+
<th width="150">扩展能力</th>
|
114
120
|
<th width="500">能力项</th>
|
115
121
|
</tr>
|
116
122
|
</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,12 +266,12 @@ 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>
|
267
273
|
<tr>
|
268
|
-
<th width="150"
|
274
|
+
<th width="150">扩展能力</th>
|
269
275
|
<th width="500">能力项</th>
|
270
276
|
</tr>
|
271
277
|
</thead>
|
@@ -376,7 +382,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
376
382
|
*/
|
377
383
|
PropOwnerCertOCR(req: PropOwnerCertOCRRequest, cb?: (error: string, rep: PropOwnerCertOCRResponse) => void): Promise<PropOwnerCertOCRResponse>;
|
378
384
|
/**
|
379
|
-
* 本接口支持智能提取各类证照、票据、表单、合同等结构化场景的key:value字段信息,并支持提取表格信息的key:value组的结构化,灵活高效,适用于各类非标准材料的信息录入场景,点击[立即体验](https://cloud.tencent.com/
|
385
|
+
* 本接口支持智能提取各类证照、票据、表单、合同等结构化场景的key:value字段信息,并支持提取表格信息的key:value组的结构化,灵活高效,适用于各类非标准材料的信息录入场景,点击[立即体验](https://ocrdemo.cloud.tencent.com/)。
|
380
386
|
|
381
387
|
默认接口请求频率限制:5次/秒。
|
382
388
|
*/
|
@@ -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,15 +135,23 @@ 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>
|
145
153
|
<tr>
|
146
|
-
<th width="150"
|
154
|
+
<th width="150">扩展能力</th>
|
147
155
|
<th width="500">能力项</th>
|
148
156
|
</tr>
|
149
157
|
</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,12 +317,12 @@ 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>
|
316
324
|
<tr>
|
317
|
-
<th width="150"
|
325
|
+
<th width="150">扩展能力</th>
|
318
326
|
<th width="500">能力项</th>
|
319
327
|
</tr>
|
320
328
|
</thead>
|
@@ -449,7 +457,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
449
457
|
return this.request("PropOwnerCertOCR", req, cb);
|
450
458
|
}
|
451
459
|
/**
|
452
|
-
* 本接口支持智能提取各类证照、票据、表单、合同等结构化场景的key:value字段信息,并支持提取表格信息的key:value组的结构化,灵活高效,适用于各类非标准材料的信息录入场景,点击[立即体验](https://cloud.tencent.com/
|
460
|
+
* 本接口支持智能提取各类证照、票据、表单、合同等结构化场景的key:value字段信息,并支持提取表格信息的key:value组的结构化,灵活高效,适用于各类非标准材料的信息录入场景,点击[立即体验](https://ocrdemo.cloud.tencent.com/)。
|
453
461
|
|
454
462
|
默认接口请求频率限制:5次/秒。
|
455
463
|
*/
|
@@ -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
|
*/
|