tencentcloud-sdk-ocr 3.0.1102 → 3.0.1107
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/models.rb +28 -48
- 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: 87219dbaff6aa0460944cc17f97b77934f36c2b5
|
4
|
+
data.tar.gz: 55baac29e28f036329764784fa915c150d5bd3ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 258530b724324df4a9d24eb41962fcaa343e323b1429b7ebe22b6683050ba20e69e431ff71f6dbaf7acb242d549ce55c730a5cd500076a81a01342885809afa4
|
7
|
+
data.tar.gz: fd0e9098e638feed82ac409b92e725450334f8c266bdbb5c56deae13699af87586bfe8b4552f657c5317193612a30c3d3f9c808b3dd5a7a8366035d9a0584a7c
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1107
|
data/lib/v20181119/models.rb
CHANGED
@@ -3110,10 +3110,13 @@ module TencentCloud
|
|
3110
3110
|
# @type OutputParentKey: Boolean
|
3111
3111
|
# @param ConfigAdvanced: 模版的单个属性配置
|
3112
3112
|
# @type ConfigAdvanced: :class:`Tencentcloud::Ocr.v20181119.models.ConfigAdvanced`
|
3113
|
+
# @param OutputLanguage: cn时,添加的key为中文
|
3114
|
+
# en时,添加的key为英语
|
3115
|
+
# @type OutputLanguage: String
|
3113
3116
|
|
3114
|
-
attr_accessor :ImageUrl, :ImageBase64, :PdfPageNumber, :ItemNames, :ItemNamesShowMode, :ReturnFullText, :ConfigId, :EnableCoord, :OutputParentKey, :ConfigAdvanced
|
3117
|
+
attr_accessor :ImageUrl, :ImageBase64, :PdfPageNumber, :ItemNames, :ItemNamesShowMode, :ReturnFullText, :ConfigId, :EnableCoord, :OutputParentKey, :ConfigAdvanced, :OutputLanguage
|
3115
3118
|
|
3116
|
-
def initialize(imageurl=nil, imagebase64=nil, pdfpagenumber=nil, itemnames=nil, itemnamesshowmode=nil, returnfulltext=nil, configid=nil, enablecoord=nil, outputparentkey=nil, configadvanced=nil)
|
3119
|
+
def initialize(imageurl=nil, imagebase64=nil, pdfpagenumber=nil, itemnames=nil, itemnamesshowmode=nil, returnfulltext=nil, configid=nil, enablecoord=nil, outputparentkey=nil, configadvanced=nil, outputlanguage=nil)
|
3117
3120
|
@ImageUrl = imageurl
|
3118
3121
|
@ImageBase64 = imagebase64
|
3119
3122
|
@PdfPageNumber = pdfpagenumber
|
@@ -3124,6 +3127,7 @@ module TencentCloud
|
|
3124
3127
|
@EnableCoord = enablecoord
|
3125
3128
|
@OutputParentKey = outputparentkey
|
3126
3129
|
@ConfigAdvanced = configadvanced
|
3130
|
+
@OutputLanguage = outputlanguage
|
3127
3131
|
end
|
3128
3132
|
|
3129
3133
|
def deserialize(params)
|
@@ -3140,6 +3144,7 @@ module TencentCloud
|
|
3140
3144
|
@ConfigAdvanced = ConfigAdvanced.new
|
3141
3145
|
@ConfigAdvanced.deserialize(params['ConfigAdvanced'])
|
3142
3146
|
end
|
3147
|
+
@OutputLanguage = params['OutputLanguage']
|
3143
3148
|
end
|
3144
3149
|
end
|
3145
3150
|
|
@@ -5843,19 +5848,13 @@ module TencentCloud
|
|
5843
5848
|
|
5844
5849
|
# MLIDCardOCR请求参数结构体
|
5845
5850
|
class MLIDCardOCRRequest < TencentCloud::Common::AbstractModel
|
5846
|
-
# @param ImageBase64: 图片的 Base64
|
5847
|
-
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
5848
|
-
# 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
5851
|
+
# @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。
|
5849
5852
|
# @type ImageBase64: String
|
5850
|
-
# @param BackImageBase64: 卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过
|
5853
|
+
# @param BackImageBase64: 卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
5851
5854
|
# @type BackImageBase64: String
|
5852
|
-
# @param ImageUrl: 图片的 Url 地址。( 中国地区之外不支持这个字段 )
|
5853
|
-
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
5854
|
-
# 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
5855
|
-
# 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
5856
|
-
# 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
5855
|
+
# @param ImageUrl: 图片的 Url 地址。( 中国地区之外不支持这个字段 )支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
5857
5856
|
# @type ImageUrl: String
|
5858
|
-
# @param BackImageUrl: 卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过
|
5857
|
+
# @param BackImageUrl: 卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
5859
5858
|
# @type BackImageUrl: String
|
5860
5859
|
# @param RetImage: 是否返回图片,默认false
|
5861
5860
|
# @type RetImage: Boolean
|
@@ -5889,21 +5888,11 @@ module TencentCloud
|
|
5889
5888
|
# @type Address: String
|
5890
5889
|
# @param Sex: 性别
|
5891
5890
|
# @type Sex: String
|
5892
|
-
# @param Warn:
|
5893
|
-
# -9103 证照翻拍告警
|
5894
|
-
# -9102 证照复印件告警
|
5895
|
-
# -9106 证件遮挡告警
|
5896
|
-
# -9107 模糊图片告警
|
5891
|
+
# @param Warn: 该字段已废弃, 将固定返回空数组,不建议使用。
|
5897
5892
|
# @type Warn: Array
|
5898
5893
|
# @param Image: 证件图片
|
5899
5894
|
# @type Image: String
|
5900
|
-
# @param AdvancedInfo:
|
5901
|
-
# 返回字段识别结果的置信度,格式如下
|
5902
|
-
# {
|
5903
|
-
# 字段名:{
|
5904
|
-
# Confidence:0.9999
|
5905
|
-
# }
|
5906
|
-
# }
|
5895
|
+
# @param AdvancedInfo: 该字段已废弃, 将固定返回"1",不建议使用。
|
5907
5896
|
# @type AdvancedInfo: String
|
5908
5897
|
# @param Type: 证件类型
|
5909
5898
|
# MyKad 身份证
|
@@ -5934,6 +5923,8 @@ module TencentCloud
|
|
5934
5923
|
extend Gem::Deprecate
|
5935
5924
|
deprecate :Warn, :none, 2025, 7
|
5936
5925
|
deprecate :Warn=, :none, 2025, 7
|
5926
|
+
deprecate :AdvancedInfo, :none, 2025, 7
|
5927
|
+
deprecate :AdvancedInfo=, :none, 2025, 7
|
5937
5928
|
|
5938
5929
|
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)
|
5939
5930
|
@ID = id
|
@@ -5968,11 +5959,11 @@ module TencentCloud
|
|
5968
5959
|
|
5969
5960
|
# MLIDPassportOCR请求参数结构体
|
5970
5961
|
class MLIDPassportOCRRequest < TencentCloud::Common::AbstractModel
|
5971
|
-
# @param ImageBase64: 图片的 Base64 值。要求图片经Base64编码后不超过
|
5962
|
+
# @param ImageBase64: 图片的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。
|
5972
5963
|
# @type ImageBase64: String
|
5973
5964
|
# @param RetImage: 是否返回图片,默认false
|
5974
5965
|
# @type RetImage: Boolean
|
5975
|
-
# @param ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过
|
5966
|
+
# @param ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
5976
5967
|
# @type ImageUrl: String
|
5977
5968
|
|
5978
5969
|
attr_accessor :ImageBase64, :RetImage, :ImageUrl
|
@@ -6006,22 +5997,11 @@ module TencentCloud
|
|
6006
5997
|
# @type IssuingCountry: String
|
6007
5998
|
# @param Nationality: 国家地区代码(机读码区的解析结果)
|
6008
5999
|
# @type Nationality: String
|
6009
|
-
# @param Warn:
|
6010
|
-
# -9103 证照翻拍告警
|
6011
|
-
# -9102 证照复印件告警(包括黑白复印件、彩色复印件)
|
6012
|
-
# -9106 证件遮挡告警
|
6000
|
+
# @param Warn: 该字段已废弃, 将固定返回空数组,不建议使用。
|
6013
6001
|
# @type Warn: Array
|
6014
6002
|
# @param Image: 证件中的人像图片base64
|
6015
6003
|
# @type Image: String
|
6016
|
-
# @param AdvancedInfo:
|
6017
|
-
# {
|
6018
|
-
# ID:{
|
6019
|
-
# Confidence:0.9999
|
6020
|
-
# },
|
6021
|
-
# Name:{
|
6022
|
-
# Confidence:0.9996
|
6023
|
-
# }
|
6024
|
-
# }
|
6004
|
+
# @param AdvancedInfo: 该字段已废弃, 将固定返回"1",不建议使用。
|
6025
6005
|
# @type AdvancedInfo: String
|
6026
6006
|
# @param CodeSet: 最下方第一行 MRZ Code 序列
|
6027
6007
|
# @type CodeSet: String
|
@@ -6050,6 +6030,11 @@ module TencentCloud
|
|
6050
6030
|
# @type RequestId: String
|
6051
6031
|
|
6052
6032
|
attr_accessor :ID, :Name, :DateOfBirth, :Sex, :DateOfExpiration, :IssuingCountry, :Nationality, :Warn, :Image, :AdvancedInfo, :CodeSet, :CodeCrc, :Surname, :GivenName, :Type, :PassportRecognizeInfos, :WarnCardInfos, :RequestId
|
6033
|
+
extend Gem::Deprecate
|
6034
|
+
deprecate :Warn, :none, 2025, 7
|
6035
|
+
deprecate :Warn=, :none, 2025, 7
|
6036
|
+
deprecate :AdvancedInfo, :none, 2025, 7
|
6037
|
+
deprecate :AdvancedInfo=, :none, 2025, 7
|
6053
6038
|
|
6054
6039
|
def initialize(id=nil, name=nil, dateofbirth=nil, sex=nil, dateofexpiration=nil, issuingcountry=nil, nationality=nil, warn=nil, image=nil, advancedinfo=nil, codeset=nil, codecrc=nil, surname=nil, givenname=nil, type=nil, passportrecognizeinfos=nil, warncardinfos=nil, requestid=nil)
|
6055
6040
|
@ID = id
|
@@ -9664,20 +9649,15 @@ module TencentCloud
|
|
9664
9649
|
# -9108 证件模糊告警
|
9665
9650
|
# -9109 告警能力未开通
|
9666
9651
|
# @type WarnCardInfos: Array
|
9667
|
-
# @param AdvancedInfo:
|
9668
|
-
# {
|
9669
|
-
# "ID": {
|
9670
|
-
# "Confidence": 0.9999
|
9671
|
-
# },
|
9672
|
-
# "ThaiName": {
|
9673
|
-
# "Confidence": 0.9996
|
9674
|
-
# }
|
9675
|
-
# }
|
9652
|
+
# @param AdvancedInfo: 该字段已废弃, 将固定返回"1",不建议使用。
|
9676
9653
|
# @type AdvancedInfo: String
|
9677
9654
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
9678
9655
|
# @type RequestId: String
|
9679
9656
|
|
9680
9657
|
attr_accessor :ID, :ThaiName, :EnFirstName, :EnLastName, :IssueDate, :ExpirationDate, :EnIssueDate, :EnExpirationDate, :Birthday, :EnBirthday, :Religion, :SerialNumber, :Address, :LaserID, :PortraitImage, :WarnCardInfos, :AdvancedInfo, :RequestId
|
9658
|
+
extend Gem::Deprecate
|
9659
|
+
deprecate :AdvancedInfo, :none, 2025, 7
|
9660
|
+
deprecate :AdvancedInfo=, :none, 2025, 7
|
9681
9661
|
|
9682
9662
|
def initialize(id=nil, thainame=nil, enfirstname=nil, enlastname=nil, issuedate=nil, expirationdate=nil, enissuedate=nil, enexpirationdate=nil, birthday=nil, enbirthday=nil, religion=nil, serialnumber=nil, address=nil, laserid=nil, portraitimage=nil, warncardinfos=nil, advancedinfo=nil, requestid=nil)
|
9683
9663
|
@ID = id
|
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.1107
|
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-07-
|
11
|
+
date: 2025-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|