Class: TencentCloud::Tiia::V20190529::ObjectInfo

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

Overview

图像的主体信息。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(box = nil, categoryid = nil, colors = nil, attributes = nil, allbox = nil) ⇒ ObjectInfo

Returns a new instance of ObjectInfo.



1580
1581
1582
1583
1584
1585
1586
# File 'lib/v20190529/models.rb', line 1580

def initialize(box=nil, categoryid=nil, colors=nil, attributes=nil, allbox=nil)
  @Box = box
  @CategoryId = categoryid
  @Colors = colors
  @Attributes = attributes
  @AllBox = allbox
end

Instance Attribute Details

#AllBoxObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Box:

    图像主体区域。

  • CategoryId:

    主体类别ID。

  • Colors:

    整张图颜色信息。

  • Attributes:

    属性信息。

  • AllBox:

    图像的所有主体区域,置信度,以及主体区域类别ID。



1578
1579
1580
# File 'lib/v20190529/models.rb', line 1578

def AllBox
  @AllBox
end

#AttributesObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Box:

    图像主体区域。

  • CategoryId:

    主体类别ID。

  • Colors:

    整张图颜色信息。

  • Attributes:

    属性信息。

  • AllBox:

    图像的所有主体区域,置信度,以及主体区域类别ID。



1578
1579
1580
# File 'lib/v20190529/models.rb', line 1578

def Attributes
  @Attributes
end

#BoxObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Box:

    图像主体区域。

  • CategoryId:

    主体类别ID。

  • Colors:

    整张图颜色信息。

  • Attributes:

    属性信息。

  • AllBox:

    图像的所有主体区域,置信度,以及主体区域类别ID。



1578
1579
1580
# File 'lib/v20190529/models.rb', line 1578

def Box
  @Box
end

#CategoryIdObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Box:

    图像主体区域。

  • CategoryId:

    主体类别ID。

  • Colors:

    整张图颜色信息。

  • Attributes:

    属性信息。

  • AllBox:

    图像的所有主体区域,置信度,以及主体区域类别ID。



1578
1579
1580
# File 'lib/v20190529/models.rb', line 1578

def CategoryId
  @CategoryId
end

#ColorsObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Box:

    图像主体区域。

  • CategoryId:

    主体类别ID。

  • Colors:

    整张图颜色信息。

  • Attributes:

    属性信息。

  • AllBox:

    图像的所有主体区域,置信度,以及主体区域类别ID。



1578
1579
1580
# File 'lib/v20190529/models.rb', line 1578

def Colors
  @Colors
end

Instance Method Details

#deserialize(params) ⇒ Object



1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
# File 'lib/v20190529/models.rb', line 1588

def deserialize(params)
  unless params['Box'].nil?
    @Box = Box.new
    @Box.deserialize(params['Box'])
  end
  @CategoryId = params['CategoryId']
  unless params['Colors'].nil?
    @Colors = []
    params['Colors'].each do |i|
      colorinfo_tmp = ColorInfo.new
      colorinfo_tmp.deserialize(i)
      @Colors << colorinfo_tmp
    end
  end
  unless params['Attributes'].nil?
    @Attributes = []
    params['Attributes'].each do |i|
      attribute_tmp = Attribute.new
      attribute_tmp.deserialize(i)
      @Attributes << attribute_tmp
    end
  end
  unless params['AllBox'].nil?
    @AllBox = []
    params['AllBox'].each do |i|
      box_tmp = Box.new
      box_tmp.deserialize(i)
      @AllBox << box_tmp
    end
  end
end