Class: TencentCloud::Mps::V20190612::ImageAreaBoxInfo

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

Overview

图片框选区域信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, areacoordset = nil, boundingbox = nil) ⇒ ImageAreaBoxInfo

Returns a new instance of ImageAreaBoxInfo.



15363
15364
15365
15366
15367
# File 'lib/v20190612/models.rb', line 15363

def initialize(type=nil, areacoordset=nil, boundingbox=nil)
  @Type = type
  @AreaCoordSet = areacoordset
  @BoundingBox = boundingbox
end

Instance Attribute Details

#AreaCoordSetObject

<li>logo:图标;</li> <li>text:文字;</li> 默认值:logo。注意:此字段可能返回 null,表示取不到有效值。示例值:[101, 85, 111, 95] 注意:此字段可能返回 null,表示取不到有效值。

  • 0.1, 0.1, 0.3, 0.3

    : 表示比例 (数值小于1)

  • 50, 50, 350, 280

    : 表示像素 (数值大于等于1)

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

Parameters:

  • Type:

    图片框选区域类型,可选值:

  • AreaCoordSet:

    图片框选区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。

  • BoundingBox:

    图片框选区域坐标,[x1, y1, x2, y2],即左上角坐标、右下角坐标, 当AreaCoordSet未指定时生效。



15361
15362
15363
# File 'lib/v20190612/models.rb', line 15361

def AreaCoordSet
  @AreaCoordSet
end

#BoundingBoxObject

<li>logo:图标;</li> <li>text:文字;</li> 默认值:logo。注意:此字段可能返回 null,表示取不到有效值。示例值:[101, 85, 111, 95] 注意:此字段可能返回 null,表示取不到有效值。

  • 0.1, 0.1, 0.3, 0.3

    : 表示比例 (数值小于1)

  • 50, 50, 350, 280

    : 表示像素 (数值大于等于1)

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

Parameters:

  • Type:

    图片框选区域类型,可选值:

  • AreaCoordSet:

    图片框选区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。

  • BoundingBox:

    图片框选区域坐标,[x1, y1, x2, y2],即左上角坐标、右下角坐标, 当AreaCoordSet未指定时生效。



15361
15362
15363
# File 'lib/v20190612/models.rb', line 15361

def BoundingBox
  @BoundingBox
end

#TypeObject

<li>logo:图标;</li> <li>text:文字;</li> 默认值:logo。注意:此字段可能返回 null,表示取不到有效值。示例值:[101, 85, 111, 95] 注意:此字段可能返回 null,表示取不到有效值。

  • 0.1, 0.1, 0.3, 0.3

    : 表示比例 (数值小于1)

  • 50, 50, 350, 280

    : 表示像素 (数值大于等于1)

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

Parameters:

  • Type:

    图片框选区域类型,可选值:

  • AreaCoordSet:

    图片框选区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。

  • BoundingBox:

    图片框选区域坐标,[x1, y1, x2, y2],即左上角坐标、右下角坐标, 当AreaCoordSet未指定时生效。



15361
15362
15363
# File 'lib/v20190612/models.rb', line 15361

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



15369
15370
15371
15372
15373
# File 'lib/v20190612/models.rb', line 15369

def deserialize(params)
  @Type = params['Type']
  @AreaCoordSet = params['AreaCoordSet']
  @BoundingBox = params['BoundingBox']
end