tencentcloud-sdk-ocr 3.0.1074 → 3.0.1076
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20181119/client.rb +1 -1
- data/lib/v20181119/models.rb +68 -29
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d418705f4ab609c4f5febc03bc1ed77aa3834fd7
|
4
|
+
data.tar.gz: da84cfecadc7a8d5900c7705b6d149ec928830e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55a14d9a27db9d831a858243670691316aac05bbc0cdc89e35ecd821fe03730167e95ffab54d311b99b90fda534ca61bdc1a84cae74704dadf3012d4f4c5772d
|
7
|
+
data.tar.gz: 27401f34e3351c0c77ffb6eb45b3be52ee7bf2173087ddbe389beedf5313d33d171d3d61beded9d9b775da660043ebab654ecbcd73f47fbf75c4634b72098746
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1076
|
data/lib/v20181119/client.rb
CHANGED
@@ -1223,7 +1223,7 @@ module TencentCloud
|
|
1223
1223
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1224
1224
|
end
|
1225
1225
|
|
1226
|
-
#
|
1226
|
+
# 智能识别并结构化港澳台通行证及来往内地通行证正面全部字段,包含中文姓名、英文姓名、性别、出生日期、签发机关、有效期限、证件号、签发地点、签发次数、证件类别。
|
1227
1227
|
|
1228
1228
|
# 默认接口请求频率限制:20次/秒。
|
1229
1229
|
|
data/lib/v20181119/models.rb
CHANGED
@@ -3478,13 +3478,9 @@ module TencentCloud
|
|
3478
3478
|
|
3479
3479
|
# GeneralAccurateOCR请求参数结构体
|
3480
3480
|
class GeneralAccurateOCRRequest < TencentCloud::Common::AbstractModel
|
3481
|
-
# @param ImageBase64:
|
3482
|
-
# 要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。
|
3483
|
-
# 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
3481
|
+
# @param ImageBase64: 图片/PDF的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
3484
3482
|
# @type ImageBase64: String
|
3485
|
-
# @param ImageUrl:
|
3486
|
-
# 要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。图片下载时间不超过 3 秒。
|
3487
|
-
# 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
3483
|
+
# @param ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
3488
3484
|
# @type ImageUrl: String
|
3489
3485
|
# @param IsWords: 是否返回单字信息,默认关
|
3490
3486
|
# @type IsWords: Boolean
|
@@ -3533,8 +3529,8 @@ module TencentCloud
|
|
3533
3529
|
|
3534
3530
|
attr_accessor :TextDetections, :Angel, :Angle, :RequestId
|
3535
3531
|
extend Gem::Deprecate
|
3536
|
-
deprecate :Angel, :none, 2025,
|
3537
|
-
deprecate :Angel=, :none, 2025,
|
3532
|
+
deprecate :Angel, :none, 2025, 6
|
3533
|
+
deprecate :Angel=, :none, 2025, 6
|
3538
3534
|
|
3539
3535
|
def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
|
3540
3536
|
@TextDetections = textdetections
|
@@ -3640,8 +3636,8 @@ module TencentCloud
|
|
3640
3636
|
|
3641
3637
|
attr_accessor :TextDetections, :Language, :Angel, :PdfPageSize, :Angle, :RequestId
|
3642
3638
|
extend Gem::Deprecate
|
3643
|
-
deprecate :Angel, :none, 2025,
|
3644
|
-
deprecate :Angel=, :none, 2025,
|
3639
|
+
deprecate :Angel, :none, 2025, 6
|
3640
|
+
deprecate :Angel=, :none, 2025, 6
|
3645
3641
|
|
3646
3642
|
def initialize(textdetections=nil, language=nil, angel=nil, pdfpagesize=nil, angle=nil, requestid=nil)
|
3647
3643
|
@TextDetections = textdetections
|
@@ -3737,8 +3733,8 @@ module TencentCloud
|
|
3737
3733
|
|
3738
3734
|
attr_accessor :TextDetections, :Angel, :Angle, :RequestId
|
3739
3735
|
extend Gem::Deprecate
|
3740
|
-
deprecate :Angel, :none, 2025,
|
3741
|
-
deprecate :Angel=, :none, 2025,
|
3736
|
+
deprecate :Angel, :none, 2025, 6
|
3737
|
+
deprecate :Angel=, :none, 2025, 6
|
3742
3738
|
|
3743
3739
|
def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
|
3744
3740
|
@TextDetections = textdetections
|
@@ -3891,8 +3887,8 @@ module TencentCloud
|
|
3891
3887
|
|
3892
3888
|
attr_accessor :TextDetections, :Angel, :Angle, :RequestId
|
3893
3889
|
extend Gem::Deprecate
|
3894
|
-
deprecate :Angel, :none, 2025,
|
3895
|
-
deprecate :Angel=, :none, 2025,
|
3890
|
+
deprecate :Angel, :none, 2025, 6
|
3891
|
+
deprecate :Angel=, :none, 2025, 6
|
3896
3892
|
|
3897
3893
|
def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
|
3898
3894
|
@TextDetections = textdetections
|
@@ -4121,8 +4117,8 @@ module TencentCloud
|
|
4121
4117
|
|
4122
4118
|
attr_accessor :ReturnHeadImage, :DetectFake, :ImageBase64, :ImageUrl
|
4123
4119
|
extend Gem::Deprecate
|
4124
|
-
deprecate :DetectFake, :none, 2025,
|
4125
|
-
deprecate :DetectFake=, :none, 2025,
|
4120
|
+
deprecate :DetectFake, :none, 2025, 6
|
4121
|
+
deprecate :DetectFake=, :none, 2025, 6
|
4126
4122
|
|
4127
4123
|
def initialize(returnheadimage=nil, detectfake=nil, imagebase64=nil, imageurl=nil)
|
4128
4124
|
@ReturnHeadImage = returnheadimage
|
@@ -4191,10 +4187,10 @@ module TencentCloud
|
|
4191
4187
|
|
4192
4188
|
attr_accessor :CnName, :EnName, :TelexCode, :Sex, :Birthday, :Permanent, :IdNum, :Symbol, :FirstIssueDate, :CurrentIssueDate, :FakeDetectResult, :HeadImage, :WarningCode, :WarnCardInfos, :RequestId
|
4193
4189
|
extend Gem::Deprecate
|
4194
|
-
deprecate :FakeDetectResult, :none, 2025,
|
4195
|
-
deprecate :FakeDetectResult=, :none, 2025,
|
4196
|
-
deprecate :WarningCode, :none, 2025,
|
4197
|
-
deprecate :WarningCode=, :none, 2025,
|
4190
|
+
deprecate :FakeDetectResult, :none, 2025, 6
|
4191
|
+
deprecate :FakeDetectResult=, :none, 2025, 6
|
4192
|
+
deprecate :WarningCode, :none, 2025, 6
|
4193
|
+
deprecate :WarningCode=, :none, 2025, 6
|
4198
4194
|
|
4199
4195
|
def initialize(cnname=nil, enname=nil, telexcode=nil, sex=nil, birthday=nil, permanent=nil, idnum=nil, symbol=nil, firstissuedate=nil, currentissuedate=nil, fakedetectresult=nil, headimage=nil, warningcode=nil, warncardinfos=nil, requestid=nil)
|
4200
4196
|
@CnName = cnname
|
@@ -5171,7 +5167,7 @@ module TencentCloud
|
|
5171
5167
|
# @type Angle: Float
|
5172
5168
|
# @param SingleInvoiceInfos: 识别到的内容。
|
5173
5169
|
# @type SingleInvoiceInfos: :class:`Tencentcloud::Ocr.v20181119.models.SingleInvoiceItem`
|
5174
|
-
# @param Page: 发票处于识别图片或PDF
|
5170
|
+
# @param Page: 发票处于识别图片或PDF文件中的页码,默认从1开始。
|
5175
5171
|
# @type Page: Integer
|
5176
5172
|
# @param SubType: 发票详细类型,详见票据识别(高级版)接口文档说明中 SubType 返回值说明
|
5177
5173
|
# @type SubType: String
|
@@ -5185,10 +5181,12 @@ module TencentCloud
|
|
5185
5181
|
# @type ItemPolygon: Array
|
5186
5182
|
# @param QRCode: 二维码数据。
|
5187
5183
|
# @type QRCode: String
|
5184
|
+
# @param InvoiceSealInfo: 印章信息
|
5185
|
+
# @type InvoiceSealInfo: :class:`Tencentcloud::Ocr.v20181119.models.InvoiceSealInfo`
|
5188
5186
|
|
5189
|
-
attr_accessor :Code, :Type, :Polygon, :Angle, :SingleInvoiceInfos, :Page, :SubType, :TypeDescription, :CutImage, :SubTypeDescription, :ItemPolygon, :QRCode
|
5187
|
+
attr_accessor :Code, :Type, :Polygon, :Angle, :SingleInvoiceInfos, :Page, :SubType, :TypeDescription, :CutImage, :SubTypeDescription, :ItemPolygon, :QRCode, :InvoiceSealInfo
|
5190
5188
|
|
5191
|
-
def initialize(code=nil, type=nil, polygon=nil, angle=nil, singleinvoiceinfos=nil, page=nil, subtype=nil, typedescription=nil, cutimage=nil, subtypedescription=nil, itempolygon=nil, qrcode=nil)
|
5189
|
+
def initialize(code=nil, type=nil, polygon=nil, angle=nil, singleinvoiceinfos=nil, page=nil, subtype=nil, typedescription=nil, cutimage=nil, subtypedescription=nil, itempolygon=nil, qrcode=nil, invoicesealinfo=nil)
|
5192
5190
|
@Code = code
|
5193
5191
|
@Type = type
|
5194
5192
|
@Polygon = polygon
|
@@ -5201,6 +5199,7 @@ module TencentCloud
|
|
5201
5199
|
@SubTypeDescription = subtypedescription
|
5202
5200
|
@ItemPolygon = itempolygon
|
5203
5201
|
@QRCode = qrcode
|
5202
|
+
@InvoiceSealInfo = invoicesealinfo
|
5204
5203
|
end
|
5205
5204
|
|
5206
5205
|
def deserialize(params)
|
@@ -5229,6 +5228,38 @@ module TencentCloud
|
|
5229
5228
|
end
|
5230
5229
|
end
|
5231
5230
|
@QRCode = params['QRCode']
|
5231
|
+
unless params['InvoiceSealInfo'].nil?
|
5232
|
+
@InvoiceSealInfo = InvoiceSealInfo.new
|
5233
|
+
@InvoiceSealInfo.deserialize(params['InvoiceSealInfo'])
|
5234
|
+
end
|
5235
|
+
end
|
5236
|
+
end
|
5237
|
+
|
5238
|
+
# 印章信息
|
5239
|
+
class InvoiceSealInfo < TencentCloud::Common::AbstractModel
|
5240
|
+
# @param CompanySealMark: 是否有公司印章(0:没有,1:有)
|
5241
|
+
# @type CompanySealMark: String
|
5242
|
+
# @param SupervisionSealMark: 是否有监制印章(0:没有,1:有)
|
5243
|
+
# @type SupervisionSealMark: String
|
5244
|
+
# @param CompanySealMarkInfo: 公司印章信息
|
5245
|
+
# @type CompanySealMarkInfo: Array
|
5246
|
+
# @param SupervisionSealMarkInfo: 监制印章信息
|
5247
|
+
# @type SupervisionSealMarkInfo: Array
|
5248
|
+
|
5249
|
+
attr_accessor :CompanySealMark, :SupervisionSealMark, :CompanySealMarkInfo, :SupervisionSealMarkInfo
|
5250
|
+
|
5251
|
+
def initialize(companysealmark=nil, supervisionsealmark=nil, companysealmarkinfo=nil, supervisionsealmarkinfo=nil)
|
5252
|
+
@CompanySealMark = companysealmark
|
5253
|
+
@SupervisionSealMark = supervisionsealmark
|
5254
|
+
@CompanySealMarkInfo = companysealmarkinfo
|
5255
|
+
@SupervisionSealMarkInfo = supervisionsealmarkinfo
|
5256
|
+
end
|
5257
|
+
|
5258
|
+
def deserialize(params)
|
5259
|
+
@CompanySealMark = params['CompanySealMark']
|
5260
|
+
@SupervisionSealMark = params['SupervisionSealMark']
|
5261
|
+
@CompanySealMarkInfo = params['CompanySealMarkInfo']
|
5262
|
+
@SupervisionSealMarkInfo = params['SupervisionSealMarkInfo']
|
5232
5263
|
end
|
5233
5264
|
end
|
5234
5265
|
|
@@ -5554,8 +5585,8 @@ module TencentCloud
|
|
5554
5585
|
|
5555
5586
|
attr_accessor :ID, :Name, :Address, :Sex, :Warn, :Image, :AdvancedInfo, :Type, :Birthday, :MyKadNumber, :WarnCardInfos, :RequestId
|
5556
5587
|
extend Gem::Deprecate
|
5557
|
-
deprecate :Warn, :none, 2025,
|
5558
|
-
deprecate :Warn=, :none, 2025,
|
5588
|
+
deprecate :Warn, :none, 2025, 6
|
5589
|
+
deprecate :Warn=, :none, 2025, 6
|
5559
5590
|
|
5560
5591
|
def initialize(id=nil, name=nil, address=nil, sex=nil, warn=nil, image=nil, advancedinfo=nil, type=nil, birthday=nil, mykadnumber=nil, warncardinfos=nil, requestid=nil)
|
5561
5592
|
@ID = id
|
@@ -5898,7 +5929,9 @@ module TencentCloud
|
|
5898
5929
|
# @param RetProfile: 是否返回头像。默认不返回。
|
5899
5930
|
# @type RetProfile: Boolean
|
5900
5931
|
# @param CardSide: 图片正反面
|
5901
|
-
# FRONT
|
5932
|
+
# FRONT:正面
|
5933
|
+
# BACK:反面
|
5934
|
+
# 默认为FRONT
|
5902
5935
|
# @type CardSide: String
|
5903
5936
|
|
5904
5937
|
attr_accessor :ImageBase64, :ImageUrl, :RetProfile, :CardSide
|
@@ -5938,7 +5971,7 @@ module TencentCloud
|
|
5938
5971
|
# @type IssueAddress: String
|
5939
5972
|
# @param IssueNumber: 签发次数
|
5940
5973
|
# @type IssueNumber: String
|
5941
|
-
# @param Type: 证件类别,
|
5974
|
+
# @param Type: 证件类别, 如:台湾居民来往大陆通行证、港澳居民来往内地通行证、往来港澳通行证。
|
5942
5975
|
# @type Type: String
|
5943
5976
|
# @param Profile: RetProfile为True时返回头像字段, Base64编码
|
5944
5977
|
# @type Profile: String
|
@@ -8697,10 +8730,12 @@ module TencentCloud
|
|
8697
8730
|
# @type EnableItemPolygon: Boolean
|
8698
8731
|
# @param EnableQRCode: 是否开启二维码识别。
|
8699
8732
|
# @type EnableQRCode: Boolean
|
8733
|
+
# @param EnableSeal: 是否开启印章识别,默认为false
|
8734
|
+
# @type EnableSeal: Boolean
|
8700
8735
|
|
8701
|
-
attr_accessor :ImageBase64, :ImageUrl, :Types, :EnableOther, :EnablePdf, :PdfPageNumber, :EnableMultiplePage, :EnableCutImage, :EnableItemPolygon, :EnableQRCode
|
8736
|
+
attr_accessor :ImageBase64, :ImageUrl, :Types, :EnableOther, :EnablePdf, :PdfPageNumber, :EnableMultiplePage, :EnableCutImage, :EnableItemPolygon, :EnableQRCode, :EnableSeal
|
8702
8737
|
|
8703
|
-
def initialize(imagebase64=nil, imageurl=nil, types=nil, enableother=nil, enablepdf=nil, pdfpagenumber=nil, enablemultiplepage=nil, enablecutimage=nil, enableitempolygon=nil, enableqrcode=nil)
|
8738
|
+
def initialize(imagebase64=nil, imageurl=nil, types=nil, enableother=nil, enablepdf=nil, pdfpagenumber=nil, enablemultiplepage=nil, enablecutimage=nil, enableitempolygon=nil, enableqrcode=nil, enableseal=nil)
|
8704
8739
|
@ImageBase64 = imagebase64
|
8705
8740
|
@ImageUrl = imageurl
|
8706
8741
|
@Types = types
|
@@ -8711,6 +8746,7 @@ module TencentCloud
|
|
8711
8746
|
@EnableCutImage = enablecutimage
|
8712
8747
|
@EnableItemPolygon = enableitempolygon
|
8713
8748
|
@EnableQRCode = enableqrcode
|
8749
|
+
@EnableSeal = enableseal
|
8714
8750
|
end
|
8715
8751
|
|
8716
8752
|
def deserialize(params)
|
@@ -8724,6 +8760,7 @@ module TencentCloud
|
|
8724
8760
|
@EnableCutImage = params['EnableCutImage']
|
8725
8761
|
@EnableItemPolygon = params['EnableItemPolygon']
|
8726
8762
|
@EnableQRCode = params['EnableQRCode']
|
8763
|
+
@EnableSeal = params['EnableSeal']
|
8727
8764
|
end
|
8728
8765
|
end
|
8729
8766
|
|
@@ -10995,6 +11032,8 @@ module TencentCloud
|
|
10995
11032
|
# ReceiptWeightNote -- 磅单收货单识别模板
|
10996
11033
|
# ArticalRecognize -- 手写作文模版
|
10997
11034
|
# Table -- 表格模版
|
11035
|
+
# SteelLabel -- 实物标签识别模板
|
11036
|
+
# CarInsurance -- 车辆保险单识别模板
|
10998
11037
|
# @type ConfigId: String
|
10999
11038
|
# @param EnableCoord: 是否开启全文字段坐标值的识别
|
11000
11039
|
# @type EnableCoord: Boolean
|
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.
|
4
|
+
version: 3.0.1076
|
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-06-
|
11
|
+
date: 2025-06-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|