Class: TencentCloud::Tiia::V20190529::DetectLabelProRequest

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

Overview

DetectLabelPro请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(imageurl = nil, imagebase64 = nil) ⇒ DetectLabelProRequest

Returns a new instance of DetectLabelProRequest.



1011
1012
1013
1014
# File 'lib/v20190529/models.rb', line 1011

def initialize(imageurl=nil, imagebase64=nil)
  @ImageUrl = imageurl
  @ImageBase64 = imagebase64
end

Instance Attribute Details

#ImageBase64Object

图片限制:• 图片格式:PNG、JPG、JPEG、BMP。• 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。建议:• 图片像素:大于50*50像素,否则影响识别效果;• 长宽比:长边:短边<5;• 接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。与ImageUrl同时存在时优先使用ImageUrl字段。图片限制:• 图片格式:PNG、JPG、JPEG、BMP。• 图片大小:经Base64编码后不超过4M。**<font color=#1E90FF>注意:图片需要Base64编码,并且要去掉编码头部。</font>**

Parameters:

  • ImageUrl:

    图片 URL 地址。

  • ImageBase64:

    图片 Base64 编码数据。



1009
1010
1011
# File 'lib/v20190529/models.rb', line 1009

def ImageBase64
  @ImageBase64
end

#ImageUrlObject

图片限制:• 图片格式:PNG、JPG、JPEG、BMP。• 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。建议:• 图片像素:大于50*50像素,否则影响识别效果;• 长宽比:长边:短边<5;• 接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。与ImageUrl同时存在时优先使用ImageUrl字段。图片限制:• 图片格式:PNG、JPG、JPEG、BMP。• 图片大小:经Base64编码后不超过4M。**<font color=#1E90FF>注意:图片需要Base64编码,并且要去掉编码头部。</font>**

Parameters:

  • ImageUrl:

    图片 URL 地址。

  • ImageBase64:

    图片 Base64 编码数据。



1009
1010
1011
# File 'lib/v20190529/models.rb', line 1009

def ImageUrl
  @ImageUrl
end

Instance Method Details

#deserialize(params) ⇒ Object



1016
1017
1018
1019
# File 'lib/v20190529/models.rb', line 1016

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