tencentcloud-sdk-nodejs-ocr 4.1.243 → 4.1.245
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.
|
@@ -141,9 +141,6 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
141
141
|
async RideHailingDriverLicenseOCR(req, cb) {
|
|
142
142
|
return this.request("RideHailingDriverLicenseOCR", req, cb);
|
|
143
143
|
}
|
|
144
|
-
async HmtResidentPermitOCR(req, cb) {
|
|
145
|
-
return this.request("HmtResidentPermitOCR", req, cb);
|
|
146
|
-
}
|
|
147
144
|
async DescribeMarkEssayAgentJob(req, cb) {
|
|
148
145
|
return this.request("DescribeMarkEssayAgentJob", req, cb);
|
|
149
146
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { TableOCRRequest, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, VinOCRResponse, BankCardOCRRequest, CarInvoiceOCRRequest, DescribeQuestionMarkAgentJobResponse, ExtractDocMultiRequest, QuestionSplitLayoutOCRRequest, DescribeMarkEssayAgentJobResponse, EstateCertOCRResponse, ExtractDocMultiProRequest, MLIDPassportOCRRequest, TextDetectResponse, GetOCRTokenResponse, DriverLicenseOCRResponse, WaybillOCRResponse, ClassifyStoreNameRequest, QuestionSplitOCRRequest, FlightInvoiceOCRRequest,
|
|
2
|
+
import { TableOCRRequest, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, VinOCRResponse, BankCardOCRRequest, CarInvoiceOCRRequest, DescribeQuestionMarkAgentJobResponse, ExtractDocMultiRequest, QuestionSplitLayoutOCRRequest, DescribeMarkEssayAgentJobResponse, EstateCertOCRResponse, ExtractDocMultiProRequest, MLIDPassportOCRRequest, TextDetectResponse, GetOCRTokenResponse, DriverLicenseOCRResponse, WaybillOCRResponse, ClassifyStoreNameRequest, QuestionSplitOCRRequest, FlightInvoiceOCRRequest, MLIDCardOCRRequest, IDCardOCRResponse, EnterpriseLicenseOCRResponse, QuestionOCRResponse, DriverLicenseOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, HKIDCardOCRResponse, MainlandPermitOCRRequest, EnglishOCRRequest, VehicleLicenseOCRRequest, QuestionSplitOCRResponse, TableOCRResponse, RecognizeStoreNameRequest, VerifyScenePhotoResponse, RecognizeAgentResponse, TrainTicketOCRResponse, RecognizeFormulaOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, RecognizeGeneralCardWarnRequest, SmartStructuralOCRRequest, ExtractDocMultiProResponse, RecognizeTravelCardOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, GeneralAccurateOCRResponse, QrcodeOCRRequest, VatInvoiceVerifyNewResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VinOCRRequest, ExtractDocAgentResponse, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, ClassifyDetectOCRRequest, LicensePlateOCRResponse, ExtractDocBasicRequest, RecognizeThaiIDCardOCRResponse, ExtractDocMultiResponse, RecognizeContainerOCRRequest, TextDetectRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, RecognizeEncryptedIDCardOCRRequest, RecognizeHealthCodeOCRResponse, SubmitExtractDocAgentJobResponse, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, QuestionSplitLayoutOCRResponse, SubmitMarkEssayAgentJobRequest, LicensePlateOCRRequest, GeneralBasicOCRRequest, SubmitMarkEssayAgentJobResponse, GeneralEfficientOCRRequest, AdvertiseOCRRequest, SubmitQuestionMarkAgentJobResponse, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, ExtractDocBasicResponse, EnterpriseLicenseOCRRequest, GeneralAccurateOCRRequest, RecognizeFormulaOCRRequest, FlightInvoiceOCRResponse, VatInvoiceVerifyNewRequest, SubmitQuestionMarkAgentJobRequest, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, GetOCRTokenRequest, RecognizeGeneralCardWarnResponse, ClassifyStoreNameResponse, DescribeExtractDocAgentJobRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, VerifyBizLicenseEnterprise4Response, HandwritingEssayOCRRequest, BankSlipOCRResponse, RecognizeTravelCardOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, VerifyScenePhotoRequest, DescribeQuestionMarkAgentJobRequest, MixedInvoiceOCRRequest, DescribeExtractDocAgentJobResponse, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, RecognizeGeneralInvoiceResponse, HandwritingEssayOCRResponse, VerifyBizLicenseEnterprise4Request, QuestionOCRRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, TrainTicketOCRRequest, GeneralEfficientOCRResponse, MLIDPassportOCRResponse, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, GetOCRResultRequest, GetOCRResultResponse, MainlandPermitOCRResponse, PermitOCRRequest, EnglishOCRResponse, RecognizeEncryptedIDCardOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, PermitOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, SubmitExtractDocAgentJobRequest, ExtractDocAgentRequest, AdvertiseOCRResponse, RecognizeAgentRequest, SmartStructuralOCRResponse, IDCardOCRRequest, MixedInvoiceDetectRequest, RecognizeStoreNameResponse, WaybillOCRRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, BankCardOCRResponse, RecognizeHealthCodeOCRRequest, BusinessCardOCRRequest, RecognizeValidIDCardOCRResponse, DescribeMarkEssayAgentJobRequest, GeneralFastOCRResponse } from "./ocr_models";
|
|
3
3
|
/**
|
|
4
4
|
* ocr client
|
|
5
5
|
* @class
|
|
@@ -445,12 +445,6 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
445
445
|
默认接口请求频率限制:5次/秒。
|
|
446
446
|
*/
|
|
447
447
|
RideHailingDriverLicenseOCR(req: RideHailingDriverLicenseOCRRequest, cb?: (error: string, rep: RideHailingDriverLicenseOCRResponse) => void): Promise<RideHailingDriverLicenseOCRResponse>;
|
|
448
|
-
/**
|
|
449
|
-
* 港澳台居住证OCR支持港澳台居住证正反面全字段内容检测识别功能,包括姓名、性别、出生日期、地址、身份证号、签发机关、有效期限、签发次数、通行证号码关键字段识别。可以应用于港澳台居住证信息识别场景,例如银行开户、用户注册等。
|
|
450
|
-
|
|
451
|
-
默认接口请求频率限制:20次/秒。
|
|
452
|
-
*/
|
|
453
|
-
HmtResidentPermitOCR(req: HmtResidentPermitOCRRequest, cb?: (error: string, rep: HmtResidentPermitOCRResponse) => void): Promise<HmtResidentPermitOCRResponse>;
|
|
454
448
|
/**
|
|
455
449
|
* 用于作文批改Agent查询任务。基于业界领先的千亿参数多模态大模型技术,提供中英文手写作文的精准批改端到端服务。核心功能涵盖错别字智能识别、好词好句点评、错句纠错,并能够在原文中定位至具体段落与字符位置,同时提供详细的修改建议与优化内容。此能力是作业批改场景中的核心模块。
|
|
456
450
|
|
|
@@ -559,14 +559,6 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
559
559
|
async RideHailingDriverLicenseOCR(req, cb) {
|
|
560
560
|
return this.request("RideHailingDriverLicenseOCR", req, cb);
|
|
561
561
|
}
|
|
562
|
-
/**
|
|
563
|
-
* 港澳台居住证OCR支持港澳台居住证正反面全字段内容检测识别功能,包括姓名、性别、出生日期、地址、身份证号、签发机关、有效期限、签发次数、通行证号码关键字段识别。可以应用于港澳台居住证信息识别场景,例如银行开户、用户注册等。
|
|
564
|
-
|
|
565
|
-
默认接口请求频率限制:20次/秒。
|
|
566
|
-
*/
|
|
567
|
-
async HmtResidentPermitOCR(req, cb) {
|
|
568
|
-
return this.request("HmtResidentPermitOCR", req, cb);
|
|
569
|
-
}
|
|
570
562
|
/**
|
|
571
563
|
* 用于作文批改Agent查询任务。基于业界领先的千亿参数多模态大模型技术,提供中英文手写作文的精准批改端到端服务。核心功能涵盖错别字智能识别、好词好句点评、错句纠错,并能够在原文中定位至具体段落与字符位置,同时提供详细的修改建议与优化内容。此能力是作业批改场景中的核心模块。
|
|
572
564
|
|
|
@@ -93,47 +93,6 @@ export interface FieldsInfo {
|
|
|
93
93
|
*/
|
|
94
94
|
SubItems?: Array<SubItemGroup>;
|
|
95
95
|
}
|
|
96
|
-
/**
|
|
97
|
-
* 表格识别结果
|
|
98
|
-
*/
|
|
99
|
-
export interface TextTable {
|
|
100
|
-
/**
|
|
101
|
-
* 单元格左上角的列索引
|
|
102
|
-
*/
|
|
103
|
-
ColTl?: number;
|
|
104
|
-
/**
|
|
105
|
-
* 单元格左上角的行索引
|
|
106
|
-
*/
|
|
107
|
-
RowTl?: number;
|
|
108
|
-
/**
|
|
109
|
-
* 单元格右下角的列索引
|
|
110
|
-
*/
|
|
111
|
-
ColBr?: number;
|
|
112
|
-
/**
|
|
113
|
-
* 单元格右下角的行索引
|
|
114
|
-
*/
|
|
115
|
-
RowBr?: number;
|
|
116
|
-
/**
|
|
117
|
-
* 单元格文字
|
|
118
|
-
*/
|
|
119
|
-
Text?: string;
|
|
120
|
-
/**
|
|
121
|
-
* 单元格类型,包含body(表格主体)、header(表头)、footer(表尾)三种
|
|
122
|
-
*/
|
|
123
|
-
Type?: string;
|
|
124
|
-
/**
|
|
125
|
-
* 置信度 0 ~100
|
|
126
|
-
*/
|
|
127
|
-
Confidence?: number;
|
|
128
|
-
/**
|
|
129
|
-
* 文本行坐标,以四个顶点坐标表示
|
|
130
|
-
*/
|
|
131
|
-
Polygon?: Array<Coord>;
|
|
132
|
-
/**
|
|
133
|
-
* 此字段为扩展字段
|
|
134
|
-
*/
|
|
135
|
-
AdvancedInfo?: string;
|
|
136
|
-
}
|
|
137
96
|
/**
|
|
138
97
|
* 混贴票据单张发票识别信息
|
|
139
98
|
*/
|
|
@@ -1347,57 +1306,29 @@ export interface TextFormula {
|
|
|
1347
1306
|
DetectedText?: string;
|
|
1348
1307
|
}
|
|
1349
1308
|
/**
|
|
1350
|
-
*
|
|
1309
|
+
* MLIDCardOCR请求参数结构体
|
|
1351
1310
|
*/
|
|
1352
|
-
export interface
|
|
1353
|
-
/**
|
|
1354
|
-
* <p>证件姓名</p>
|
|
1355
|
-
*/
|
|
1356
|
-
Name?: string;
|
|
1357
|
-
/**
|
|
1358
|
-
* <p>性别</p>
|
|
1359
|
-
*/
|
|
1360
|
-
Sex?: string;
|
|
1361
|
-
/**
|
|
1362
|
-
* <p>出生日期</p>
|
|
1363
|
-
*/
|
|
1364
|
-
Birth?: string;
|
|
1365
|
-
/**
|
|
1366
|
-
* <p>地址</p>
|
|
1367
|
-
*/
|
|
1368
|
-
Address?: string;
|
|
1369
|
-
/**
|
|
1370
|
-
* <p>身份证号</p>
|
|
1371
|
-
*/
|
|
1372
|
-
IdCardNo?: string;
|
|
1373
|
-
/**
|
|
1374
|
-
* <p>0-正面<br>1-反面</p>
|
|
1375
|
-
*/
|
|
1376
|
-
CardType?: number;
|
|
1377
|
-
/**
|
|
1378
|
-
* <p>证件有效期限</p>
|
|
1379
|
-
*/
|
|
1380
|
-
ValidDate?: string;
|
|
1311
|
+
export interface MLIDCardOCRRequest {
|
|
1381
1312
|
/**
|
|
1382
|
-
*
|
|
1313
|
+
* 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。
|
|
1383
1314
|
*/
|
|
1384
|
-
|
|
1315
|
+
ImageBase64?: string;
|
|
1385
1316
|
/**
|
|
1386
|
-
*
|
|
1317
|
+
* 卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
1387
1318
|
*/
|
|
1388
|
-
|
|
1319
|
+
BackImageBase64?: string;
|
|
1389
1320
|
/**
|
|
1390
|
-
*
|
|
1321
|
+
* 图片的 Url 地址。( 中国地区之外不支持这个字段 )支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
1391
1322
|
*/
|
|
1392
|
-
|
|
1323
|
+
ImageUrl?: string;
|
|
1393
1324
|
/**
|
|
1394
|
-
*
|
|
1325
|
+
* 卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
1395
1326
|
*/
|
|
1396
|
-
|
|
1327
|
+
BackImageUrl?: string;
|
|
1397
1328
|
/**
|
|
1398
|
-
*
|
|
1329
|
+
* 是否返回图片,默认false
|
|
1399
1330
|
*/
|
|
1400
|
-
|
|
1331
|
+
RetImage?: boolean;
|
|
1401
1332
|
}
|
|
1402
1333
|
/**
|
|
1403
1334
|
* 增值税发票项目明细
|
|
@@ -3771,31 +3702,6 @@ export interface ClassifyDetectOCRRequest {
|
|
|
3771
3702
|
*/
|
|
3772
3703
|
DiscernType?: Array<string>;
|
|
3773
3704
|
}
|
|
3774
|
-
/**
|
|
3775
|
-
* MLIDCardOCR请求参数结构体
|
|
3776
|
-
*/
|
|
3777
|
-
export interface MLIDCardOCRRequest {
|
|
3778
|
-
/**
|
|
3779
|
-
* 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。
|
|
3780
|
-
*/
|
|
3781
|
-
ImageBase64?: string;
|
|
3782
|
-
/**
|
|
3783
|
-
* 卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
3784
|
-
*/
|
|
3785
|
-
BackImageBase64?: string;
|
|
3786
|
-
/**
|
|
3787
|
-
* 图片的 Url 地址。( 中国地区之外不支持这个字段 )支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
3788
|
-
*/
|
|
3789
|
-
ImageUrl?: string;
|
|
3790
|
-
/**
|
|
3791
|
-
* 卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
3792
|
-
*/
|
|
3793
|
-
BackImageUrl?: string;
|
|
3794
|
-
/**
|
|
3795
|
-
* 是否返回图片,默认false
|
|
3796
|
-
*/
|
|
3797
|
-
RetImage?: boolean;
|
|
3798
|
-
}
|
|
3799
3705
|
/**
|
|
3800
3706
|
* LicensePlateOCR返回参数结构体
|
|
3801
3707
|
*/
|
|
@@ -9193,25 +9099,45 @@ export interface MedicalInvoice {
|
|
|
9193
9099
|
Reviewer?: string;
|
|
9194
9100
|
}
|
|
9195
9101
|
/**
|
|
9196
|
-
*
|
|
9102
|
+
* 表格识别结果
|
|
9197
9103
|
*/
|
|
9198
|
-
export interface
|
|
9104
|
+
export interface TextTable {
|
|
9199
9105
|
/**
|
|
9200
|
-
*
|
|
9106
|
+
* 单元格左上角的列索引
|
|
9201
9107
|
*/
|
|
9202
|
-
|
|
9108
|
+
ColTl?: number;
|
|
9203
9109
|
/**
|
|
9204
|
-
*
|
|
9110
|
+
* 单元格左上角的行索引
|
|
9205
9111
|
*/
|
|
9206
|
-
|
|
9112
|
+
RowTl?: number;
|
|
9207
9113
|
/**
|
|
9208
|
-
*
|
|
9114
|
+
* 单元格右下角的列索引
|
|
9209
9115
|
*/
|
|
9210
|
-
|
|
9116
|
+
ColBr?: number;
|
|
9211
9117
|
/**
|
|
9212
|
-
*
|
|
9118
|
+
* 单元格右下角的行索引
|
|
9213
9119
|
*/
|
|
9214
|
-
|
|
9120
|
+
RowBr?: number;
|
|
9121
|
+
/**
|
|
9122
|
+
* 单元格文字
|
|
9123
|
+
*/
|
|
9124
|
+
Text?: string;
|
|
9125
|
+
/**
|
|
9126
|
+
* 单元格类型,包含body(表格主体)、header(表头)、footer(表尾)三种
|
|
9127
|
+
*/
|
|
9128
|
+
Type?: string;
|
|
9129
|
+
/**
|
|
9130
|
+
* 置信度 0 ~100
|
|
9131
|
+
*/
|
|
9132
|
+
Confidence?: number;
|
|
9133
|
+
/**
|
|
9134
|
+
* 文本行坐标,以四个顶点坐标表示
|
|
9135
|
+
*/
|
|
9136
|
+
Polygon?: Array<Coord>;
|
|
9137
|
+
/**
|
|
9138
|
+
* 此字段为扩展字段
|
|
9139
|
+
*/
|
|
9140
|
+
AdvancedInfo?: string;
|
|
9215
9141
|
}
|
|
9216
9142
|
/**
|
|
9217
9143
|
* RecognizeTableAccurateOCR返回参数结构体
|