Class: TencentCloud::Ocr::V20181119::HKIDCardOCRRequest

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

Overview

HKIDCardOCR请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(returnheadimage = nil, detectfake = nil, imagebase64 = nil, imageurl = nil) ⇒ HKIDCardOCRRequest

Returns a new instance of HKIDCardOCRRequest.



4462
4463
4464
4465
4466
4467
# File 'lib/v20181119/models.rb', line 4462

def initialize(returnheadimage=nil, detectfake=nil, imagebase64=nil, imageurl=nil)
  @ReturnHeadImage = returnheadimage
  @DetectFake = detectfake
  @ImageBase64 = imagebase64
  @ImageUrl = imageurl
end

Instance Attribute Details

#DetectFakeObject

Parameters:

  • ReturnHeadImage:

    是否返回人像照片。

  • DetectFake:

    是否鉴伪。

  • ImageBase64:

    图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。

  • ImageUrl:

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



4457
4458
4459
# File 'lib/v20181119/models.rb', line 4457

def DetectFake
  @DetectFake
end

#ImageBase64Object

Parameters:

  • ReturnHeadImage:

    是否返回人像照片。

  • DetectFake:

    是否鉴伪。

  • ImageBase64:

    图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。

  • ImageUrl:

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



4457
4458
4459
# File 'lib/v20181119/models.rb', line 4457

def ImageBase64
  @ImageBase64
end

#ImageUrlObject

Parameters:

  • ReturnHeadImage:

    是否返回人像照片。

  • DetectFake:

    是否鉴伪。

  • ImageBase64:

    图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。

  • ImageUrl:

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



4457
4458
4459
# File 'lib/v20181119/models.rb', line 4457

def ImageUrl
  @ImageUrl
end

#ReturnHeadImageObject

Parameters:

  • ReturnHeadImage:

    是否返回人像照片。

  • DetectFake:

    是否鉴伪。

  • ImageBase64:

    图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。

  • ImageUrl:

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



4457
4458
4459
# File 'lib/v20181119/models.rb', line 4457

def ReturnHeadImage
  @ReturnHeadImage
end

Instance Method Details

#deserialize(params) ⇒ Object



4469
4470
4471
4472
4473
4474
# File 'lib/v20181119/models.rb', line 4469

def deserialize(params)
  @ReturnHeadImage = params['ReturnHeadImage']
  @DetectFake = params['DetectFake']
  @ImageBase64 = params['ImageBase64']
  @ImageUrl = params['ImageUrl']
end