Class: TencentCloud::Ims::V20201229::ObjectDetail
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ims::V20201229::ObjectDetail
- Defined in:
- lib/v20201229/models.rb
Overview
实体检测结果明细,当检测场景为实体、广告台标、二维码时表示模型检测目标框的标签名称、标签值、标签分数以及检测框的位置信息。
Instance Attribute Summary collapse
- #Id ⇒ Object
- #Location ⇒ Object
- #Name ⇒ Object
- #ObjectId ⇒ Object
- #Score ⇒ Object
- #SubLabel ⇒ Object
- #Value ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(id = nil, name = nil, value = nil, score = nil, location = nil, sublabel = nil, objectid = nil) ⇒ ObjectDetail
constructor
A new instance of ObjectDetail.
Constructor Details
#initialize(id = nil, name = nil, value = nil, score = nil, location = nil, sublabel = nil, objectid = nil) ⇒ ObjectDetail
Returns a new instance of ObjectDetail.
503 504 505 506 507 508 509 510 511 |
# File 'lib/v20201229/models.rb', line 503 def initialize(id=nil, name=nil, value=nil, score=nil, location=nil, sublabel=nil, objectid=nil) @Id = id @Name = name @Value = value @Score = score @Location = location @SubLabel = sublabel @ObjectId = objectid end |
Instance Attribute Details
#Id ⇒ Object
501 502 503 |
# File 'lib/v20201229/models.rb', line 501 def Id @Id end |
#Location ⇒ Object
501 502 503 |
# File 'lib/v20201229/models.rb', line 501 def Location @Location end |
#Name ⇒ Object
501 502 503 |
# File 'lib/v20201229/models.rb', line 501 def Name @Name end |
#ObjectId ⇒ Object
501 502 503 |
# File 'lib/v20201229/models.rb', line 501 def ObjectId @ObjectId end |
#Score ⇒ Object
501 502 503 |
# File 'lib/v20201229/models.rb', line 501 def Score @Score end |
#SubLabel ⇒ Object
501 502 503 |
# File 'lib/v20201229/models.rb', line 501 def SubLabel @SubLabel end |
#Value ⇒ Object
501 502 503 |
# File 'lib/v20201229/models.rb', line 501 def Value @Value end |
Instance Method Details
#deserialize(params) ⇒ Object
513 514 515 516 517 518 519 520 521 522 523 524 |
# File 'lib/v20201229/models.rb', line 513 def deserialize(params) @Id = params['Id'] @Name = params['Name'] @Value = params['Value'] @Score = params['Score'] unless params['Location'].nil? @Location = Location.new @Location.deserialize(params['Location']) end @SubLabel = params['SubLabel'] @ObjectId = params['ObjectId'] end |