Class: TencentCloud::Tiia::V20190529::Box

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190529/models.rb

Overview

图像主体区域。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rect = nil, score = nil, categoryid = nil) ⇒ Box

Returns a new instance of Box.



183
184
185
186
187
# File 'lib/v20190529/models.rb', line 183

def initialize(rect=nil, score=nil, categoryid=nil)
  @Rect = rect
  @Score = score
  @CategoryId = categoryid
end

Instance Attribute Details

#CategoryIdObject

Parameters:

  • Rect:

    图像主体区域。

  • Score:

    置信度。

  • CategoryId:

    主体区域类目ID



181
182
183
# File 'lib/v20190529/models.rb', line 181

def CategoryId
  @CategoryId
end

#RectObject

Parameters:

  • Rect:

    图像主体区域。

  • Score:

    置信度。

  • CategoryId:

    主体区域类目ID



181
182
183
# File 'lib/v20190529/models.rb', line 181

def Rect
  @Rect
end

#ScoreObject

Parameters:

  • Rect:

    图像主体区域。

  • Score:

    置信度。

  • CategoryId:

    主体区域类目ID



181
182
183
# File 'lib/v20190529/models.rb', line 181

def Score
  @Score
end

Instance Method Details

#deserialize(params) ⇒ Object



189
190
191
192
193
194
195
196
# File 'lib/v20190529/models.rb', line 189

def deserialize(params)
  unless params['Rect'].nil?
    @Rect = ImageRect.new
    @Rect.deserialize(params['Rect'])
  end
  @Score = params['Score']
  @CategoryId = params['CategoryId']
end