tencentcloud-sdk-ocr 3.0.1171 → 3.0.1177

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 +43 -43
  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: 9681bbc98cd13bb44662039b9fa8f153ab9faea2
4
+ data.tar.gz: 560644566aa017a0e5e1a137f1e2712c7174ead1
5
5
  SHA512:
6
- metadata.gz: eaac1f111762c27406df131e6517d46ff3ff4fc2243362510af77ec3da1f0f6bf0b7a137b160096795a0061c9cf1038d65d29d2433439b2bcf12c88f1235d6ef
7
- data.tar.gz: 44bf136f34a48ad8a5d91ce1f7820e1ae00d7284ecff4ad5f87bd979fcd08f7015a802486a58e507718c5deb76df42c65402e5f8ff8bbef6d6dabb177732e681
6
+ metadata.gz: 32ae185eea6c7b528f842bd2fb67b9b82fd924a7a5ec7679e901e9aa99add6a2700e5d169d71fdbf08763251c85a5a69abb0cfbf39a843b714127bcd210ce2a2
7
+ data.tar.gz: 45da2e0014a5dca2cce98585d570033c1d2f9ae220d1ab692833927a5f603ce1c46b98cead7d0b93982442f0e5595c31c6203d5b0d45913b352a84b8050a31d4
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1171
1
+ 3.0.1177
@@ -3028,9 +3028,9 @@ module TencentCloud
3028
3028
 
3029
3029
  # ExtractDocBasic请求参数结构体
3030
3030
  class ExtractDocBasicRequest < TencentCloud::Common::AbstractModel
3031
- # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
3031
+ # @param ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
3032
3032
  # @type ImageUrl: String
3033
- # @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
3033
+ # @param ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
3034
3034
  # @type ImageBase64: String
3035
3035
  # @param IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
3036
3036
  # @type IsPdf: Boolean
@@ -3142,9 +3142,9 @@ module TencentCloud
3142
3142
 
3143
3143
  # ExtractDocMultiPro请求参数结构体
3144
3144
  class ExtractDocMultiProRequest < TencentCloud::Common::AbstractModel
3145
- # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,WORD,EXCEL,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
3145
+ # @param ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
3146
3146
  # @type ImageUrl: String
3147
- # @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,WORD,EXCEL,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
3147
+ # @param ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
3148
3148
  # @type ImageBase64: String
3149
3149
  # @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前3页。
3150
3150
  # @type PdfPageNumber: Integer
@@ -3248,11 +3248,11 @@ module TencentCloud
3248
3248
 
3249
3249
  # ExtractDocMulti请求参数结构体
3250
3250
  class ExtractDocMultiRequest < TencentCloud::Common::AbstractModel
3251
- # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,WORD,EXCEL,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
3251
+ # @param ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
3252
3252
  # @type ImageUrl: String
3253
- # @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,WORD,EXCEL,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
3253
+ # @param ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
3254
3254
  # @type ImageBase64: String
3255
- # @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前3页。
3255
+ # @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,默认值为前3页。
3256
3256
  # @type PdfPageNumber: Integer
3257
3257
  # @param ItemNames: 自定义结构化功能需返回的字段名称,例:若客户想新增返回姓名、性别两个字段的识别结果,则输入ItemNames=["姓名","性别"]
3258
3258
  # @type ItemNames: Array
@@ -4039,8 +4039,8 @@ module TencentCloud
4039
4039
 
4040
4040
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
4041
4041
  extend Gem::Deprecate
4042
- deprecate :Angel, :none, 2025, 11
4043
- deprecate :Angel=, :none, 2025, 11
4042
+ deprecate :Angel, :none, 2025, 12
4043
+ deprecate :Angel=, :none, 2025, 12
4044
4044
 
4045
4045
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
4046
4046
  @TextDetections = textdetections
@@ -4146,8 +4146,8 @@ module TencentCloud
4146
4146
 
4147
4147
  attr_accessor :TextDetections, :Language, :Angel, :PdfPageSize, :Angle, :RequestId
4148
4148
  extend Gem::Deprecate
4149
- deprecate :Angel, :none, 2025, 11
4150
- deprecate :Angel=, :none, 2025, 11
4149
+ deprecate :Angel, :none, 2025, 12
4150
+ deprecate :Angel=, :none, 2025, 12
4151
4151
 
4152
4152
  def initialize(textdetections=nil, language=nil, angel=nil, pdfpagesize=nil, angle=nil, requestid=nil)
4153
4153
  @TextDetections = textdetections
@@ -4243,8 +4243,8 @@ module TencentCloud
4243
4243
 
4244
4244
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
4245
4245
  extend Gem::Deprecate
4246
- deprecate :Angel, :none, 2025, 11
4247
- deprecate :Angel=, :none, 2025, 11
4246
+ deprecate :Angel, :none, 2025, 12
4247
+ deprecate :Angel=, :none, 2025, 12
4248
4248
 
4249
4249
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
4250
4250
  @TextDetections = textdetections
@@ -4390,8 +4390,8 @@ module TencentCloud
4390
4390
 
4391
4391
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
4392
4392
  extend Gem::Deprecate
4393
- deprecate :Angel, :none, 2025, 11
4394
- deprecate :Angel=, :none, 2025, 11
4393
+ deprecate :Angel, :none, 2025, 12
4394
+ deprecate :Angel=, :none, 2025, 12
4395
4395
 
4396
4396
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
4397
4397
  @TextDetections = textdetections
@@ -4592,8 +4592,8 @@ module TencentCloud
4592
4592
 
4593
4593
  attr_accessor :ReturnHeadImage, :DetectFake, :ImageBase64, :ImageUrl
4594
4594
  extend Gem::Deprecate
4595
- deprecate :DetectFake, :none, 2025, 11
4596
- deprecate :DetectFake=, :none, 2025, 11
4595
+ deprecate :DetectFake, :none, 2025, 12
4596
+ deprecate :DetectFake=, :none, 2025, 12
4597
4597
 
4598
4598
  def initialize(returnheadimage=nil, detectfake=nil, imagebase64=nil, imageurl=nil)
4599
4599
  @ReturnHeadImage = returnheadimage
@@ -4658,10 +4658,10 @@ module TencentCloud
4658
4658
 
4659
4659
  attr_accessor :CnName, :EnName, :TelexCode, :Sex, :Birthday, :Permanent, :IdNum, :Symbol, :FirstIssueDate, :CurrentIssueDate, :FakeDetectResult, :HeadImage, :SmallHeadImage, :WarningCode, :WarnCardInfos, :WindowEmbeddedText, :RequestId
4660
4660
  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
4661
+ deprecate :FakeDetectResult, :none, 2025, 12
4662
+ deprecate :FakeDetectResult=, :none, 2025, 12
4663
+ deprecate :WarningCode, :none, 2025, 12
4664
+ deprecate :WarningCode=, :none, 2025, 12
4665
4665
 
4666
4666
  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
4667
  @CnName = cnname
@@ -4706,9 +4706,9 @@ module TencentCloud
4706
4706
 
4707
4707
  # HandwritingEssayOCR请求参数结构体
4708
4708
  class HandwritingEssayOCRRequest < TencentCloud::Common::AbstractModel
4709
- # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,WORD,EXCEL,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
4709
+ # @param ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
4710
4710
  # @type ImageUrl: String
4711
- # @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,WORD,EXCEL,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
4711
+ # @param ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
4712
4712
  # @type ImageBase64: String
4713
4713
  # @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前3页。
4714
4714
  # @type PdfPageNumber: Integer
@@ -5121,8 +5121,8 @@ module TencentCloud
5121
5121
 
5122
5122
  attr_accessor :ImageBase64, :ImageUrl, :CardSide, :Config, :EnableRecognitionRectify, :EnableReflectDetail, :EnableDateVerify, :CardWarnType
5123
5123
  extend Gem::Deprecate
5124
- deprecate :EnableDateVerify, :none, 2025, 11
5125
- deprecate :EnableDateVerify=, :none, 2025, 11
5124
+ deprecate :EnableDateVerify, :none, 2025, 12
5125
+ deprecate :EnableDateVerify=, :none, 2025, 12
5126
5126
 
5127
5127
  def initialize(imagebase64=nil, imageurl=nil, cardside=nil, config=nil, enablerecognitionrectify=nil, enablereflectdetail=nil, enabledateverify=nil, cardwarntype=nil)
5128
5128
  @ImageBase64 = imagebase64
@@ -6040,10 +6040,10 @@ module TencentCloud
6040
6040
 
6041
6041
  attr_accessor :ID, :Name, :Address, :Sex, :Warn, :Image, :AdvancedInfo, :Type, :Birthday, :MyKadNumber, :WarnCardInfos, :RequestId
6042
6042
  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
6043
+ deprecate :Warn, :none, 2025, 12
6044
+ deprecate :Warn=, :none, 2025, 12
6045
+ deprecate :AdvancedInfo, :none, 2025, 12
6046
+ deprecate :AdvancedInfo=, :none, 2025, 12
6047
6047
 
6048
6048
  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
6049
  @ID = id
@@ -6145,10 +6145,10 @@ module TencentCloud
6145
6145
 
6146
6146
  attr_accessor :ID, :Name, :DateOfBirth, :Sex, :DateOfExpiration, :IssuingCountry, :Nationality, :Warn, :Image, :AdvancedInfo, :CodeSet, :CodeCrc, :Surname, :GivenName, :Type, :PassportRecognizeInfos, :WarnCardInfos, :CardCount, :RequestId
6147
6147
  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
6148
+ deprecate :Warn, :none, 2025, 12
6149
+ deprecate :Warn=, :none, 2025, 12
6150
+ deprecate :AdvancedInfo, :none, 2025, 12
6151
+ deprecate :AdvancedInfo=, :none, 2025, 12
6152
6152
 
6153
6153
  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
6154
  @ID = id
@@ -8145,9 +8145,9 @@ module TencentCloud
8145
8145
 
8146
8146
  # QuestionSplitLayoutOCR请求参数结构体
8147
8147
  class QuestionSplitLayoutOCRRequest < TencentCloud::Common::AbstractModel
8148
- # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
8148
+ # @param ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
8149
8149
  # @type ImageUrl: String
8150
- # @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
8150
+ # @param ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
8151
8151
  # @type ImageBase64: String
8152
8152
  # @param IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
8153
8153
  # @type IsPdf: Boolean
@@ -8208,9 +8208,9 @@ module TencentCloud
8208
8208
 
8209
8209
  # QuestionSplitOCR请求参数结构体
8210
8210
  class QuestionSplitOCRRequest < TencentCloud::Common::AbstractModel
8211
- # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
8211
+ # @param ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
8212
8212
  # @type ImageUrl: String
8213
- # @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
8213
+ # @param ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
8214
8214
  # @type ImageBase64: String
8215
8215
  # @param IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
8216
8216
  # @type IsPdf: Boolean
@@ -9608,8 +9608,8 @@ module TencentCloud
9608
9608
 
9609
9609
  attr_accessor :ID, :ThaiName, :EnFirstName, :EnLastName, :IssueDate, :ExpirationDate, :EnIssueDate, :EnExpirationDate, :Birthday, :EnBirthday, :Religion, :SerialNumber, :Address, :LaserID, :PortraitImage, :WarnCardInfos, :AdvancedInfo, :CardCount, :RequestId
9610
9610
  extend Gem::Deprecate
9611
- deprecate :AdvancedInfo, :none, 2025, 11
9612
- deprecate :AdvancedInfo=, :none, 2025, 11
9611
+ deprecate :AdvancedInfo, :none, 2025, 12
9612
+ deprecate :AdvancedInfo=, :none, 2025, 12
9613
9613
 
9614
9614
  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
9615
  @ID = id
@@ -11191,9 +11191,9 @@ module TencentCloud
11191
11191
 
11192
11192
  # SubmitExtractDocAgentJob请求参数结构体
11193
11193
  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。
11194
+ # @param ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
11195
11195
  # @type ImageBase64: String
11196
- # @param ImageUrl: 图片/PDF的 Url 地址。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF、WORD、EXCEL格式。 图片支持的像素范围:需介于20-10000px之间。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
11196
+ # @param ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
11197
11197
  # @type ImageUrl: String
11198
11198
  # @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前5页。
11199
11199
  # @type PdfPageNumber: Integer
@@ -11208,8 +11208,8 @@ module TencentCloud
11208
11208
 
11209
11209
  attr_accessor :ImageBase64, :ImageUrl, :PdfPageNumber, :ItemNames, :EnableCoord, :FileStartPageNumber, :FileEndPageNumber
11210
11210
  extend Gem::Deprecate
11211
- deprecate :PdfPageNumber, :none, 2025, 11
11212
- deprecate :PdfPageNumber=, :none, 2025, 11
11211
+ deprecate :PdfPageNumber, :none, 2025, 12
11212
+ deprecate :PdfPageNumber=, :none, 2025, 12
11213
11213
 
11214
11214
  def initialize(imagebase64=nil, imageurl=nil, pdfpagenumber=nil, itemnames=nil, enablecoord=nil, filestartpagenumber=nil, fileendpagenumber=nil)
11215
11215
  @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.1177
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-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,9 +33,9 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
+ - lib/tencentcloud-sdk-ocr.rb
36
37
  - lib/v20181119/client.rb
37
38
  - lib/v20181119/models.rb
38
- - lib/tencentcloud-sdk-ocr.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: