Class: TencentCloud::Tiia::V20190529::DetectDisgustRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Tiia::V20190529::DetectDisgustRequest
- Defined in:
- lib/v20190529/models.rb
Overview
DetectDisgust请求参数结构体
Instance Attribute Summary collapse
-
#ImageBase64 ⇒ Object
图片限制: • 图片格式:PNG、JPG、JPEG。 • 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。 建议: • 图片像素:大于50*50像素,否则影响识别效果; • 长宽比:长边:短边<5; 接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。 **注意:图片需要base64编码,并且要去掉编码头部。**.
-
#ImageUrl ⇒ Object
图片限制: • 图片格式:PNG、JPG、JPEG。 • 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。 建议: • 图片像素:大于50*50像素,否则影响识别效果; • 长宽比:长边:短边<5; 接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。 **注意:图片需要base64编码,并且要去掉编码头部。**.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(imageurl = nil, imagebase64 = nil) ⇒ DetectDisgustRequest
constructor
A new instance of DetectDisgustRequest.
Constructor Details
#initialize(imageurl = nil, imagebase64 = nil) ⇒ DetectDisgustRequest
Returns a new instance of DetectDisgustRequest.
865 866 867 868 |
# File 'lib/v20190529/models.rb', line 865 def initialize(imageurl=nil, imagebase64=nil) @ImageUrl = imageurl @ImageBase64 = imagebase64 end |
Instance Attribute Details
#ImageBase64 ⇒ Object
图片限制:• 图片格式:PNG、JPG、JPEG。• 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。建议:• 图片像素:大于50*50像素,否则影响识别效果;• 长宽比:长边:短边<5;接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。**注意:图片需要base64编码,并且要去掉编码头部。**
863 864 865 |
# File 'lib/v20190529/models.rb', line 863 def ImageBase64 @ImageBase64 end |
#ImageUrl ⇒ Object
图片限制:• 图片格式:PNG、JPG、JPEG。• 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。建议:• 图片像素:大于50*50像素,否则影响识别效果;• 长宽比:长边:短边<5;接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。**注意:图片需要base64编码,并且要去掉编码头部。**
863 864 865 |
# File 'lib/v20190529/models.rb', line 863 def ImageUrl @ImageUrl end |
Instance Method Details
#deserialize(params) ⇒ Object
870 871 872 873 |
# File 'lib/v20190529/models.rb', line 870 def deserialize(params) @ImageUrl = params['ImageUrl'] @ImageBase64 = params['ImageBase64'] end |