Class: TencentCloud::Ocr::V20181119::EnglishOCRRequest

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

Overview

EnglishOCR请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(imagebase64 = nil, imageurl = nil, enablecoordpoint = nil, enablecandword = nil, preprocess = nil) ⇒ EnglishOCRRequest

Returns a new instance of EnglishOCRRequest.



2834
2835
2836
2837
2838
2839
2840
# File 'lib/v20181119/models.rb', line 2834

def initialize(imagebase64=nil, imageurl=nil, enablecoordpoint=nil, enablecandword=nil, preprocess=nil)
  @ImageBase64 = imagebase64
  @ImageUrl = imageurl
  @EnableCoordPoint = enablecoordpoint
  @EnableCandWord = enablecandword
  @Preprocess = preprocess
end

Instance Attribute Details

#EnableCandWordObject

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

Parameters:

  • ImageBase64:

    图片的 Base64 值。

  • ImageUrl:

    图片的 Url 地址。

  • EnableCoordPoint:

    单词四点坐标开关,开启可返回图片中单词的四点坐标。

  • EnableCandWord:

    候选字开关,开启可返回识别时多个可能的候选字(每个候选字对应其置信度)。

  • Preprocess:

    预处理开关,功能是检测图片倾斜的角度,将原本倾斜的图片矫正。该参数默认值为true。



2832
2833
2834
# File 'lib/v20181119/models.rb', line 2832

def EnableCandWord
  @EnableCandWord
end

#EnableCoordPointObject

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

Parameters:

  • ImageBase64:

    图片的 Base64 值。

  • ImageUrl:

    图片的 Url 地址。

  • EnableCoordPoint:

    单词四点坐标开关,开启可返回图片中单词的四点坐标。

  • EnableCandWord:

    候选字开关,开启可返回识别时多个可能的候选字(每个候选字对应其置信度)。

  • Preprocess:

    预处理开关,功能是检测图片倾斜的角度,将原本倾斜的图片矫正。该参数默认值为true。



2832
2833
2834
# File 'lib/v20181119/models.rb', line 2832

def EnableCoordPoint
  @EnableCoordPoint
end

#ImageBase64Object

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

Parameters:

  • ImageBase64:

    图片的 Base64 值。

  • ImageUrl:

    图片的 Url 地址。

  • EnableCoordPoint:

    单词四点坐标开关,开启可返回图片中单词的四点坐标。

  • EnableCandWord:

    候选字开关,开启可返回识别时多个可能的候选字(每个候选字对应其置信度)。

  • Preprocess:

    预处理开关,功能是检测图片倾斜的角度,将原本倾斜的图片矫正。该参数默认值为true。



2832
2833
2834
# File 'lib/v20181119/models.rb', line 2832

def ImageBase64
  @ImageBase64
end

#ImageUrlObject

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

Parameters:

  • ImageBase64:

    图片的 Base64 值。

  • ImageUrl:

    图片的 Url 地址。

  • EnableCoordPoint:

    单词四点坐标开关,开启可返回图片中单词的四点坐标。

  • EnableCandWord:

    候选字开关,开启可返回识别时多个可能的候选字(每个候选字对应其置信度)。

  • Preprocess:

    预处理开关,功能是检测图片倾斜的角度,将原本倾斜的图片矫正。该参数默认值为true。



2832
2833
2834
# File 'lib/v20181119/models.rb', line 2832

def ImageUrl
  @ImageUrl
end

#PreprocessObject

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

Parameters:

  • ImageBase64:

    图片的 Base64 值。

  • ImageUrl:

    图片的 Url 地址。

  • EnableCoordPoint:

    单词四点坐标开关,开启可返回图片中单词的四点坐标。

  • EnableCandWord:

    候选字开关,开启可返回识别时多个可能的候选字(每个候选字对应其置信度)。

  • Preprocess:

    预处理开关,功能是检测图片倾斜的角度,将原本倾斜的图片矫正。该参数默认值为true。



2832
2833
2834
# File 'lib/v20181119/models.rb', line 2832

def Preprocess
  @Preprocess
end

Instance Method Details

#deserialize(params) ⇒ Object



2842
2843
2844
2845
2846
2847
2848
# File 'lib/v20181119/models.rb', line 2842

def deserialize(params)
  @ImageBase64 = params['ImageBase64']
  @ImageUrl = params['ImageUrl']
  @EnableCoordPoint = params['EnableCoordPoint']
  @EnableCandWord = params['EnableCandWord']
  @Preprocess = params['Preprocess']
end