tencentcloud-sdk-ocr 3.0.1171 → 3.0.1178

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20181119/models.rb +63 -46
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4733ea46331805fe738d3f05416a2824fc22b2b2
4
- data.tar.gz: e1417c7396a43765461fbbfb55a659ea70baf9a1
3
+ metadata.gz: 5cf12363cc81ba0e7f244037564f0a43349c600f
4
+ data.tar.gz: 12ca5b0de3db68ce9a275c6b3ca10986004949ae
5
5
  SHA512:
6
- metadata.gz: eaac1f111762c27406df131e6517d46ff3ff4fc2243362510af77ec3da1f0f6bf0b7a137b160096795a0061c9cf1038d65d29d2433439b2bcf12c88f1235d6ef
7
- data.tar.gz: 44bf136f34a48ad8a5d91ce1f7820e1ae00d7284ecff4ad5f87bd979fcd08f7015a802486a58e507718c5deb76df42c65402e5f8ff8bbef6d6dabb177732e681
6
+ metadata.gz: a06bfc08c23073542d4743a2a382ac7cd858f017fee066b03ce17b2f32995854a4d8096805fe97086f90bb2fad9a9d6d636c9b25a94b15278a4b81b808ac3f23
7
+ data.tar.gz: e41ad98f8c98ebfa94b26b16dcb898f8835089487b4fd93ee7979ba138b3cf175cedca77ff77eee39e7f86db885cd977244bdcc20d02dcd5598a0ca0ef5a69ba
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1171
1
+ 3.0.1178
@@ -2169,10 +2169,18 @@ module TencentCloud
2169
2169
 
2170
2170
  # 注意:此字段可能返回 null,表示取不到有效值。
2171
2171
  # @type ElectronicAirTransportDetails: Array
2172
+ # @param Fare: 票价
2173
+ # @type Fare: String
2174
+ # @param FuelSurcharge: 燃油附加费
2175
+ # @type FuelSurcharge: String
2176
+ # @param TaxAmount: 增值税税额
2177
+ # @type TaxAmount: String
2178
+ # @param DevelopmentFund: 民航发展基金
2179
+ # @type DevelopmentFund: String
2172
2180
 
2173
- attr_accessor :Code, :Number, :Date, :Amount, :CheckCode, :Total, :DeductionMark, :StateCode, :BuyerTaxCode, :BuyerName, :Tax, :DomesticInternationalMark, :PassengerName, :PassengerNo, :ElectronicNumber, :ElectronicAirTransportDetails
2181
+ attr_accessor :Code, :Number, :Date, :Amount, :CheckCode, :Total, :DeductionMark, :StateCode, :BuyerTaxCode, :BuyerName, :Tax, :DomesticInternationalMark, :PassengerName, :PassengerNo, :ElectronicNumber, :ElectronicAirTransportDetails, :Fare, :FuelSurcharge, :TaxAmount, :DevelopmentFund
2174
2182
 
2175
- def initialize(code=nil, number=nil, date=nil, amount=nil, checkcode=nil, total=nil, deductionmark=nil, statecode=nil, buyertaxcode=nil, buyername=nil, tax=nil, domesticinternationalmark=nil, passengername=nil, passengerno=nil, electronicnumber=nil, electronicairtransportdetails=nil)
2183
+ def initialize(code=nil, number=nil, date=nil, amount=nil, checkcode=nil, total=nil, deductionmark=nil, statecode=nil, buyertaxcode=nil, buyername=nil, tax=nil, domesticinternationalmark=nil, passengername=nil, passengerno=nil, electronicnumber=nil, electronicairtransportdetails=nil, fare=nil, fuelsurcharge=nil, taxamount=nil, developmentfund=nil)
2176
2184
  @Code = code
2177
2185
  @Number = number
2178
2186
  @Date = date
@@ -2189,6 +2197,10 @@ module TencentCloud
2189
2197
  @PassengerNo = passengerno
2190
2198
  @ElectronicNumber = electronicnumber
2191
2199
  @ElectronicAirTransportDetails = electronicairtransportdetails
2200
+ @Fare = fare
2201
+ @FuelSurcharge = fuelsurcharge
2202
+ @TaxAmount = taxamount
2203
+ @DevelopmentFund = developmentfund
2192
2204
  end
2193
2205
 
2194
2206
  def deserialize(params)
@@ -2215,6 +2227,10 @@ module TencentCloud
2215
2227
  @ElectronicAirTransportDetails << electronicairtransportdetail_tmp
2216
2228
  end
2217
2229
  end
2230
+ @Fare = params['Fare']
2231
+ @FuelSurcharge = params['FuelSurcharge']
2232
+ @TaxAmount = params['TaxAmount']
2233
+ @DevelopmentFund = params['DevelopmentFund']
2218
2234
  end
2219
2235
  end
2220
2236
 
@@ -3028,9 +3044,9 @@ module TencentCloud
3028
3044
 
3029
3045
  # ExtractDocBasic请求参数结构体
3030
3046
  class ExtractDocBasicRequest < TencentCloud::Common::AbstractModel
3031
- # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
3047
+ # @param ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
3032
3048
  # @type ImageUrl: String
3033
- # @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
3049
+ # @param ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
3034
3050
  # @type ImageBase64: String
3035
3051
  # @param IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
3036
3052
  # @type IsPdf: Boolean
@@ -3044,6 +3060,7 @@ module TencentCloud
3044
3060
  # @type ReturnFullText: Boolean
3045
3061
  # @param ConfigId: 配置id支持:
3046
3062
  # General -- 通用场景
3063
+ # GeneralNoDate -- 无后处理日期格式模版
3047
3064
  # OnlineTaxiItinerary -- 网约车行程单
3048
3065
  # RideHailingDriverLicense -- 网约车驾驶证
3049
3066
  # RideHailingTransportLicense -- 网约车运输证
@@ -3142,9 +3159,9 @@ module TencentCloud
3142
3159
 
3143
3160
  # ExtractDocMultiPro请求参数结构体
3144
3161
  class ExtractDocMultiProRequest < TencentCloud::Common::AbstractModel
3145
- # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,WORD,EXCEL,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
3162
+ # @param ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
3146
3163
  # @type ImageUrl: String
3147
- # @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,WORD,EXCEL,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
3164
+ # @param ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
3148
3165
  # @type ImageBase64: String
3149
3166
  # @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前3页。
3150
3167
  # @type PdfPageNumber: Integer
@@ -3248,11 +3265,11 @@ module TencentCloud
3248
3265
 
3249
3266
  # ExtractDocMulti请求参数结构体
3250
3267
  class ExtractDocMultiRequest < TencentCloud::Common::AbstractModel
3251
- # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,WORD,EXCEL,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
3268
+ # @param ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
3252
3269
  # @type ImageUrl: String
3253
- # @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,WORD,EXCEL,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
3270
+ # @param ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
3254
3271
  # @type ImageBase64: String
3255
- # @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前3页。
3272
+ # @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,默认值为前3页。
3256
3273
  # @type PdfPageNumber: Integer
3257
3274
  # @param ItemNames: 自定义结构化功能需返回的字段名称,例:若客户想新增返回姓名、性别两个字段的识别结果,则输入ItemNames=["姓名","性别"]
3258
3275
  # @type ItemNames: Array
@@ -4039,8 +4056,8 @@ module TencentCloud
4039
4056
 
4040
4057
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
4041
4058
  extend Gem::Deprecate
4042
- deprecate :Angel, :none, 2025, 11
4043
- deprecate :Angel=, :none, 2025, 11
4059
+ deprecate :Angel, :none, 2025, 12
4060
+ deprecate :Angel=, :none, 2025, 12
4044
4061
 
4045
4062
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
4046
4063
  @TextDetections = textdetections
@@ -4146,8 +4163,8 @@ module TencentCloud
4146
4163
 
4147
4164
  attr_accessor :TextDetections, :Language, :Angel, :PdfPageSize, :Angle, :RequestId
4148
4165
  extend Gem::Deprecate
4149
- deprecate :Angel, :none, 2025, 11
4150
- deprecate :Angel=, :none, 2025, 11
4166
+ deprecate :Angel, :none, 2025, 12
4167
+ deprecate :Angel=, :none, 2025, 12
4151
4168
 
4152
4169
  def initialize(textdetections=nil, language=nil, angel=nil, pdfpagesize=nil, angle=nil, requestid=nil)
4153
4170
  @TextDetections = textdetections
@@ -4243,8 +4260,8 @@ module TencentCloud
4243
4260
 
4244
4261
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
4245
4262
  extend Gem::Deprecate
4246
- deprecate :Angel, :none, 2025, 11
4247
- deprecate :Angel=, :none, 2025, 11
4263
+ deprecate :Angel, :none, 2025, 12
4264
+ deprecate :Angel=, :none, 2025, 12
4248
4265
 
4249
4266
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
4250
4267
  @TextDetections = textdetections
@@ -4390,8 +4407,8 @@ module TencentCloud
4390
4407
 
4391
4408
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
4392
4409
  extend Gem::Deprecate
4393
- deprecate :Angel, :none, 2025, 11
4394
- deprecate :Angel=, :none, 2025, 11
4410
+ deprecate :Angel, :none, 2025, 12
4411
+ deprecate :Angel=, :none, 2025, 12
4395
4412
 
4396
4413
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
4397
4414
  @TextDetections = textdetections
@@ -4592,8 +4609,8 @@ module TencentCloud
4592
4609
 
4593
4610
  attr_accessor :ReturnHeadImage, :DetectFake, :ImageBase64, :ImageUrl
4594
4611
  extend Gem::Deprecate
4595
- deprecate :DetectFake, :none, 2025, 11
4596
- deprecate :DetectFake=, :none, 2025, 11
4612
+ deprecate :DetectFake, :none, 2025, 12
4613
+ deprecate :DetectFake=, :none, 2025, 12
4597
4614
 
4598
4615
  def initialize(returnheadimage=nil, detectfake=nil, imagebase64=nil, imageurl=nil)
4599
4616
  @ReturnHeadImage = returnheadimage
@@ -4658,10 +4675,10 @@ module TencentCloud
4658
4675
 
4659
4676
  attr_accessor :CnName, :EnName, :TelexCode, :Sex, :Birthday, :Permanent, :IdNum, :Symbol, :FirstIssueDate, :CurrentIssueDate, :FakeDetectResult, :HeadImage, :SmallHeadImage, :WarningCode, :WarnCardInfos, :WindowEmbeddedText, :RequestId
4660
4677
  extend Gem::Deprecate
4661
- deprecate :FakeDetectResult, :none, 2025, 11
4662
- deprecate :FakeDetectResult=, :none, 2025, 11
4663
- deprecate :WarningCode, :none, 2025, 11
4664
- deprecate :WarningCode=, :none, 2025, 11
4678
+ deprecate :FakeDetectResult, :none, 2025, 12
4679
+ deprecate :FakeDetectResult=, :none, 2025, 12
4680
+ deprecate :WarningCode, :none, 2025, 12
4681
+ deprecate :WarningCode=, :none, 2025, 12
4665
4682
 
4666
4683
  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, smallheadimage=nil, warningcode=nil, warncardinfos=nil, windowembeddedtext=nil, requestid=nil)
4667
4684
  @CnName = cnname
@@ -4706,9 +4723,9 @@ module TencentCloud
4706
4723
 
4707
4724
  # HandwritingEssayOCR请求参数结构体
4708
4725
  class HandwritingEssayOCRRequest < TencentCloud::Common::AbstractModel
4709
- # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,WORD,EXCEL,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
4726
+ # @param ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
4710
4727
  # @type ImageUrl: String
4711
- # @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,WORD,EXCEL,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
4728
+ # @param ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
4712
4729
  # @type ImageBase64: String
4713
4730
  # @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前3页。
4714
4731
  # @type PdfPageNumber: Integer
@@ -5121,8 +5138,8 @@ module TencentCloud
5121
5138
 
5122
5139
  attr_accessor :ImageBase64, :ImageUrl, :CardSide, :Config, :EnableRecognitionRectify, :EnableReflectDetail, :EnableDateVerify, :CardWarnType
5123
5140
  extend Gem::Deprecate
5124
- deprecate :EnableDateVerify, :none, 2025, 11
5125
- deprecate :EnableDateVerify=, :none, 2025, 11
5141
+ deprecate :EnableDateVerify, :none, 2025, 12
5142
+ deprecate :EnableDateVerify=, :none, 2025, 12
5126
5143
 
5127
5144
  def initialize(imagebase64=nil, imageurl=nil, cardside=nil, config=nil, enablerecognitionrectify=nil, enablereflectdetail=nil, enabledateverify=nil, cardwarntype=nil)
5128
5145
  @ImageBase64 = imagebase64
@@ -6040,10 +6057,10 @@ module TencentCloud
6040
6057
 
6041
6058
  attr_accessor :ID, :Name, :Address, :Sex, :Warn, :Image, :AdvancedInfo, :Type, :Birthday, :MyKadNumber, :WarnCardInfos, :RequestId
6042
6059
  extend Gem::Deprecate
6043
- deprecate :Warn, :none, 2025, 11
6044
- deprecate :Warn=, :none, 2025, 11
6045
- deprecate :AdvancedInfo, :none, 2025, 11
6046
- deprecate :AdvancedInfo=, :none, 2025, 11
6060
+ deprecate :Warn, :none, 2025, 12
6061
+ deprecate :Warn=, :none, 2025, 12
6062
+ deprecate :AdvancedInfo, :none, 2025, 12
6063
+ deprecate :AdvancedInfo=, :none, 2025, 12
6047
6064
 
6048
6065
  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)
6049
6066
  @ID = id
@@ -6145,10 +6162,10 @@ module TencentCloud
6145
6162
 
6146
6163
  attr_accessor :ID, :Name, :DateOfBirth, :Sex, :DateOfExpiration, :IssuingCountry, :Nationality, :Warn, :Image, :AdvancedInfo, :CodeSet, :CodeCrc, :Surname, :GivenName, :Type, :PassportRecognizeInfos, :WarnCardInfos, :CardCount, :RequestId
6147
6164
  extend Gem::Deprecate
6148
- deprecate :Warn, :none, 2025, 11
6149
- deprecate :Warn=, :none, 2025, 11
6150
- deprecate :AdvancedInfo, :none, 2025, 11
6151
- deprecate :AdvancedInfo=, :none, 2025, 11
6165
+ deprecate :Warn, :none, 2025, 12
6166
+ deprecate :Warn=, :none, 2025, 12
6167
+ deprecate :AdvancedInfo, :none, 2025, 12
6168
+ deprecate :AdvancedInfo=, :none, 2025, 12
6152
6169
 
6153
6170
  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, cardcount=nil, requestid=nil)
6154
6171
  @ID = id
@@ -8145,9 +8162,9 @@ module TencentCloud
8145
8162
 
8146
8163
  # QuestionSplitLayoutOCR请求参数结构体
8147
8164
  class QuestionSplitLayoutOCRRequest < TencentCloud::Common::AbstractModel
8148
- # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
8165
+ # @param ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
8149
8166
  # @type ImageUrl: String
8150
- # @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
8167
+ # @param ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
8151
8168
  # @type ImageBase64: String
8152
8169
  # @param IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
8153
8170
  # @type IsPdf: Boolean
@@ -8208,9 +8225,9 @@ module TencentCloud
8208
8225
 
8209
8226
  # QuestionSplitOCR请求参数结构体
8210
8227
  class QuestionSplitOCRRequest < TencentCloud::Common::AbstractModel
8211
- # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
8228
+ # @param ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
8212
8229
  # @type ImageUrl: String
8213
- # @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
8230
+ # @param ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
8214
8231
  # @type ImageBase64: String
8215
8232
  # @param IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
8216
8233
  # @type IsPdf: Boolean
@@ -9363,7 +9380,7 @@ module TencentCloud
9363
9380
  # @param PdfPageSize: 图片为PDF时,返回PDF的总页数,默认为0
9364
9381
  # 注意:此字段可能返回 null,表示取不到有效值。
9365
9382
  # @type PdfPageSize: Integer
9366
- # @param Angle: 图片旋转角度(角度制),文本的水平方向为0°,统一以逆时针方向旋转,逆时针为负,角度范围为-360°至0°。
9383
+ # @param Angle: 图片旋转角度(角度制),文本的水平方向为0°。
9367
9384
  # 注意:此字段可能返回 null,表示取不到有效值。
9368
9385
  # @type Angle: Float
9369
9386
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -9608,8 +9625,8 @@ module TencentCloud
9608
9625
 
9609
9626
  attr_accessor :ID, :ThaiName, :EnFirstName, :EnLastName, :IssueDate, :ExpirationDate, :EnIssueDate, :EnExpirationDate, :Birthday, :EnBirthday, :Religion, :SerialNumber, :Address, :LaserID, :PortraitImage, :WarnCardInfos, :AdvancedInfo, :CardCount, :RequestId
9610
9627
  extend Gem::Deprecate
9611
- deprecate :AdvancedInfo, :none, 2025, 11
9612
- deprecate :AdvancedInfo=, :none, 2025, 11
9628
+ deprecate :AdvancedInfo, :none, 2025, 12
9629
+ deprecate :AdvancedInfo=, :none, 2025, 12
9613
9630
 
9614
9631
  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, cardcount=nil, requestid=nil)
9615
9632
  @ID = id
@@ -11191,9 +11208,9 @@ module TencentCloud
11191
11208
 
11192
11209
  # SubmitExtractDocAgentJob请求参数结构体
11193
11210
  class SubmitExtractDocAgentJobRequest < TencentCloud::Common::AbstractModel
11194
- # @param ImageBase64: 图片/PDF的 Base64 值。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF、WORD、EXCEL格式。 图片支持的像素范围:需介于20-10000px之间。 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
11211
+ # @param ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
11195
11212
  # @type ImageBase64: String
11196
- # @param ImageUrl: 图片/PDF的 Url 地址。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF、WORD、EXCEL格式。 图片支持的像素范围:需介于20-10000px之间。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
11213
+ # @param ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
11197
11214
  # @type ImageUrl: String
11198
11215
  # @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前5页。
11199
11216
  # @type PdfPageNumber: Integer
@@ -11208,8 +11225,8 @@ module TencentCloud
11208
11225
 
11209
11226
  attr_accessor :ImageBase64, :ImageUrl, :PdfPageNumber, :ItemNames, :EnableCoord, :FileStartPageNumber, :FileEndPageNumber
11210
11227
  extend Gem::Deprecate
11211
- deprecate :PdfPageNumber, :none, 2025, 11
11212
- deprecate :PdfPageNumber=, :none, 2025, 11
11228
+ deprecate :PdfPageNumber, :none, 2025, 12
11229
+ deprecate :PdfPageNumber=, :none, 2025, 12
11213
11230
 
11214
11231
  def initialize(imagebase64=nil, imageurl=nil, pdfpagenumber=nil, itemnames=nil, enablecoord=nil, filestartpagenumber=nil, fileendpagenumber=nil)
11215
11232
  @ImageBase64 = imagebase64
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.1171
4
+ version: 3.0.1178
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-11-20 00:00:00.000000000 Z
11
+ date: 2025-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,8 +33,8 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/v20181119/client.rb
37
36
  - lib/v20181119/models.rb
37
+ - lib/v20181119/client.rb
38
38
  - lib/tencentcloud-sdk-ocr.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby