tencentcloud-sdk-nodejs-ocr 4.0.1019 → 4.0.1020

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.
@@ -374,6 +374,24 @@ export interface BankCardOCRRequest {
374
374
  */
375
375
  EnableQualityValue?: boolean;
376
376
  }
377
+ /**
378
+ * SmartStructuralOCR返回参数结构体
379
+ */
380
+ export interface SmartStructuralOCRResponse {
381
+ /**
382
+ * 图片旋转角度(角度制),文本的水平方向
383
+ 为 0;顺时针为正,逆时针为负
384
+ */
385
+ Angle?: number;
386
+ /**
387
+ * 识别信息
388
+ */
389
+ StructuralItems?: Array<StructuralItem>;
390
+ /**
391
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
392
+ */
393
+ RequestId?: string;
394
+ }
377
395
  /**
378
396
  * CarInvoiceOCR请求参数结构体
379
397
  */
@@ -1321,21 +1339,29 @@ export interface LicensePlateInfo {
1321
1339
  Color?: string;
1322
1340
  }
1323
1341
  /**
1324
- * 混贴票据中单张发票的内容
1342
+ * QuestionSplitOCR请求参数结构体
1325
1343
  */
1326
- export interface SingleInvoiceInfo {
1344
+ export interface QuestionSplitOCRRequest {
1327
1345
  /**
1328
- * 识别出的字段名称
1346
+ * 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
1329
1347
  */
1330
- Name?: string;
1348
+ ImageUrl?: string;
1331
1349
  /**
1332
- * 识别出的字段名称对应的值,也就是字段name对应的字符串结果。
1350
+ * 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
1333
1351
  */
1334
- Value?: string;
1352
+ ImageBase64?: string;
1335
1353
  /**
1336
- * 字段属于第几行,用于相同字段的排版,如发票明细表格项目,普通字段使用默认值为-1,表示无列排版。
1354
+ * 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
1337
1355
  */
1338
- Row?: number;
1356
+ IsPdf?: boolean;
1357
+ /**
1358
+ * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
1359
+ */
1360
+ PdfPageNumber?: number;
1361
+ /**
1362
+ * 是否开启切边增强和弯曲矫正,默认为false不开启
1363
+ */
1364
+ EnableImageCrop?: boolean;
1339
1365
  }
1340
1366
  /**
1341
1367
  * 增值税普通发票(卷票)条目
@@ -1553,6 +1579,19 @@ export interface EnterpriseLicenseOCRResponse {
1553
1579
  */
1554
1580
  RequestId?: string;
1555
1581
  }
1582
+ /**
1583
+ * QuestionOCR返回参数结构体
1584
+ */
1585
+ export interface QuestionOCRResponse {
1586
+ /**
1587
+ * 检测到的文本信息
1588
+ */
1589
+ QuestionInfo?: Array<QuestionInfo>;
1590
+ /**
1591
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1592
+ */
1593
+ RequestId?: string;
1594
+ }
1556
1595
  /**
1557
1596
  * 印章信息
1558
1597
  */
@@ -2112,42 +2151,17 @@ export interface EnterpriseLicenseOCRRequest {
2112
2151
  ImageUrl?: string;
2113
2152
  }
2114
2153
  /**
2115
- * SmartStructuralOCR请求参数结构体
2154
+ * QuestionSplitOCR返回参数结构体
2116
2155
  */
2117
- export interface SmartStructuralOCRRequest {
2156
+ export interface QuestionSplitOCRResponse {
2118
2157
  /**
2119
- * 图片的 Url 地址。
2120
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
2121
- 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
2122
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
2123
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
2158
+ * 检测到的文本信息
2124
2159
  */
2125
- ImageUrl?: string;
2126
- /**
2127
- * 图片的 Base64 值。
2128
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
2129
- 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
2130
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
2131
- */
2132
- ImageBase64?: string;
2133
- /**
2134
- * 自定义结构化功能需返回的字段名称,例:
2135
- 若客户只想返回姓名、性别两个字段的识别结果,则输入
2136
- ItemNames=["姓名","性别"]
2137
- */
2138
- ItemNames?: Array<string>;
2139
- /**
2140
- * 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
2141
- */
2142
- IsPdf?: boolean;
2143
- /**
2144
- * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
2145
- */
2146
- PdfPageNumber?: number;
2160
+ QuestionInfo?: Array<QuestionInfo>;
2147
2161
  /**
2148
- * 是否开启全文字段识别,默认值为false,开启后可返回全文字段识别结果。
2162
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2149
2163
  */
2150
- ReturnFullText?: boolean;
2164
+ RequestId?: string;
2151
2165
  }
2152
2166
  /**
2153
2167
  * RecognizeStoreName请求参数结构体
@@ -2427,6 +2441,19 @@ export interface TrainTicketOCRResponse {
2427
2441
  */
2428
2442
  RequestId?: string;
2429
2443
  }
2444
+ /**
2445
+ * 公式识别结果
2446
+ */
2447
+ export interface TextFormulaInfo {
2448
+ /**
2449
+ * 识别出的文本行内容
2450
+ */
2451
+ DetectedText?: string;
2452
+ /**
2453
+ * 识别出的文本行内容坐标
2454
+ */
2455
+ Coord?: Polygon;
2456
+ }
2430
2457
  /**
2431
2458
  * 过路过桥费字段信息
2432
2459
  */
@@ -2464,18 +2491,17 @@ export interface BankSlipInfo {
2464
2491
  Rect?: Rect;
2465
2492
  }
2466
2493
  /**
2467
- * SmartStructuralOCR返回参数结构体
2494
+ * RecognizeFormulaOCR返回参数结构体
2468
2495
  */
2469
- export interface SmartStructuralOCRResponse {
2496
+ export interface RecognizeFormulaOCRResponse {
2470
2497
  /**
2471
- * 图片旋转角度(角度制),文本的水平方向
2472
- 为 0;顺时针为正,逆时针为负
2498
+ * 图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负
2473
2499
  */
2474
2500
  Angle?: number;
2475
2501
  /**
2476
- * 识别信息
2502
+ * 检测到的文本信息
2477
2503
  */
2478
- StructuralItems?: Array<StructuralItem>;
2504
+ FormulaInfoList?: Array<TextFormulaInfo>;
2479
2505
  /**
2480
2506
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2481
2507
  */
@@ -2515,41 +2541,6 @@ export interface FormulaOCRResponse {
2515
2541
  */
2516
2542
  RequestId?: string;
2517
2543
  }
2518
- /**
2519
- * RecognizeGeneralCardWarn请求参数结构体
2520
- */
2521
- export interface RecognizeGeneralCardWarnRequest {
2522
- /**
2523
- * 图片链接
2524
- */
2525
- ImageUrl?: string;
2526
- /**
2527
- * 图片base64
2528
- */
2529
- ImageBase64?: string;
2530
- /**
2531
- * 卡证类型参数,包含以下范围:
2532
- default:通用卡证
2533
- idcard:身份证
2534
- passport:护照
2535
- bizlicense:营业执照
2536
- regcertificate:登记证书
2537
- residpermit:居住证
2538
- transpermit:通行证
2539
- signboard:门头照
2540
- bankcard:银行卡
2541
- drivinglicense:驾驶证、行驶证
2542
- */
2543
- CardType?: string;
2544
- /**
2545
- * 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
2546
- */
2547
- IsPdf?: boolean;
2548
- /**
2549
- * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
2550
- */
2551
- PdfPageNumber?: number;
2552
- }
2553
2544
  /**
2554
2545
  * 汽车票字段信息
2555
2546
  */
@@ -2569,63 +2560,42 @@ export interface BusInvoiceInfo {
2569
2560
  Rect?: Rect;
2570
2561
  }
2571
2562
  /**
2572
- * RecognizeEncryptedIDCardOCR请求参数结构体
2563
+ * SmartStructuralOCR请求参数结构体
2573
2564
  */
2574
- export interface RecognizeEncryptedIDCardOCRRequest {
2575
- /**
2576
- * 请求体被加密后的密文(Base64编码),本接口只支持加密传输
2577
- */
2578
- EncryptedBody: string;
2565
+ export interface SmartStructuralOCRRequest {
2579
2566
  /**
2580
- * 敏感数据加密信息。对传入信息有加密需求的用户可使用此参数,详情请点击左侧链接。
2567
+ * 图片的 Url 地址。
2568
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
2569
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
2570
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
2571
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
2581
2572
  */
2582
- Encryption: Encryption;
2573
+ ImageUrl?: string;
2583
2574
  /**
2584
- * 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
2575
+ * 图片的 Base64 值。
2576
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
2577
+ 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
2585
2578
  图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
2586
2579
  */
2587
2580
  ImageBase64?: string;
2588
2581
  /**
2589
- * 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
2590
- 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
2591
- */
2592
- ImageUrl?: string;
2593
- /**
2594
- * FRONT:身份证有照片的一面(人像面),
2595
- BACK:身份证有国徽的一面(国徽面),
2596
- 该参数如果不填,将为您自动判断身份证正反面。
2582
+ * 自定义结构化功能需返回的字段名称,例:
2583
+ 若客户只想返回姓名、性别两个字段的识别结果,则输入
2584
+ ItemNames=["姓名","性别"]
2597
2585
  */
2598
- CardSide?: string;
2586
+ ItemNames?: Array<string>;
2599
2587
  /**
2600
- * 以下可选字段均为bool 类型,默认false
2601
- CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)
2602
- CropPortrait,人像照片裁剪(自动抠取身份证头像区域)
2603
- CopyWarn,复印件告警
2604
- BorderCheckWarn,边框和框内遮挡告警
2605
- ReshootWarn,翻拍告警
2606
- DetectPsWarn,疑似存在PS痕迹告警
2607
- TempIdWarn,临时身份证告警
2608
- InvalidDateWarn,身份证有效日期不合法告警
2609
- Quality,图片质量分数(评价图片的模糊程度)
2610
- MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)
2611
- ReflectWarn,是否开启反光检测
2612
-
2613
- SDK 设置方式参考:
2614
- Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})
2615
- API 3.0 Explorer 设置方式参考:
2616
- Config = {"CropIdCard":true,"CropPortrait":true}
2588
+ * 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
2617
2589
  */
2618
- Config?: string;
2590
+ IsPdf?: boolean;
2619
2591
  /**
2620
- * 默认值为true,打开识别结果纠正开关。开关开启后,身份证号、出生日期、性别,三个字段会进行矫正补齐,统一结果输出;若关闭此开关,以上三个字段不会进行矫正补齐,保持原始识别结果输出,若原图出现篡改情况,这三个字段的识别结果可能会不统一。
2592
+ * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
2621
2593
  */
2622
- EnableRecognitionRectify?: boolean;
2594
+ PdfPageNumber?: number;
2623
2595
  /**
2624
- * 默认值为false
2625
-
2626
- 此开关需要在反光检测开关开启下才会生效(即此开关生效的前提是config入参里的"ReflectWarn":true),若EnableReflectDetail设置为true,则会返回反光点覆盖区域详情。反光点覆盖区域详情分为四部分:人像照片位置、国徽位置、识别字段位置、其他位置。一个反光点允许覆盖多个区域,且一张图片可能存在多个反光点。
2596
+ * 是否开启全文字段识别,默认值为false,开启后可返回全文字段识别结果。
2627
2597
  */
2628
- EnableReflectDetail?: boolean;
2598
+ ReturnFullText?: boolean;
2629
2599
  }
2630
2600
  /**
2631
2601
  * 单元格数据
@@ -4583,6 +4553,23 @@ export interface FinancialBillItem {
4583
4553
  */
4584
4554
  Remark?: string;
4585
4555
  }
4556
+ /**
4557
+ * 混贴票据中单张发票的内容
4558
+ */
4559
+ export interface SingleInvoiceInfo {
4560
+ /**
4561
+ * 识别出的字段名称
4562
+ */
4563
+ Name?: string;
4564
+ /**
4565
+ * 识别出的字段名称对应的值,也就是字段name对应的字符串结果。
4566
+ */
4567
+ Value?: string;
4568
+ /**
4569
+ * 字段属于第几行,用于相同字段的排版,如发票明细表格项目,普通字段使用默认值为-1,表示无列排版。
4570
+ */
4571
+ Row?: number;
4572
+ }
4586
4573
  /**
4587
4574
  * RecognizeContainerOCR请求参数结构体
4588
4575
  */
@@ -6593,6 +6580,27 @@ export interface OrgCodeCertOCRRequest {
6593
6580
  */
6594
6581
  ImageUrl?: string;
6595
6582
  }
6583
+ /**
6584
+ * RecognizeFormulaOCR请求参数结构体
6585
+ */
6586
+ export interface RecognizeFormulaOCRRequest {
6587
+ /**
6588
+ * 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
6589
+ */
6590
+ ImageUrl?: string;
6591
+ /**
6592
+ * 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
6593
+ */
6594
+ ImageBase64?: string;
6595
+ /**
6596
+ * 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
6597
+ */
6598
+ IsPdf?: boolean;
6599
+ /**
6600
+ * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
6601
+ */
6602
+ PdfPageNumber?: number;
6603
+ }
6596
6604
  /**
6597
6605
  * FlightInvoiceOCR返回参数结构体
6598
6606
  */
@@ -7169,53 +7177,6 @@ export interface FinanBillSliceOCRRequest {
7169
7177
  */
7170
7178
  ImageUrl?: string;
7171
7179
  }
7172
- /**
7173
- * RecognizeGeneralCardWarn返回参数结构体
7174
- */
7175
- export interface RecognizeGeneralCardWarnResponse {
7176
- /**
7177
- * 卡证类型参数,包含以下范围:
7178
- default:通用卡证
7179
- idcard:身份证
7180
- passport:护照
7181
- bizlicense:营业执照
7182
- regcertificate:登记证书
7183
- residpermit:居住证
7184
- transpermit:通行证
7185
- signboard:门头照
7186
- bankcard:银行卡
7187
- drivinglicense:驾驶证、行驶证
7188
- */
7189
- CardType?: string;
7190
- /**
7191
- * 模糊信息
7192
- */
7193
- Blur?: GeneralCardWarnInfo;
7194
- /**
7195
- * 边框不完整信息
7196
- */
7197
- BorderIncomplete?: GeneralCardWarnInfo;
7198
- /**
7199
- * 复印件信息
7200
- */
7201
- Copy?: GeneralCardWarnInfo;
7202
- /**
7203
- * ps篡改信息
7204
- */
7205
- Ps?: GeneralCardWarnInfo;
7206
- /**
7207
- * 反光信息
7208
- */
7209
- Reflection?: GeneralCardWarnInfo;
7210
- /**
7211
- * 翻拍件信息
7212
- */
7213
- Reprint?: GeneralCardWarnInfo;
7214
- /**
7215
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7216
- */
7217
- RequestId?: string;
7218
- }
7219
7180
  /**
7220
7181
  * ClassifyStoreName返回参数结构体
7221
7182
  */
@@ -7897,21 +7858,63 @@ export interface LineInfo {
7897
7858
  Lines?: Array<ItemInfo>;
7898
7859
  }
7899
7860
  /**
7900
- * 通用卡证鉴伪告警信息
7861
+ * RecognizeEncryptedIDCardOCR请求参数结构体
7901
7862
  */
7902
- export interface GeneralCardWarnInfo {
7863
+ export interface RecognizeEncryptedIDCardOCRRequest {
7903
7864
  /**
7904
- * 是否存在该告警
7865
+ * 请求体被加密后的密文(Base64编码),本接口只支持加密传输
7905
7866
  */
7906
- IsWarn?: boolean;
7867
+ EncryptedBody: string;
7907
7868
  /**
7908
- * 风险程度
7869
+ * 敏感数据加密信息。对传入信息有加密需求的用户可使用此参数,详情请点击左侧链接。
7909
7870
  */
7910
- RiskConfidence?: number;
7871
+ Encryption: Encryption;
7911
7872
  /**
7912
- * 告警位置四点坐标
7873
+ * 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
7874
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
7913
7875
  */
7914
- Polygon?: Array<Polygon>;
7876
+ ImageBase64?: string;
7877
+ /**
7878
+ * 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
7879
+ 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
7880
+ */
7881
+ ImageUrl?: string;
7882
+ /**
7883
+ * FRONT:身份证有照片的一面(人像面),
7884
+ BACK:身份证有国徽的一面(国徽面),
7885
+ 该参数如果不填,将为您自动判断身份证正反面。
7886
+ */
7887
+ CardSide?: string;
7888
+ /**
7889
+ * 以下可选字段均为bool 类型,默认false:
7890
+ CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)
7891
+ CropPortrait,人像照片裁剪(自动抠取身份证头像区域)
7892
+ CopyWarn,复印件告警
7893
+ BorderCheckWarn,边框和框内遮挡告警
7894
+ ReshootWarn,翻拍告警
7895
+ DetectPsWarn,疑似存在PS痕迹告警
7896
+ TempIdWarn,临时身份证告警
7897
+ InvalidDateWarn,身份证有效日期不合法告警
7898
+ Quality,图片质量分数(评价图片的模糊程度)
7899
+ MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)
7900
+ ReflectWarn,是否开启反光检测
7901
+
7902
+ SDK 设置方式参考:
7903
+ Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})
7904
+ API 3.0 Explorer 设置方式参考:
7905
+ Config = {"CropIdCard":true,"CropPortrait":true}
7906
+ */
7907
+ Config?: string;
7908
+ /**
7909
+ * 默认值为true,打开识别结果纠正开关。开关开启后,身份证号、出生日期、性别,三个字段会进行矫正补齐,统一结果输出;若关闭此开关,以上三个字段不会进行矫正补齐,保持原始识别结果输出,若原图出现篡改情况,这三个字段的识别结果可能会不统一。
7910
+ */
7911
+ EnableRecognitionRectify?: boolean;
7912
+ /**
7913
+ * 默认值为false。
7914
+
7915
+ 此开关需要在反光检测开关开启下才会生效(即此开关生效的前提是config入参里的"ReflectWarn":true),若EnableReflectDetail设置为true,则会返回反光点覆盖区域详情。反光点覆盖区域详情分为四部分:人像照片位置、国徽位置、识别字段位置、其他位置。一个反光点允许覆盖多个区域,且一张图片可能存在多个反光点。
7916
+ */
7917
+ EnableReflectDetail?: boolean;
7915
7918
  }
7916
7919
  /**
7917
7920
  * 过路过桥费发票
@@ -8610,6 +8613,31 @@ export interface ContentInfo {
8610
8613
  */
8611
8614
  IsReflect?: number;
8612
8615
  }
8616
+ /**
8617
+ * QuestionOCR请求参数结构体
8618
+ */
8619
+ export interface QuestionOCRRequest {
8620
+ /**
8621
+ * 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
8622
+ */
8623
+ ImageUrl?: string;
8624
+ /**
8625
+ * 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
8626
+ */
8627
+ ImageBase64?: string;
8628
+ /**
8629
+ * 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
8630
+ */
8631
+ IsPdf?: boolean;
8632
+ /**
8633
+ * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
8634
+ */
8635
+ PdfPageNumber?: number;
8636
+ /**
8637
+ * 是否开启切边增强和弯曲矫正,默认为false不开启
8638
+ */
8639
+ EnableImageCrop?: boolean;
8640
+ }
8613
8641
  /**
8614
8642
  * GetTaskState请求参数结构体
8615
8643
  */
@@ -9421,6 +9449,40 @@ export interface MLIDCardOCRRequest {
9421
9449
  */
9422
9450
  RetImage?: boolean;
9423
9451
  }
9452
+ /**
9453
+ * 试题识别结果
9454
+ */
9455
+ export interface QuestionInfo {
9456
+ /**
9457
+ * 旋转角度
9458
+ */
9459
+ Angle?: number;
9460
+ /**
9461
+ * 预处理后图片高度
9462
+ */
9463
+ Height?: number;
9464
+ /**
9465
+ * 预处理后图片宽度
9466
+ */
9467
+ Width?: number;
9468
+ /**
9469
+ * 文档元素
9470
+ 注意:此字段可能返回 null,表示取不到有效值。
9471
+ */
9472
+ ResultList?: Array<ResultList>;
9473
+ /**
9474
+ * 输入图片高度
9475
+ */
9476
+ OrgHeight?: number;
9477
+ /**
9478
+ * 输入图片宽度
9479
+ */
9480
+ OrgWidth?: number;
9481
+ /**
9482
+ * 预处理后的图片base64编码
9483
+ */
9484
+ ImageBase64?: string;
9485
+ }
9424
9486
  /**
9425
9487
  * 出租车发票
9426
9488
  */
@@ -10132,6 +10194,32 @@ export interface QuestionBlockObj {
10132
10194
  */
10133
10195
  QuestionBboxCoord: Rect;
10134
10196
  }
10197
+ /**
10198
+ * 试题识别结果-元素内容
10199
+ */
10200
+ export interface Element {
10201
+ /**
10202
+ * 元素内容,当type为figure时该字段内容为图片的位置
10203
+ */
10204
+ Text?: string;
10205
+ /**
10206
+ * 元素坐标
10207
+ */
10208
+ Coord?: Polygon;
10209
+ /**
10210
+ * 元素group类型,包括multiple-choice(选择题)、fill-in-the-blank(填空题)、problem-solving(解答题)、arithmetic(算术题)
10211
+ */
10212
+ GroupType?: string;
10213
+ /**
10214
+ * 结果列表
10215
+ 注意:此字段可能返回 null,表示取不到有效值。
10216
+ */
10217
+ ResultList?: Array<ResultList>;
10218
+ /**
10219
+ * 元素索引
10220
+ */
10221
+ Index?: number;
10222
+ }
10135
10223
  /**
10136
10224
  * AdvertiseOCR返回参数结构体
10137
10225
  */
@@ -10686,24 +10774,39 @@ export interface BizLicenseOCRResponse {
10686
10774
  RequestId?: string;
10687
10775
  }
10688
10776
  /**
10689
- * TableOCR请求参数结构体
10777
+ * 结果列表
10690
10778
  */
10691
- export interface TableOCRRequest {
10779
+ export interface ResultList {
10692
10780
  /**
10693
- * 图片的 Base64 值。
10694
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
10695
- 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
10696
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
10781
+ * 题干
10782
+ 注意:此字段可能返回 null,表示取不到有效值。
10697
10783
  */
10698
- ImageBase64?: string;
10784
+ Question?: Array<Element>;
10699
10785
  /**
10700
- * 图片的 Url 地址。
10701
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
10702
- 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
10703
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
10704
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
10786
+ * 选项
10787
+ 注意:此字段可能返回 null,表示取不到有效值。
10705
10788
  */
10706
- ImageUrl?: string;
10789
+ Option?: Array<Element>;
10790
+ /**
10791
+ * 插图
10792
+ 注意:此字段可能返回 null,表示取不到有效值。
10793
+ */
10794
+ Figure?: Array<Element>;
10795
+ /**
10796
+ * 表格
10797
+ 注意:此字段可能返回 null,表示取不到有效值。
10798
+ */
10799
+ Table?: Array<Element>;
10800
+ /**
10801
+ * 答案
10802
+ 注意:此字段可能返回 null,表示取不到有效值。
10803
+ */
10804
+ Answer?: Array<Element>;
10805
+ /**
10806
+ * 整题的坐标
10807
+ 注意:此字段可能返回 null,表示取不到有效值。
10808
+ */
10809
+ Coord?: Array<Polygon>;
10707
10810
  }
10708
10811
  /**
10709
10812
  * VatInvoiceOCR返回参数结构体
@@ -10813,6 +10916,26 @@ export interface BankCardOCRResponse {
10813
10916
  */
10814
10917
  RequestId?: string;
10815
10918
  }
10919
+ /**
10920
+ * TableOCR请求参数结构体
10921
+ */
10922
+ export interface TableOCRRequest {
10923
+ /**
10924
+ * 图片的 Base64 值。
10925
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
10926
+ 支持的图片大小:所下载图片经Base64编码后不超过 3M。图片下载时间不超过 3 秒。
10927
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
10928
+ */
10929
+ ImageBase64?: string;
10930
+ /**
10931
+ * 图片的 Url 地址。
10932
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
10933
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
10934
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
10935
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
10936
+ */
10937
+ ImageUrl?: string;
10938
+ }
10816
10939
  /**
10817
10940
  * BusinessCardOCR请求参数结构体
10818
10941
  */