Class: TencentCloud::Iir::V20200417::RecognizeProductResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iir::V20200417::RecognizeProductResponse
- Defined in:
- lib/v20200417/models.rb
Overview
RecognizeProduct返回参数结构体
Instance Attribute Summary collapse
-
#ProductInfo ⇒ Object
当图片中存在多个商品时,输出多组坐标,按照__显著性__排序(综合考虑面积、是否在中心、检测算法置信度)。 最多可以输出__3组__检测结果。 当图像中检测到多个物品时,会对显著性最高的进行识别。.
-
#RegionDetected ⇒ Object
当图片中存在多个商品时,输出多组坐标,按照__显著性__排序(综合考虑面积、是否在中心、检测算法置信度)。 最多可以输出__3组__检测结果。 当图像中检测到多个物品时,会对显著性最高的进行识别。.
-
#RequestId ⇒ Object
当图片中存在多个商品时,输出多组坐标,按照__显著性__排序(综合考虑面积、是否在中心、检测算法置信度)。 最多可以输出__3组__检测结果。 当图像中检测到多个物品时,会对显著性最高的进行识别。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(regiondetected = nil, productinfo = nil, requestid = nil) ⇒ RecognizeProductResponse
constructor
A new instance of RecognizeProductResponse.
Constructor Details
#initialize(regiondetected = nil, productinfo = nil, requestid = nil) ⇒ RecognizeProductResponse
Returns a new instance of RecognizeProductResponse.
137 138 139 140 141 |
# File 'lib/v20200417/models.rb', line 137 def initialize(regiondetected=nil, productinfo=nil, requestid=nil) @RegionDetected = regiondetected @ProductInfo = productinfo @RequestId = requestid end |
Instance Attribute Details
#ProductInfo ⇒ Object
当图片中存在多个商品时,输出多组坐标,按照__显著性__排序(综合考虑面积、是否在中心、检测算法置信度)。最多可以输出__3组__检测结果。当图像中检测到多个物品时,会对显著性最高的进行识别。
135 136 137 |
# File 'lib/v20200417/models.rb', line 135 def ProductInfo @ProductInfo end |
#RegionDetected ⇒ Object
当图片中存在多个商品时,输出多组坐标,按照__显著性__排序(综合考虑面积、是否在中心、检测算法置信度)。最多可以输出__3组__检测结果。当图像中检测到多个物品时,会对显著性最高的进行识别。
135 136 137 |
# File 'lib/v20200417/models.rb', line 135 def RegionDetected @RegionDetected end |
#RequestId ⇒ Object
当图片中存在多个商品时,输出多组坐标,按照__显著性__排序(综合考虑面积、是否在中心、检测算法置信度)。最多可以输出__3组__检测结果。当图像中检测到多个物品时,会对显著性最高的进行识别。
135 136 137 |
# File 'lib/v20200417/models.rb', line 135 def RequestId @RequestId end |
Instance Method Details
#deserialize(params) ⇒ Object
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 |
# File 'lib/v20200417/models.rb', line 143 def deserialize(params) unless params['RegionDetected'].nil? @RegionDetected = [] params['RegionDetected'].each do |i| regiondetected_tmp = RegionDetected.new regiondetected_tmp.deserialize(i) @RegionDetected << regiondetected_tmp end end unless params['ProductInfo'].nil? @ProductInfo = ProductInfo.new @ProductInfo.deserialize(params['ProductInfo']) end @RequestId = params['RequestId'] end |