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