Class: TencentCloud::Ocr::V20181119::RecognizeFormulaOCRRequest

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

Overview

RecognizeFormulaOCR请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of RecognizeFormulaOCRRequest.



8831
8832
8833
8834
8835
8836
# File 'lib/v20181119/models.rb', line 8831

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

Instance Attribute Details

#ImageBase64Object

Parameters:

  • ImageUrl:

    图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。

  • ImageBase64:

    图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。

  • IsPdf:

    是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。

  • PdfPageNumber:

    需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。



8829
8830
8831
# File 'lib/v20181119/models.rb', line 8829

def ImageBase64
  @ImageBase64
end

#ImageUrlObject

Parameters:

  • ImageUrl:

    图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。

  • ImageBase64:

    图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。

  • IsPdf:

    是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。

  • PdfPageNumber:

    需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。



8829
8830
8831
# File 'lib/v20181119/models.rb', line 8829

def ImageUrl
  @ImageUrl
end

#IsPdfObject

Parameters:

  • ImageUrl:

    图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。

  • ImageBase64:

    图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。

  • IsPdf:

    是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。

  • PdfPageNumber:

    需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。



8829
8830
8831
# File 'lib/v20181119/models.rb', line 8829

def IsPdf
  @IsPdf
end

#PdfPageNumberObject

Parameters:

  • ImageUrl:

    图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。

  • ImageBase64:

    图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。

  • IsPdf:

    是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。

  • PdfPageNumber:

    需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。



8829
8830
8831
# File 'lib/v20181119/models.rb', line 8829

def PdfPageNumber
  @PdfPageNumber
end

Instance Method Details

#deserialize(params) ⇒ Object



8838
8839
8840
8841
8842
8843
# File 'lib/v20181119/models.rb', line 8838

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