tencentcloud-sdk-ocr 3.0.1074 → 3.0.1077
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 -4
- data/lib/v20181119/models.rb +71 -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: 672bd194e37ff59f4e2954b5aef2c2957d54e995
|
4
|
+
data.tar.gz: fc255a1cf4d176d9ddeec13a3b4f5ba0299ab08a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93d212a7a59bea93cb6b37158b610e7110dc71e8c611d02820f7d9a163f443e2ee1a7613763cb7c79040e83f3b04591a727502d6eee1e5d73276058a5a9d5b3f
|
7
|
+
data.tar.gz: 0564511558495580fda6d737521e2e261e0226677e1997db417454264b30e3659ed9e9acfcf1e52827696217de37b32229dfe5f083e8cf421bc00e3e180ca249
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1077
|
data/lib/v20181119/client.rb
CHANGED
@@ -989,9 +989,6 @@ module TencentCloud
|
|
989
989
|
# </tr>
|
990
990
|
# <tr>
|
991
991
|
# <td rowspan="9">告警功能</td>
|
992
|
-
# <td>身份证有效日期不合法,即有效日期不符合5年、10年、20年、长期期限
|
993
|
-
|
994
|
-
# </td>
|
995
992
|
# </tr>
|
996
993
|
# <tr>
|
997
994
|
# <td>身份证边框不完整告警</td>
|
@@ -1223,7 +1220,7 @@ module TencentCloud
|
|
1223
1220
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1224
1221
|
end
|
1225
1222
|
|
1226
|
-
#
|
1223
|
+
# 智能识别并结构化港澳台通行证及来往内地通行证正面全部字段,包含中文姓名、英文姓名、性别、出生日期、签发机关、有效期限、证件号、签发地点、签发次数、证件类别。
|
1227
1224
|
|
1228
1225
|
# 默认接口请求频率限制:20次/秒。
|
1229
1226
|
|
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
|
@@ -4591,6 +4587,9 @@ module TencentCloud
|
|
4591
4587
|
# @type EnableDateVerify: Boolean
|
4592
4588
|
|
4593
4589
|
attr_accessor :ImageBase64, :ImageUrl, :CardSide, :Config, :EnableRecognitionRectify, :EnableReflectDetail, :EnableDateVerify
|
4590
|
+
extend Gem::Deprecate
|
4591
|
+
deprecate :EnableDateVerify, :none, 2025, 6
|
4592
|
+
deprecate :EnableDateVerify=, :none, 2025, 6
|
4594
4593
|
|
4595
4594
|
def initialize(imagebase64=nil, imageurl=nil, cardside=nil, config=nil, enablerecognitionrectify=nil, enablereflectdetail=nil, enabledateverify=nil)
|
4596
4595
|
@ImageBase64 = imagebase64
|
@@ -5171,7 +5170,7 @@ module TencentCloud
|
|
5171
5170
|
# @type Angle: Float
|
5172
5171
|
# @param SingleInvoiceInfos: 识别到的内容。
|
5173
5172
|
# @type SingleInvoiceInfos: :class:`Tencentcloud::Ocr.v20181119.models.SingleInvoiceItem`
|
5174
|
-
# @param Page: 发票处于识别图片或PDF
|
5173
|
+
# @param Page: 发票处于识别图片或PDF文件中的页码,默认从1开始。
|
5175
5174
|
# @type Page: Integer
|
5176
5175
|
# @param SubType: 发票详细类型,详见票据识别(高级版)接口文档说明中 SubType 返回值说明
|
5177
5176
|
# @type SubType: String
|
@@ -5185,10 +5184,12 @@ module TencentCloud
|
|
5185
5184
|
# @type ItemPolygon: Array
|
5186
5185
|
# @param QRCode: 二维码数据。
|
5187
5186
|
# @type QRCode: String
|
5187
|
+
# @param InvoiceSealInfo: 印章信息
|
5188
|
+
# @type InvoiceSealInfo: :class:`Tencentcloud::Ocr.v20181119.models.InvoiceSealInfo`
|
5188
5189
|
|
5189
|
-
attr_accessor :Code, :Type, :Polygon, :Angle, :SingleInvoiceInfos, :Page, :SubType, :TypeDescription, :CutImage, :SubTypeDescription, :ItemPolygon, :QRCode
|
5190
|
+
attr_accessor :Code, :Type, :Polygon, :Angle, :SingleInvoiceInfos, :Page, :SubType, :TypeDescription, :CutImage, :SubTypeDescription, :ItemPolygon, :QRCode, :InvoiceSealInfo
|
5190
5191
|
|
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)
|
5192
|
+
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
5193
|
@Code = code
|
5193
5194
|
@Type = type
|
5194
5195
|
@Polygon = polygon
|
@@ -5201,6 +5202,7 @@ module TencentCloud
|
|
5201
5202
|
@SubTypeDescription = subtypedescription
|
5202
5203
|
@ItemPolygon = itempolygon
|
5203
5204
|
@QRCode = qrcode
|
5205
|
+
@InvoiceSealInfo = invoicesealinfo
|
5204
5206
|
end
|
5205
5207
|
|
5206
5208
|
def deserialize(params)
|
@@ -5229,6 +5231,38 @@ module TencentCloud
|
|
5229
5231
|
end
|
5230
5232
|
end
|
5231
5233
|
@QRCode = params['QRCode']
|
5234
|
+
unless params['InvoiceSealInfo'].nil?
|
5235
|
+
@InvoiceSealInfo = InvoiceSealInfo.new
|
5236
|
+
@InvoiceSealInfo.deserialize(params['InvoiceSealInfo'])
|
5237
|
+
end
|
5238
|
+
end
|
5239
|
+
end
|
5240
|
+
|
5241
|
+
# 印章信息
|
5242
|
+
class InvoiceSealInfo < TencentCloud::Common::AbstractModel
|
5243
|
+
# @param CompanySealMark: 是否有公司印章(0:没有,1:有)
|
5244
|
+
# @type CompanySealMark: String
|
5245
|
+
# @param SupervisionSealMark: 是否有监制印章(0:没有,1:有)
|
5246
|
+
# @type SupervisionSealMark: String
|
5247
|
+
# @param CompanySealMarkInfo: 公司印章信息
|
5248
|
+
# @type CompanySealMarkInfo: Array
|
5249
|
+
# @param SupervisionSealMarkInfo: 监制印章信息
|
5250
|
+
# @type SupervisionSealMarkInfo: Array
|
5251
|
+
|
5252
|
+
attr_accessor :CompanySealMark, :SupervisionSealMark, :CompanySealMarkInfo, :SupervisionSealMarkInfo
|
5253
|
+
|
5254
|
+
def initialize(companysealmark=nil, supervisionsealmark=nil, companysealmarkinfo=nil, supervisionsealmarkinfo=nil)
|
5255
|
+
@CompanySealMark = companysealmark
|
5256
|
+
@SupervisionSealMark = supervisionsealmark
|
5257
|
+
@CompanySealMarkInfo = companysealmarkinfo
|
5258
|
+
@SupervisionSealMarkInfo = supervisionsealmarkinfo
|
5259
|
+
end
|
5260
|
+
|
5261
|
+
def deserialize(params)
|
5262
|
+
@CompanySealMark = params['CompanySealMark']
|
5263
|
+
@SupervisionSealMark = params['SupervisionSealMark']
|
5264
|
+
@CompanySealMarkInfo = params['CompanySealMarkInfo']
|
5265
|
+
@SupervisionSealMarkInfo = params['SupervisionSealMarkInfo']
|
5232
5266
|
end
|
5233
5267
|
end
|
5234
5268
|
|
@@ -5554,8 +5588,8 @@ module TencentCloud
|
|
5554
5588
|
|
5555
5589
|
attr_accessor :ID, :Name, :Address, :Sex, :Warn, :Image, :AdvancedInfo, :Type, :Birthday, :MyKadNumber, :WarnCardInfos, :RequestId
|
5556
5590
|
extend Gem::Deprecate
|
5557
|
-
deprecate :Warn, :none, 2025,
|
5558
|
-
deprecate :Warn=, :none, 2025,
|
5591
|
+
deprecate :Warn, :none, 2025, 6
|
5592
|
+
deprecate :Warn=, :none, 2025, 6
|
5559
5593
|
|
5560
5594
|
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
5595
|
@ID = id
|
@@ -5898,7 +5932,9 @@ module TencentCloud
|
|
5898
5932
|
# @param RetProfile: 是否返回头像。默认不返回。
|
5899
5933
|
# @type RetProfile: Boolean
|
5900
5934
|
# @param CardSide: 图片正反面
|
5901
|
-
# FRONT
|
5935
|
+
# FRONT:正面
|
5936
|
+
# BACK:反面
|
5937
|
+
# 默认为FRONT
|
5902
5938
|
# @type CardSide: String
|
5903
5939
|
|
5904
5940
|
attr_accessor :ImageBase64, :ImageUrl, :RetProfile, :CardSide
|
@@ -5938,7 +5974,7 @@ module TencentCloud
|
|
5938
5974
|
# @type IssueAddress: String
|
5939
5975
|
# @param IssueNumber: 签发次数
|
5940
5976
|
# @type IssueNumber: String
|
5941
|
-
# @param Type: 证件类别,
|
5977
|
+
# @param Type: 证件类别, 如:台湾居民来往大陆通行证、港澳居民来往内地通行证、往来港澳通行证。
|
5942
5978
|
# @type Type: String
|
5943
5979
|
# @param Profile: RetProfile为True时返回头像字段, Base64编码
|
5944
5980
|
# @type Profile: String
|
@@ -8697,10 +8733,12 @@ module TencentCloud
|
|
8697
8733
|
# @type EnableItemPolygon: Boolean
|
8698
8734
|
# @param EnableQRCode: 是否开启二维码识别。
|
8699
8735
|
# @type EnableQRCode: Boolean
|
8736
|
+
# @param EnableSeal: 是否开启印章识别,默认为false
|
8737
|
+
# @type EnableSeal: Boolean
|
8700
8738
|
|
8701
|
-
attr_accessor :ImageBase64, :ImageUrl, :Types, :EnableOther, :EnablePdf, :PdfPageNumber, :EnableMultiplePage, :EnableCutImage, :EnableItemPolygon, :EnableQRCode
|
8739
|
+
attr_accessor :ImageBase64, :ImageUrl, :Types, :EnableOther, :EnablePdf, :PdfPageNumber, :EnableMultiplePage, :EnableCutImage, :EnableItemPolygon, :EnableQRCode, :EnableSeal
|
8702
8740
|
|
8703
|
-
def initialize(imagebase64=nil, imageurl=nil, types=nil, enableother=nil, enablepdf=nil, pdfpagenumber=nil, enablemultiplepage=nil, enablecutimage=nil, enableitempolygon=nil, enableqrcode=nil)
|
8741
|
+
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
8742
|
@ImageBase64 = imagebase64
|
8705
8743
|
@ImageUrl = imageurl
|
8706
8744
|
@Types = types
|
@@ -8711,6 +8749,7 @@ module TencentCloud
|
|
8711
8749
|
@EnableCutImage = enablecutimage
|
8712
8750
|
@EnableItemPolygon = enableitempolygon
|
8713
8751
|
@EnableQRCode = enableqrcode
|
8752
|
+
@EnableSeal = enableseal
|
8714
8753
|
end
|
8715
8754
|
|
8716
8755
|
def deserialize(params)
|
@@ -8724,6 +8763,7 @@ module TencentCloud
|
|
8724
8763
|
@EnableCutImage = params['EnableCutImage']
|
8725
8764
|
@EnableItemPolygon = params['EnableItemPolygon']
|
8726
8765
|
@EnableQRCode = params['EnableQRCode']
|
8766
|
+
@EnableSeal = params['EnableSeal']
|
8727
8767
|
end
|
8728
8768
|
end
|
8729
8769
|
|
@@ -10995,6 +11035,8 @@ module TencentCloud
|
|
10995
11035
|
# ReceiptWeightNote -- 磅单收货单识别模板
|
10996
11036
|
# ArticalRecognize -- 手写作文模版
|
10997
11037
|
# Table -- 表格模版
|
11038
|
+
# SteelLabel -- 实物标签识别模板
|
11039
|
+
# CarInsurance -- 车辆保险单识别模板
|
10998
11040
|
# @type ConfigId: String
|
10999
11041
|
# @param EnableCoord: 是否开启全文字段坐标值的识别
|
11000
11042
|
# @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.1077
|
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-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|