Class: TencentCloud::Ocr::V20181119::HmtResidentPermitOCRRequest

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

Overview

HmtResidentPermitOCR请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(imagebase64 = nil, imageurl = nil, cardside = nil, cropportrait = nil) ⇒ HmtResidentPermitOCRRequest

Returns a new instance of HmtResidentPermitOCRRequest.



4879
4880
4881
4882
4883
4884
# File 'lib/v20181119/models.rb', line 4879

def initialize(imagebase64=nil, imageurl=nil, cardside=nil, cropportrait=nil)
  @ImageBase64 = imagebase64
  @ImageUrl = imageurl
  @CardSide = cardside
  @CropPortrait = cropportrait
end

Instance Attribute Details

#CardSideObject

BACK:无照片的一面(国徽面), 该参数如果不填或填错,将为您自动判断正反面。

Parameters:

  • ImageBase64:

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

  • ImageUrl:

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

  • CardSide:

    FRONT:有照片的一面(人像面),

  • CropPortrait:

    是否返回头像和位置坐标



4877
4878
4879
# File 'lib/v20181119/models.rb', line 4877

def CardSide
  @CardSide
end

#CropPortraitObject

BACK:无照片的一面(国徽面), 该参数如果不填或填错,将为您自动判断正反面。

Parameters:

  • ImageBase64:

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

  • ImageUrl:

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

  • CardSide:

    FRONT:有照片的一面(人像面),

  • CropPortrait:

    是否返回头像和位置坐标



4877
4878
4879
# File 'lib/v20181119/models.rb', line 4877

def CropPortrait
  @CropPortrait
end

#ImageBase64Object

BACK:无照片的一面(国徽面), 该参数如果不填或填错,将为您自动判断正反面。

Parameters:

  • ImageBase64:

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

  • ImageUrl:

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

  • CardSide:

    FRONT:有照片的一面(人像面),

  • CropPortrait:

    是否返回头像和位置坐标



4877
4878
4879
# File 'lib/v20181119/models.rb', line 4877

def ImageBase64
  @ImageBase64
end

#ImageUrlObject

BACK:无照片的一面(国徽面), 该参数如果不填或填错,将为您自动判断正反面。

Parameters:

  • ImageBase64:

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

  • ImageUrl:

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

  • CardSide:

    FRONT:有照片的一面(人像面),

  • CropPortrait:

    是否返回头像和位置坐标



4877
4878
4879
# File 'lib/v20181119/models.rb', line 4877

def ImageUrl
  @ImageUrl
end

Instance Method Details

#deserialize(params) ⇒ Object



4886
4887
4888
4889
4890
4891
# File 'lib/v20181119/models.rb', line 4886

def deserialize(params)
  @ImageBase64 = params['ImageBase64']
  @ImageUrl = params['ImageUrl']
  @CardSide = params['CardSide']
  @CropPortrait = params['CropPortrait']
end