Class: TencentCloud::Iir::V20200417::RegionDetected
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iir::V20200417::RegionDetected
- Defined in:
- lib/v20200417/models.rb
Overview
检测到的图片中的商品位置和品类预测。 当图片中存在多个商品时,输出多组坐标,按照__显著性__排序(综合考虑面积、是否在中心、检测算法置信度)。 最多可以输出__3组__检测结果。
Instance Attribute Summary collapse
-
#Category ⇒ Object
包含:鞋、图书音像、箱包、美妆个护、服饰、家电数码、玩具乐器、食品饮料、珠宝、家居家装、药品、酒水、绿植园艺、其他商品、非商品等。.
-
#CategoryScore ⇒ Object
包含:鞋、图书音像、箱包、美妆个护、服饰、家电数码、玩具乐器、食品饮料、珠宝、家居家装、药品、酒水、绿植园艺、其他商品、非商品等。.
-
#Location ⇒ Object
包含:鞋、图书音像、箱包、美妆个护、服饰、家电数码、玩具乐器、食品饮料、珠宝、家居家装、药品、酒水、绿植园艺、其他商品、非商品等。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(category = nil, categoryscore = nil, location = nil) ⇒ RegionDetected
constructor
A new instance of RegionDetected.
Constructor Details
#initialize(category = nil, categoryscore = nil, location = nil) ⇒ RegionDetected
Returns a new instance of RegionDetected.
174 175 176 177 178 |
# File 'lib/v20200417/models.rb', line 174 def initialize(category=nil, categoryscore=nil, location=nil) @Category = category @CategoryScore = categoryscore @Location = location end |
Instance Attribute Details
#Category ⇒ Object
包含:鞋、图书音像、箱包、美妆个护、服饰、家电数码、玩具乐器、食品饮料、珠宝、家居家装、药品、酒水、绿植园艺、其他商品、非商品等。
172 173 174 |
# File 'lib/v20200417/models.rb', line 172 def Category @Category end |
#CategoryScore ⇒ Object
包含:鞋、图书音像、箱包、美妆个护、服饰、家电数码、玩具乐器、食品饮料、珠宝、家居家装、药品、酒水、绿植园艺、其他商品、非商品等。
172 173 174 |
# File 'lib/v20200417/models.rb', line 172 def CategoryScore @CategoryScore end |
#Location ⇒ Object
包含:鞋、图书音像、箱包、美妆个护、服饰、家电数码、玩具乐器、食品饮料、珠宝、家居家装、药品、酒水、绿植园艺、其他商品、非商品等。
172 173 174 |
# File 'lib/v20200417/models.rb', line 172 def Location @Location end |
Instance Method Details
#deserialize(params) ⇒ Object
180 181 182 183 184 185 186 187 |
# File 'lib/v20200417/models.rb', line 180 def deserialize(params) @Category = params['Category'] @CategoryScore = params['CategoryScore'] unless params['Location'].nil? @Location = Location.new @Location.deserialize(params['Location']) end end |