tencentcloud-sdk-ocr 3.0.1094 → 3.0.1097
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 +67 -8
- 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: eb523812f16c1fa9395255543c13ffcdf7a05ac4
|
4
|
+
data.tar.gz: 1ae4aab51ab7c2471d4ca56da3440de86f1ccc12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 954ae9bd6262fee5845b0159f6215aa2905dbe3d73a7253a6e8ac2faaa1f6ff76792390d4461ef3700fe5d980a0f097873314cd1cb0d9dc095c11d255f8b4753
|
7
|
+
data.tar.gz: 253c43ec6f59ebb880a1f3000934055657818d7121a6b04c96f92f0375b2b7a543a622c5e75cee0bd51414ff7e409de30bbc8aaf6eeff97a6fd46f35138ff598
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1097
|
data/lib/v20181119/models.rb
CHANGED
@@ -702,14 +702,17 @@ module TencentCloud
|
|
702
702
|
# @type EnableCopyWarn: Boolean
|
703
703
|
# @param EnablePeriodComplete: 是否返回自动拼接的有效期,默认为true
|
704
704
|
# @type EnablePeriodComplete: Boolean
|
705
|
+
# @param EnableBusinessCertificate: 是否支持营业类证件识别(包括营业执照和非营业执照的其他证件),默认为false
|
706
|
+
# @type EnableBusinessCertificate: Boolean
|
705
707
|
|
706
|
-
attr_accessor :ImageBase64, :ImageUrl, :EnableCopyWarn, :EnablePeriodComplete
|
708
|
+
attr_accessor :ImageBase64, :ImageUrl, :EnableCopyWarn, :EnablePeriodComplete, :EnableBusinessCertificate
|
707
709
|
|
708
|
-
def initialize(imagebase64=nil, imageurl=nil, enablecopywarn=nil, enableperiodcomplete=nil)
|
710
|
+
def initialize(imagebase64=nil, imageurl=nil, enablecopywarn=nil, enableperiodcomplete=nil, enablebusinesscertificate=nil)
|
709
711
|
@ImageBase64 = imagebase64
|
710
712
|
@ImageUrl = imageurl
|
711
713
|
@EnableCopyWarn = enablecopywarn
|
712
714
|
@EnablePeriodComplete = enableperiodcomplete
|
715
|
+
@EnableBusinessCertificate = enablebusinesscertificate
|
713
716
|
end
|
714
717
|
|
715
718
|
def deserialize(params)
|
@@ -717,6 +720,7 @@ module TencentCloud
|
|
717
720
|
@ImageUrl = params['ImageUrl']
|
718
721
|
@EnableCopyWarn = params['EnableCopyWarn']
|
719
722
|
@EnablePeriodComplete = params['EnablePeriodComplete']
|
723
|
+
@EnableBusinessCertificate = params['EnableBusinessCertificate']
|
720
724
|
end
|
721
725
|
end
|
722
726
|
|
@@ -771,12 +775,14 @@ module TencentCloud
|
|
771
775
|
# @type RegistrationAuthority: String
|
772
776
|
# @param Electronic: 是否是电子营业执照。false为没有,true为有。
|
773
777
|
# @type Electronic: Boolean
|
778
|
+
# @param BusinessCertificate: 非营业执照的营业类证件识别结果,将以结构化形式呈现。
|
779
|
+
# @type BusinessCertificate: Array
|
774
780
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
775
781
|
# @type RequestId: String
|
776
782
|
|
777
|
-
attr_accessor :RegNum, :Name, :Capital, :Person, :Address, :Business, :Type, :Period, :ComposingForm, :SetDate, :RecognizeWarnCode, :RecognizeWarnMsg, :IsDuplication, :RegistrationDate, :Angle, :NationalEmblem, :QRCode, :Seal, :Title, :SerialNumber, :RegistrationAuthority, :Electronic, :RequestId
|
783
|
+
attr_accessor :RegNum, :Name, :Capital, :Person, :Address, :Business, :Type, :Period, :ComposingForm, :SetDate, :RecognizeWarnCode, :RecognizeWarnMsg, :IsDuplication, :RegistrationDate, :Angle, :NationalEmblem, :QRCode, :Seal, :Title, :SerialNumber, :RegistrationAuthority, :Electronic, :BusinessCertificate, :RequestId
|
778
784
|
|
779
|
-
def initialize(regnum=nil, name=nil, capital=nil, person=nil, address=nil, business=nil, type=nil, period=nil, composingform=nil, setdate=nil, recognizewarncode=nil, recognizewarnmsg=nil, isduplication=nil, registrationdate=nil, angle=nil, nationalemblem=nil, qrcode=nil, seal=nil, title=nil, serialnumber=nil, registrationauthority=nil, electronic=nil, requestid=nil)
|
785
|
+
def initialize(regnum=nil, name=nil, capital=nil, person=nil, address=nil, business=nil, type=nil, period=nil, composingform=nil, setdate=nil, recognizewarncode=nil, recognizewarnmsg=nil, isduplication=nil, registrationdate=nil, angle=nil, nationalemblem=nil, qrcode=nil, seal=nil, title=nil, serialnumber=nil, registrationauthority=nil, electronic=nil, businesscertificate=nil, requestid=nil)
|
780
786
|
@RegNum = regnum
|
781
787
|
@Name = name
|
782
788
|
@Capital = capital
|
@@ -799,6 +805,7 @@ module TencentCloud
|
|
799
805
|
@SerialNumber = serialnumber
|
800
806
|
@RegistrationAuthority = registrationauthority
|
801
807
|
@Electronic = electronic
|
808
|
+
@BusinessCertificate = businesscertificate
|
802
809
|
@RequestId = requestid
|
803
810
|
end
|
804
811
|
|
@@ -825,6 +832,14 @@ module TencentCloud
|
|
825
832
|
@SerialNumber = params['SerialNumber']
|
826
833
|
@RegistrationAuthority = params['RegistrationAuthority']
|
827
834
|
@Electronic = params['Electronic']
|
835
|
+
unless params['BusinessCertificate'].nil?
|
836
|
+
@BusinessCertificate = []
|
837
|
+
params['BusinessCertificate'].each do |i|
|
838
|
+
businesscertificateinfo_tmp = BusinessCertificateInfo.new
|
839
|
+
businesscertificateinfo_tmp.deserialize(i)
|
840
|
+
@BusinessCertificate << businesscertificateinfo_tmp
|
841
|
+
end
|
842
|
+
end
|
828
843
|
@RequestId = params['RequestId']
|
829
844
|
end
|
830
845
|
end
|
@@ -1114,6 +1129,33 @@ module TencentCloud
|
|
1114
1129
|
end
|
1115
1130
|
end
|
1116
1131
|
|
1132
|
+
# 非营业执照的营业类证件识别结果,将以结构化形式呈现。
|
1133
|
+
class BusinessCertificateInfo < TencentCloud::Common::AbstractModel
|
1134
|
+
# @param Name: 识别出的名称
|
1135
|
+
# @type Name: String
|
1136
|
+
# @param Value: 识别出的字段名称对应的值
|
1137
|
+
# @type Value: String
|
1138
|
+
# @param Rect: 坐标
|
1139
|
+
# @type Rect: :class:`Tencentcloud::Ocr.v20181119.models.Rect`
|
1140
|
+
|
1141
|
+
attr_accessor :Name, :Value, :Rect
|
1142
|
+
|
1143
|
+
def initialize(name=nil, value=nil, rect=nil)
|
1144
|
+
@Name = name
|
1145
|
+
@Value = value
|
1146
|
+
@Rect = rect
|
1147
|
+
end
|
1148
|
+
|
1149
|
+
def deserialize(params)
|
1150
|
+
@Name = params['Name']
|
1151
|
+
@Value = params['Value']
|
1152
|
+
unless params['Rect'].nil?
|
1153
|
+
@Rect = Rect.new
|
1154
|
+
@Rect.deserialize(params['Rect'])
|
1155
|
+
end
|
1156
|
+
end
|
1157
|
+
end
|
1158
|
+
|
1117
1159
|
# 候选字符集(包含候选字Character以及置信度Confidence)
|
1118
1160
|
class CandWord < TencentCloud::Common::AbstractModel
|
1119
1161
|
# @param CandWords: 候选字符集的单词信息(包括单词Character和单词置信度confidence)
|
@@ -1251,15 +1293,23 @@ module TencentCloud
|
|
1251
1293
|
# 0:正常
|
1252
1294
|
# 1:有PS
|
1253
1295
|
# @type PSCheck: Integer
|
1296
|
+
# @param BlurCheck: 是否模糊:
|
1297
|
+
# 0:正常
|
1298
|
+
# 1:模糊
|
1299
|
+
# @type BlurCheck: Integer
|
1300
|
+
# @param BlurScore: 模糊分数, 范围:0.0-1.0,分数越高越模糊,建议阈值为0.5
|
1301
|
+
# @type BlurScore: Float
|
1254
1302
|
|
1255
|
-
attr_accessor :BorderCheck, :OcclusionCheck, :CopyCheck, :ReshootCheck, :PSCheck
|
1303
|
+
attr_accessor :BorderCheck, :OcclusionCheck, :CopyCheck, :ReshootCheck, :PSCheck, :BlurCheck, :BlurScore
|
1256
1304
|
|
1257
|
-
def initialize(bordercheck=nil, occlusioncheck=nil, copycheck=nil, reshootcheck=nil, pscheck=nil)
|
1305
|
+
def initialize(bordercheck=nil, occlusioncheck=nil, copycheck=nil, reshootcheck=nil, pscheck=nil, blurcheck=nil, blurscore=nil)
|
1258
1306
|
@BorderCheck = bordercheck
|
1259
1307
|
@OcclusionCheck = occlusioncheck
|
1260
1308
|
@CopyCheck = copycheck
|
1261
1309
|
@ReshootCheck = reshootcheck
|
1262
1310
|
@PSCheck = pscheck
|
1311
|
+
@BlurCheck = blurcheck
|
1312
|
+
@BlurScore = blurscore
|
1263
1313
|
end
|
1264
1314
|
|
1265
1315
|
def deserialize(params)
|
@@ -1268,6 +1318,8 @@ module TencentCloud
|
|
1268
1318
|
@CopyCheck = params['CopyCheck']
|
1269
1319
|
@ReshootCheck = params['ReshootCheck']
|
1270
1320
|
@PSCheck = params['PSCheck']
|
1321
|
+
@BlurCheck = params['BlurCheck']
|
1322
|
+
@BlurScore = params['BlurScore']
|
1271
1323
|
end
|
1272
1324
|
end
|
1273
1325
|
|
@@ -3048,6 +3100,9 @@ module TencentCloud
|
|
3048
3100
|
# Table -- 表格模版
|
3049
3101
|
# SteelLabel -- 实物标签识别模板
|
3050
3102
|
# CarInsurance -- 车辆保险单识别模板
|
3103
|
+
# MultiRealEstateCertificate -- 房产材料识别模板
|
3104
|
+
# MultiRealEstateMaterial -- 房产证明识别模板
|
3105
|
+
# HongKongUtilityBill -- 香港水电煤单识别模板
|
3051
3106
|
# @type ConfigId: String
|
3052
3107
|
# @param EnableCoord: 是否开启全文字段坐标值的识别
|
3053
3108
|
# @type EnableCoord: Boolean
|
@@ -9765,10 +9820,12 @@ module TencentCloud
|
|
9765
9820
|
# @type EnablePSCheck: Boolean
|
9766
9821
|
# @param EnableWordCheck: 默认值为false,打开返回字段级反光和字段级完整性告警。类型为:临时、港澳台居住证、外国人居住证失效
|
9767
9822
|
# @type EnableWordCheck: Boolean
|
9823
|
+
# @param EnableQualityCheck: 默认值为false,打开返回证件是否模糊。
|
9824
|
+
# @type EnableQualityCheck: Boolean
|
9768
9825
|
|
9769
|
-
attr_accessor :ImageBase64, :ImageUrl, :CardType, :EnablePortrait, :EnableCropImage, :EnableBorderCheck, :EnableOcclusionCheck, :EnableCopyCheck, :EnableReshootCheck, :EnablePSCheck, :EnableWordCheck
|
9826
|
+
attr_accessor :ImageBase64, :ImageUrl, :CardType, :EnablePortrait, :EnableCropImage, :EnableBorderCheck, :EnableOcclusionCheck, :EnableCopyCheck, :EnableReshootCheck, :EnablePSCheck, :EnableWordCheck, :EnableQualityCheck
|
9770
9827
|
|
9771
|
-
def initialize(imagebase64=nil, imageurl=nil, cardtype=nil, enableportrait=nil, enablecropimage=nil, enablebordercheck=nil, enableocclusioncheck=nil, enablecopycheck=nil, enablereshootcheck=nil, enablepscheck=nil, enablewordcheck=nil)
|
9828
|
+
def initialize(imagebase64=nil, imageurl=nil, cardtype=nil, enableportrait=nil, enablecropimage=nil, enablebordercheck=nil, enableocclusioncheck=nil, enablecopycheck=nil, enablereshootcheck=nil, enablepscheck=nil, enablewordcheck=nil, enablequalitycheck=nil)
|
9772
9829
|
@ImageBase64 = imagebase64
|
9773
9830
|
@ImageUrl = imageurl
|
9774
9831
|
@CardType = cardtype
|
@@ -9780,6 +9837,7 @@ module TencentCloud
|
|
9780
9837
|
@EnableReshootCheck = enablereshootcheck
|
9781
9838
|
@EnablePSCheck = enablepscheck
|
9782
9839
|
@EnableWordCheck = enablewordcheck
|
9840
|
+
@EnableQualityCheck = enablequalitycheck
|
9783
9841
|
end
|
9784
9842
|
|
9785
9843
|
def deserialize(params)
|
@@ -9794,6 +9852,7 @@ module TencentCloud
|
|
9794
9852
|
@EnableReshootCheck = params['EnableReshootCheck']
|
9795
9853
|
@EnablePSCheck = params['EnablePSCheck']
|
9796
9854
|
@EnableWordCheck = params['EnableWordCheck']
|
9855
|
+
@EnableQualityCheck = params['EnableQualityCheck']
|
9797
9856
|
end
|
9798
9857
|
end
|
9799
9858
|
|
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.1097
|
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-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|