Class: TencentCloud::Iir::V20200417::RecognizeProductRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iir::V20200417::RecognizeProductRequest
- Defined in:
- lib/v20200417/models.rb
Overview
RecognizeProduct请求参数结构体
Instance Attribute Summary collapse
-
#ImageBase64 ⇒ Object
建议先对图片进行压缩,以便提升处理速度。 与ImageUrl同时存在时优先使用ImageUrl字段。 注意:图片需要base64编码,并且要去掉编码头部。.
-
#ImageUrl ⇒ Object
建议先对图片进行压缩,以便提升处理速度。 与ImageUrl同时存在时优先使用ImageUrl字段。 注意:图片需要base64编码,并且要去掉编码头部。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(imageurl = nil, imagebase64 = nil) ⇒ RecognizeProductRequest
constructor
A new instance of RecognizeProductRequest.
Constructor Details
#initialize(imageurl = nil, imagebase64 = nil) ⇒ RecognizeProductRequest
Returns a new instance of RecognizeProductRequest.
112 113 114 115 |
# File 'lib/v20200417/models.rb', line 112 def initialize(imageurl=nil, imagebase64=nil) @ImageUrl = imageurl @ImageBase64 = imagebase64 end |
Instance Attribute Details
#ImageBase64 ⇒ Object
建议先对图片进行压缩,以便提升处理速度。 与ImageUrl同时存在时优先使用ImageUrl字段。 注意:图片需要base64编码,并且要去掉编码头部。
110 111 112 |
# File 'lib/v20200417/models.rb', line 110 def ImageBase64 @ImageBase64 end |
#ImageUrl ⇒ Object
建议先对图片进行压缩,以便提升处理速度。 与ImageUrl同时存在时优先使用ImageUrl字段。 注意:图片需要base64编码,并且要去掉编码头部。
110 111 112 |
# File 'lib/v20200417/models.rb', line 110 def ImageUrl @ImageUrl end |
Instance Method Details
#deserialize(params) ⇒ Object
117 118 119 120 |
# File 'lib/v20200417/models.rb', line 117 def deserialize(params) @ImageUrl = params['ImageUrl'] @ImageBase64 = params['ImageBase64'] end |