Class: TencentCloud::Ocr::V20181119::GeneralFastOCRRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20181119/models.rb

Overview

GeneralFastOCR请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(imagebase64 = nil, imageurl = nil, ispdf = nil, pdfpagenumber = nil) ⇒ GeneralFastOCRRequest



4308
4309
4310
4311
4312
4313
# File 'lib/v20181119/models.rb', line 4308

def initialize(imagebase64=nil, imageurl=nil, ispdf=nil, pdfpagenumber=nil)
  @ImageBase64 = imagebase64
  @ImageUrl = imageurl
  @IsPdf = ispdf
  @PdfPageNumber = pdfpagenumber
end

Instance Attribute Details

#ImageBase64Object

支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。



4306
4307
4308
# File 'lib/v20181119/models.rb', line 4306

def ImageBase64
  @ImageBase64
end

#ImageUrlObject

支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。



4306
4307
4308
# File 'lib/v20181119/models.rb', line 4306

def ImageUrl
  @ImageUrl
end

#IsPdfObject

支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。



4306
4307
4308
# File 'lib/v20181119/models.rb', line 4306

def IsPdf
  @IsPdf
end

#PdfPageNumberObject

支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。



4306
4307
4308
# File 'lib/v20181119/models.rb', line 4306

def PdfPageNumber
  @PdfPageNumber
end

Instance Method Details

#deserialize(params) ⇒ Object



4315
4316
4317
4318
4319
4320
# File 'lib/v20181119/models.rb', line 4315

def deserialize(params)
  @ImageBase64 = params['ImageBase64']
  @ImageUrl = params['ImageUrl']
  @IsPdf = params['IsPdf']
  @PdfPageNumber = params['PdfPageNumber']
end