tencentcloud-sdk-ocr 3.0.1096 → 3.0.1099

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c8ffdefa40cad07bd911c232936c82ae734672e
4
- data.tar.gz: e684c4859f3c90accc8e74ffb871d3fc8c8c405a
3
+ metadata.gz: f8a89babca8147f47136a4f713fd15d86d577ea2
4
+ data.tar.gz: baee2c2379ca8935572af160ffd84dc28229afce
5
5
  SHA512:
6
- metadata.gz: 6573b250049bd359f6b287888e99c8c2cae085e1527770d274418586d73a6d055fb280f2198fca5070e3f203bdc6ae8cf0a64d6d0144437caa53aa11587b6edc
7
- data.tar.gz: 78e737d0c04bfad005835c1e182745fd56e63e916b00ef3c043bad3f1a26ea0e4a6ff1c24fe117943b3b20a2195dfb784c4f89cdb0dbd15388afa389803f0735
6
+ metadata.gz: 9b36e4c78bf5ca2720bfab7dd7f743dfe6d048ef9cc47d0a56527fa232ff8059968ef458d63e67bd9996ba7dfe6693a86430df0fa453c8c145b5dc71c8673fbb
7
+ data.tar.gz: 102d9bec15a6285841daf19c5dc8a6910aef9534579cd9d8975c1867925c3620f4f6b63c3f55b6776a4d3ff4505fa759c3667391cc9edf2ff3d285d3954c33ad
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1096
1
+ 3.0.1099
@@ -924,6 +924,8 @@ module TencentCloud
924
924
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
925
925
  end
926
926
 
927
+ # <b>此接口为通用手写体识别的旧版本服务,不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/34937">通用印刷体识别(高精度)识别服务</a>。</b>
928
+
927
929
  # 本接口支持图片内手写体文字的检测和识别,针对手写字体无规则、字迹潦草、模糊等特点进行了识别能力的增强。
928
930
 
929
931
  # 默认接口请求频率限制:10次/秒。
@@ -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)
@@ -4110,16 +4152,9 @@ module TencentCloud
4110
4152
 
4111
4153
  # GeneralHandwritingOCR请求参数结构体
4112
4154
  class GeneralHandwritingOCRRequest < TencentCloud::Common::AbstractModel
4113
- # @param ImageBase64: 图片的 Base64 值。
4114
- # 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
4115
- # 支持的图片大小:所下载图片经Base64编码后不超过 7M。
4116
- # 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
4155
+ # @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
4117
4156
  # @type ImageBase64: String
4118
- # @param ImageUrl: 图片的 Url 地址。
4119
- # 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
4120
- # 支持的图片大小:所下载图片经 Base64 编码后不超过7M。图片下载时间不超过 3 秒。
4121
- # 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
4122
- # 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
4157
+ # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
4123
4158
  # @type ImageUrl: String
4124
4159
  # @param Scene: 场景字段,默认不用填写。
4125
4160
  # 可选值:only_hw 表示只输出手写体识别结果,过滤印刷体。
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.1096
4
+ version: 3.0.1099
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-07 00:00:00.000000000 Z
11
+ date: 2025-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common