tencentcloud-sdk-ocr 3.0.1182 → 3.0.1184

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b08aa10540d8cdf034bb9fd3a2eb61a7ba5acc30
4
- data.tar.gz: ef8c32b9c6d4b1ec1e0c40bc2b11b4dbe96000d2
3
+ metadata.gz: 4127ded1b6273da38f75a3cc16a5c431a5ddbf6d
4
+ data.tar.gz: 23813a08656f304997984e706bef7aa5544b0501
5
5
  SHA512:
6
- metadata.gz: 81b349ee663e4db6f40e007b34a21448c94368209fa5591351046d069d161fdde5a4fc6bff217dea1b3f119083b9ce04045277e3f4c597ae474fc0c53905344e
7
- data.tar.gz: b283133f9887ab9f12f0a4b53bf353bda0104040159e9bb96bcd670ef506044a9933c2c6fa11ed7382e172794633af6c5caf8f277a56f8ae769a0a37e5ffc5df
6
+ metadata.gz: 08ddeefe3767e3cb441251f67f30090584366e42986ac46ae0d671e63d0414bcba73464043753cfc504f905271b16e18dc7962df3301c729a9b824591662d008
7
+ data.tar.gz: 0d1cfa16fa86f4082c8bd1001dd77eaee3588705a4f4431c66fc1a2dd040437e8185b310e4adf7477454820ad955b2714e32c699715bea58ee15483cf2561a71
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1182
1
+ 3.0.1184
@@ -29,9 +29,9 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
- # 本接口支持广告商品图片内文字的检测和识别,返回文本框位置与文字内容。
32
+ # <b>此接口不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/33526">通用印刷体识别</a>。</b>
33
33
 
34
- # 产品优势:针对广告商品图片普遍存在较多繁体字、艺术字的特点,进行了识别能力的增强。支持中英文、横排、竖排以及倾斜场景文字识别。文字识别的召回率和准确率能达到96%以上。
34
+ # 支持广告商品图片内文字的检测和识别,返回文本框位置与文字内容。支持中英文、横排、竖排以及倾斜场景文字识别,支持90度、180度、270度翻转以及倾斜场景文字识别,具有较高召回率和准确率。
35
35
 
36
36
  # 默认接口请求频率限制:20次/秒。
37
37
 
@@ -480,6 +480,30 @@ module TencentCloud
480
480
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
481
481
  end
482
482
 
483
+ # 用于查询文档处理任务。文档处理领域里常见的通用Agent 如抽取、比对之类的,目前我们提供的抽取,但未来可以根据实际情况和客户需求扩展。
484
+
485
+ # @param request: Request instance for ExtractDocAgent.
486
+ # @type request: :class:`Tencentcloud::ocr::V20181119::ExtractDocAgentRequest`
487
+ # @rtype: :class:`Tencentcloud::ocr::V20181119::ExtractDocAgentResponse`
488
+ def ExtractDocAgent(request)
489
+ body = send_request('ExtractDocAgent', request.serialize)
490
+ response = JSON.parse(body)
491
+ if response['Response'].key?('Error') == false
492
+ model = ExtractDocAgentResponse.new
493
+ model.deserialize(response['Response'])
494
+ model
495
+ else
496
+ code = response['Response']['Error']['Code']
497
+ message = response['Response']['Error']['Message']
498
+ reqid = response['Response']['RequestId']
499
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
500
+ end
501
+ rescue TencentCloud::Common::TencentCloudSDKException => e
502
+ raise e
503
+ rescue StandardError => e
504
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
505
+ end
506
+
483
507
  # 本接口支持识别并提取制式卡证、票据、表单等结构化场景的字段信息。无需任何配置,灵活高效。适用于各类结构化信息录入场景。点击[立即体验](https://ocrdemo.cloud.tencent.com/?action=ExtractDocBasic)。
484
508
 
485
509
  # 接口别名:SmartStructuralOCRV2
@@ -1607,7 +1631,7 @@ module TencentCloud
1607
1631
 
1608
1632
  # 身份证识别(安全加密版)接口实现了数据加密传输,能够有效防止个人身份证隐私信息不被窃取泄露。
1609
1633
 
1610
- # 本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限,识别准确度达到99%以上。
1634
+ # 本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限,识别速度快、准确度高。
1611
1635
 
1612
1636
  # 另外,本接口还支持多种扩展能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备9种告警功能,如下表所示。
1613
1637
 
@@ -1928,7 +1952,12 @@ module TencentCloud
1928
1952
  # <td> 25 </td>
1929
1953
  # </tr>
1930
1954
  # <tr>
1931
- # <td> OtherInvoice </td>
1955
+ # <td> ElectronicTollSummary </td>
1956
+ # <td> 通行费电子票据汇总单 </td>
1957
+ # <td> 26 </td>
1958
+ # </tr>
1959
+ # <tr>
1960
+ # <td> OtherInvoice </td>
1932
1961
  # <td> 其他发票 </td>
1933
1962
  # <td> -1 </td>
1934
1963
  # </tr>
@@ -3042,6 +3042,80 @@ module TencentCloud
3042
3042
  end
3043
3043
  end
3044
3044
 
3045
+ # ExtractDocAgent请求参数结构体
3046
+ class ExtractDocAgentRequest < TencentCloud::Common::AbstractModel
3047
+ # @param ImageBase64: 图片/PDF的 Base64 值。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。 图片支持的像素范围:需介于20-10000px之间。 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
3048
+ # @type ImageBase64: String
3049
+ # @param ImageUrl: 图片/PDF的 Url 地址。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。 图片支持的像素范围:需介于20-10000px之间。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
3050
+ # @type ImageUrl: String
3051
+ # @param ItemNames: 自定义抽取需要的字段名称、字段类型、字段提示词。
3052
+ # @type ItemNames: Array
3053
+ # @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF时有效。
3054
+ # @type PdfPageNumber: Integer
3055
+
3056
+ attr_accessor :ImageBase64, :ImageUrl, :ItemNames, :PdfPageNumber
3057
+
3058
+ def initialize(imagebase64=nil, imageurl=nil, itemnames=nil, pdfpagenumber=nil)
3059
+ @ImageBase64 = imagebase64
3060
+ @ImageUrl = imageurl
3061
+ @ItemNames = itemnames
3062
+ @PdfPageNumber = pdfpagenumber
3063
+ end
3064
+
3065
+ def deserialize(params)
3066
+ @ImageBase64 = params['ImageBase64']
3067
+ @ImageUrl = params['ImageUrl']
3068
+ unless params['ItemNames'].nil?
3069
+ @ItemNames = []
3070
+ params['ItemNames'].each do |i|
3071
+ itemnames_tmp = ItemNames.new
3072
+ itemnames_tmp.deserialize(i)
3073
+ @ItemNames << itemnames_tmp
3074
+ end
3075
+ end
3076
+ @PdfPageNumber = params['PdfPageNumber']
3077
+ end
3078
+ end
3079
+
3080
+ # ExtractDocAgent返回参数结构体
3081
+ class ExtractDocAgentResponse < TencentCloud::Common::AbstractModel
3082
+ # @param Angle: 图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负。
3083
+ # @type Angle: Float
3084
+ # @param StructuralList: 配置结构化文本信息。
3085
+ # @type StructuralList: Array
3086
+ # @param ErrorCode: 任务执行错误码。当任务状态不为 FAIL 时,该值为""。
3087
+ # @type ErrorCode: String
3088
+ # @param ErrorMessage: 任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
3089
+ # @type ErrorMessage: String
3090
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3091
+ # @type RequestId: String
3092
+
3093
+ attr_accessor :Angle, :StructuralList, :ErrorCode, :ErrorMessage, :RequestId
3094
+
3095
+ def initialize(angle=nil, structurallist=nil, errorcode=nil, errormessage=nil, requestid=nil)
3096
+ @Angle = angle
3097
+ @StructuralList = structurallist
3098
+ @ErrorCode = errorcode
3099
+ @ErrorMessage = errormessage
3100
+ @RequestId = requestid
3101
+ end
3102
+
3103
+ def deserialize(params)
3104
+ @Angle = params['Angle']
3105
+ unless params['StructuralList'].nil?
3106
+ @StructuralList = []
3107
+ params['StructuralList'].each do |i|
3108
+ groupinfo_tmp = GroupInfo.new
3109
+ groupinfo_tmp.deserialize(i)
3110
+ @StructuralList << groupinfo_tmp
3111
+ end
3112
+ end
3113
+ @ErrorCode = params['ErrorCode']
3114
+ @ErrorMessage = params['ErrorMessage']
3115
+ @RequestId = params['RequestId']
3116
+ end
3117
+ end
3118
+
3045
3119
  # ExtractDocBasic请求参数结构体
3046
3120
  class ExtractDocBasicRequest < TencentCloud::Common::AbstractModel
3047
3121
  # @param ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
@@ -5649,6 +5723,7 @@ module TencentCloud
5649
5723
  # @param SubTypeDescription: 发票详细类型描述,详见上方 SubType 返回值说明
5650
5724
  # @type SubTypeDescription: String
5651
5725
  # @param ItemPolygon: 该发票中所有字段坐标信息。包括字段英文名称、字段值所在位置四点坐标、字段所属行号,具体内容请点击左侧链接。
5726
+ # 字段在原始图的坐标可以根据Polygon转换得出。
5652
5727
  # @type ItemPolygon: Array
5653
5728
  # @param QRCode: 二维码数据。
5654
5729
  # @type QRCode: String
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ocr
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1182
4
+ version: 3.0.1184
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-12-13 00:00:00.000000000 Z
11
+ date: 2025-12-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common