tencentcloud-sdk-ocr 3.0.1096 → 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 +46 -4
- 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)
|
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
|