tencentcloud-sdk-nodejs-ocr 4.0.446 → 4.0.448
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 +286 -0
- package/SERVICE_CHANGELOG.md +556 -620
- package/package.json +1 -1
- package/products.md +16 -16
- package/src/services/ocr/v20181119/ocr_client.ts +22 -10
- package/src/services/ocr/v20181119/ocr_models.ts +159 -93
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +7 -3
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +9 -3
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +144 -85
@@ -874,27 +874,54 @@ export interface TextFormula {
|
|
874
874
|
DetectedText: string;
|
875
875
|
}
|
876
876
|
/**
|
877
|
-
*
|
877
|
+
* HmtResidentPermitOCR返回参数结构体
|
878
878
|
*/
|
879
|
-
export interface
|
879
|
+
export interface HmtResidentPermitOCRResponse {
|
880
880
|
/**
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
*/
|
885
|
-
ImageBase64?: string;
|
881
|
+
* 证件姓名
|
882
|
+
*/
|
883
|
+
Name: string;
|
886
884
|
/**
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
|
885
|
+
* 性别
|
886
|
+
*/
|
887
|
+
Sex: string;
|
888
|
+
/**
|
889
|
+
* 出生日期
|
890
|
+
*/
|
891
|
+
Birth: string;
|
892
|
+
/**
|
893
|
+
* 地址
|
894
|
+
*/
|
895
|
+
Address: string;
|
896
|
+
/**
|
897
|
+
* 身份证号
|
898
|
+
*/
|
899
|
+
IdCardNo: string;
|
900
|
+
/**
|
901
|
+
* 0-正面
|
902
|
+
1-反面
|
892
903
|
*/
|
893
|
-
|
904
|
+
CardType: number;
|
894
905
|
/**
|
895
|
-
*
|
906
|
+
* 证件有效期限
|
896
907
|
*/
|
897
|
-
|
908
|
+
ValidDate: string;
|
909
|
+
/**
|
910
|
+
* 签发机关
|
911
|
+
*/
|
912
|
+
Authority: string;
|
913
|
+
/**
|
914
|
+
* 签发次数
|
915
|
+
*/
|
916
|
+
VisaNum: string;
|
917
|
+
/**
|
918
|
+
* 通行证号码
|
919
|
+
*/
|
920
|
+
PassNo: string;
|
921
|
+
/**
|
922
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
923
|
+
*/
|
924
|
+
RequestId?: string;
|
898
925
|
}
|
899
926
|
/**
|
900
927
|
* 增值税发票项目明细
|
@@ -988,21 +1015,44 @@ export interface VehicleLicenseOCRRequest {
|
|
988
1015
|
CardSide?: string;
|
989
1016
|
}
|
990
1017
|
/**
|
991
|
-
*
|
1018
|
+
* ImageEnhancement请求参数结构体
|
992
1019
|
*/
|
993
|
-
export interface
|
1020
|
+
export interface ImageEnhancementRequest {
|
994
1021
|
/**
|
995
|
-
|
996
|
-
|
997
|
-
|
1022
|
+
* 图片的 Base64 值。
|
1023
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
1024
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
1025
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
1026
|
+
*/
|
1027
|
+
ImageBase64?: string;
|
998
1028
|
/**
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1029
|
+
* 图片的 Url 地址。
|
1030
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
1031
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
1032
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
1033
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
1034
|
+
*/
|
1035
|
+
ImageUrl?: string;
|
1002
1036
|
/**
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1037
|
+
* 默认为空,ReturnImage的取值以及含义如下:
|
1038
|
+
“preprocess”: 返回预处理后的图片数据
|
1039
|
+
“origin”:返回原图片数据
|
1040
|
+
" ":不返回图片数据
|
1041
|
+
*/
|
1042
|
+
ReturnImage?: string;
|
1043
|
+
/**
|
1044
|
+
* 默认值为1,指定图像增强方法:
|
1045
|
+
1:切边增强
|
1046
|
+
2:弯曲矫正
|
1047
|
+
202:黑白模式
|
1048
|
+
204:提亮模式
|
1049
|
+
205:灰度模式
|
1050
|
+
207:省墨模式
|
1051
|
+
208:文字锐化(适合非彩色图片)
|
1052
|
+
301:去摩尔纹
|
1053
|
+
302:去除阴影
|
1054
|
+
*/
|
1055
|
+
TaskType?: number;
|
1006
1056
|
}
|
1007
1057
|
/**
|
1008
1058
|
* 印章信息
|
@@ -2904,6 +2954,25 @@ export interface UsedVehicleInvoiceInfo {
|
|
2904
2954
|
*/
|
2905
2955
|
MarketTel: string;
|
2906
2956
|
}
|
2957
|
+
/**
|
2958
|
+
* ImageEnhancement返回参数结构体
|
2959
|
+
*/
|
2960
|
+
export interface ImageEnhancementResponse {
|
2961
|
+
/**
|
2962
|
+
* 图片数据标识:
|
2963
|
+
“origin”:原图
|
2964
|
+
“preprocess”:预处理后的图
|
2965
|
+
*/
|
2966
|
+
ImageTag: string;
|
2967
|
+
/**
|
2968
|
+
* 图片数据,返回预处理后图像或原图像base64字符
|
2969
|
+
*/
|
2970
|
+
Image: string;
|
2971
|
+
/**
|
2972
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
2973
|
+
*/
|
2974
|
+
RequestId?: string;
|
2975
|
+
}
|
2907
2976
|
/**
|
2908
2977
|
* 图片大小
|
2909
2978
|
*/
|
@@ -3717,6 +3786,30 @@ export interface OrgCodeCertOCRRequest {
|
|
3717
3786
|
*/
|
3718
3787
|
ImageUrl?: string;
|
3719
3788
|
}
|
3789
|
+
/**
|
3790
|
+
* MixedInvoiceDetect请求参数结构体
|
3791
|
+
*/
|
3792
|
+
export interface MixedInvoiceDetectRequest {
|
3793
|
+
/**
|
3794
|
+
* 是否需要返回裁剪后的图片。
|
3795
|
+
*/
|
3796
|
+
ReturnImage: boolean;
|
3797
|
+
/**
|
3798
|
+
* 图片的 Base64 值。
|
3799
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
3800
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
3801
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
3802
|
+
*/
|
3803
|
+
ImageBase64?: string;
|
3804
|
+
/**
|
3805
|
+
* 图片的 Url 地址。
|
3806
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
3807
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
3808
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
3809
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
3810
|
+
*/
|
3811
|
+
ImageUrl?: string;
|
3812
|
+
}
|
3720
3813
|
/**
|
3721
3814
|
* FlightInvoiceOCR返回参数结构体
|
3722
3815
|
*/
|
@@ -5262,54 +5355,27 @@ export interface VatInvoice {
|
|
5262
5355
|
TrafficFreeFlag: string;
|
5263
5356
|
}
|
5264
5357
|
/**
|
5265
|
-
*
|
5358
|
+
* MLIDCardOCR请求参数结构体
|
5266
5359
|
*/
|
5267
|
-
export interface
|
5268
|
-
/**
|
5269
|
-
* 证件姓名
|
5270
|
-
*/
|
5271
|
-
Name: string;
|
5272
|
-
/**
|
5273
|
-
* 性别
|
5274
|
-
*/
|
5275
|
-
Sex: string;
|
5276
|
-
/**
|
5277
|
-
* 出生日期
|
5278
|
-
*/
|
5279
|
-
Birth: string;
|
5280
|
-
/**
|
5281
|
-
* 地址
|
5282
|
-
*/
|
5283
|
-
Address: string;
|
5284
|
-
/**
|
5285
|
-
* 身份证号
|
5286
|
-
*/
|
5287
|
-
IdCardNo: string;
|
5360
|
+
export interface MLIDCardOCRRequest {
|
5288
5361
|
/**
|
5289
|
-
*
|
5290
|
-
|
5362
|
+
* 图片的 Base64 值。
|
5363
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
5364
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
5291
5365
|
*/
|
5292
|
-
|
5293
|
-
/**
|
5294
|
-
* 证件有效期限
|
5295
|
-
*/
|
5296
|
-
ValidDate: string;
|
5297
|
-
/**
|
5298
|
-
* 签发机关
|
5299
|
-
*/
|
5300
|
-
Authority: string;
|
5301
|
-
/**
|
5302
|
-
* 签发次数
|
5303
|
-
*/
|
5304
|
-
VisaNum: string;
|
5366
|
+
ImageBase64?: string;
|
5305
5367
|
/**
|
5306
|
-
|
5307
|
-
|
5308
|
-
|
5368
|
+
* 图片的 Url 地址。( 中国地区之外不支持这个字段 )
|
5369
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
5370
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
5371
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
5372
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
5373
|
+
*/
|
5374
|
+
ImageUrl?: string;
|
5309
5375
|
/**
|
5310
|
-
*
|
5376
|
+
* 是否返回图片,默认false
|
5311
5377
|
*/
|
5312
|
-
|
5378
|
+
RetImage?: boolean;
|
5313
5379
|
}
|
5314
5380
|
/**
|
5315
5381
|
* EnglishOCR返回参数结构体
|
@@ -5726,28 +5792,21 @@ export interface IDCardOCRRequest {
|
|
5726
5792
|
Config?: string;
|
5727
5793
|
}
|
5728
5794
|
/**
|
5729
|
-
*
|
5795
|
+
* EnterpriseLicenseOCR返回参数结构体
|
5730
5796
|
*/
|
5731
|
-
export interface
|
5797
|
+
export interface EnterpriseLicenseOCRResponse {
|
5732
5798
|
/**
|
5733
|
-
*
|
5799
|
+
* 企业证照识别结果,具体内容请点击左侧链接。
|
5734
5800
|
*/
|
5735
|
-
|
5801
|
+
EnterpriseLicenseInfos: Array<EnterpriseLicenseInfo>;
|
5736
5802
|
/**
|
5737
|
-
|
5738
|
-
|
5739
|
-
|
5740
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
5741
|
-
*/
|
5742
|
-
ImageBase64?: string;
|
5803
|
+
* 图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负。
|
5804
|
+
*/
|
5805
|
+
Angle: number;
|
5743
5806
|
/**
|
5744
|
-
|
5745
|
-
|
5746
|
-
|
5747
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
5748
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
5749
|
-
*/
|
5750
|
-
ImageUrl?: string;
|
5807
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5808
|
+
*/
|
5809
|
+
RequestId?: string;
|
5751
5810
|
}
|
5752
5811
|
/**
|
5753
5812
|
* WaybillOCR请求参数结构体
|