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

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

Overview

图片框选区域信息

Instance Attribute Summary collapse

  • #BoundingBox ⇒ Object
  • logo:图标;
  • text:文字;
  • 默认值:logo。 注意:此字段可能返回 null,表示取不到有效值。 示例值:[101, 85, 111, 95] 注意:此字段可能返回 null,表示取不到有效值。 - [0.1, 0.1, 0.3, 0.3] : 表示比例 (数值小于1) - [50, 50, 350, 280] : 表示像素 (数值大于等于1) 注意:此字段可能返回 null,表示取不到有效值。.
  • #BoundingBoxUnitType ⇒ Object
  • logo:图标;
  • text:文字;
  • 默认值:logo。 注意:此字段可能返回 null,表示取不到有效值。 示例值:[101, 85, 111, 95] 注意:此字段可能返回 null,表示取不到有效值。 - [0.1, 0.1, 0.3, 0.3] : 表示比例 (数值小于1) - [50, 50, 350, 280] : 表示像素 (数值大于等于1) 注意:此字段可能返回 null,表示取不到有效值。.
  • #Type ⇒ Object
  • logo:图标;
  • text:文字;
  • 默认值:logo。 注意:此字段可能返回 null,表示取不到有效值。 示例值:[101, 85, 111, 95] 注意:此字段可能返回 null,表示取不到有效值。 - [0.1, 0.1, 0.3, 0.3] : 表示比例 (数值小于1) - [50, 50, 350, 280] : 表示像素 (数值大于等于1) 注意:此字段可能返回 null,表示取不到有效值。.

    Instance Method Summary collapse

    Constructor Details

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

    Returns a new instance of ImageAreaBoxInfo.

    
    
    17646
    17647
    17648
    17649
    17650
    17651
    # File 'lib/v20190612/models.rb', line 17646
    
    def initialize(type=nil, areacoordset=nil, boundingbox=nil, boundingboxunittype=nil)
      @Type = type
      @AreaCoordSet = areacoordset
      @BoundingBox = boundingbox
      @BoundingBoxUnitType = boundingboxunittype
    end

    Instance Attribute Details

    #AreaCoordSetObject

  • logo:图标;
  • text:文字;
  • 默认值:logo。 注意:此字段可能返回 null,表示取不到有效值。 示例值:[101, 85, 111, 95] 注意:此字段可能返回 null,表示取不到有效值。 - [0.1, 0.1, 0.3, 0.3] : 表示比例 (数值小于1) - [50, 50, 350, 280] : 表示像素 (数值大于等于1) 注意:此字段可能返回 null,表示取不到有效值。

    Parameters:

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

    • 图片框选区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。注意:该字段最大值为4096。

    • 图片框选区域坐标,[x1, y1, x2, y2],即左上角坐标、右下角坐标, 当AreaCoordSet未指定时生效。当表示像素时,该字段最大值为4096。

    • BoundingBox字段单位。设置为0时,按照该字段规则自动选择单位;设置为1时,单位为比例;设置为2时,单位为像素。

    
    
    17644
    17645
    17646
    # File 'lib/v20190612/models.rb', line 17644
    
    def AreaCoordSet
      @AreaCoordSet
    end

    #BoundingBoxObject

  • logo:图标;
  • text:文字;
  • 默认值:logo。 注意:此字段可能返回 null,表示取不到有效值。 示例值:[101, 85, 111, 95] 注意:此字段可能返回 null,表示取不到有效值。 - [0.1, 0.1, 0.3, 0.3] : 表示比例 (数值小于1) - [50, 50, 350, 280] : 表示像素 (数值大于等于1) 注意:此字段可能返回 null,表示取不到有效值。

    Parameters:

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

    • 图片框选区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。注意:该字段最大值为4096。

    • 图片框选区域坐标,[x1, y1, x2, y2],即左上角坐标、右下角坐标, 当AreaCoordSet未指定时生效。当表示像素时,该字段最大值为4096。

    • BoundingBox字段单位。设置为0时,按照该字段规则自动选择单位;设置为1时,单位为比例;设置为2时,单位为像素。

    
    
    17644
    17645
    17646
    # File 'lib/v20190612/models.rb', line 17644
    
    def BoundingBox
      @BoundingBox
    end

    #BoundingBoxUnitTypeObject

  • logo:图标;
  • text:文字;
  • 默认值:logo。 注意:此字段可能返回 null,表示取不到有效值。 示例值:[101, 85, 111, 95] 注意:此字段可能返回 null,表示取不到有效值。 - [0.1, 0.1, 0.3, 0.3] : 表示比例 (数值小于1) - [50, 50, 350, 280] : 表示像素 (数值大于等于1) 注意:此字段可能返回 null,表示取不到有效值。

    Parameters:

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

    • 图片框选区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。注意:该字段最大值为4096。

    • 图片框选区域坐标,[x1, y1, x2, y2],即左上角坐标、右下角坐标, 当AreaCoordSet未指定时生效。当表示像素时,该字段最大值为4096。

    • BoundingBox字段单位。设置为0时,按照该字段规则自动选择单位;设置为1时,单位为比例;设置为2时,单位为像素。

    
    
    17644
    17645
    17646
    # File 'lib/v20190612/models.rb', line 17644
    
    def BoundingBoxUnitType
      @BoundingBoxUnitType
    end

    #TypeObject

  • logo:图标;
  • text:文字;
  • 默认值:logo。 注意:此字段可能返回 null,表示取不到有效值。 示例值:[101, 85, 111, 95] 注意:此字段可能返回 null,表示取不到有效值。 - [0.1, 0.1, 0.3, 0.3] : 表示比例 (数值小于1) - [50, 50, 350, 280] : 表示像素 (数值大于等于1) 注意:此字段可能返回 null,表示取不到有效值。

    Parameters:

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

    • 图片框选区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。注意:该字段最大值为4096。

    • 图片框选区域坐标,[x1, y1, x2, y2],即左上角坐标、右下角坐标, 当AreaCoordSet未指定时生效。当表示像素时,该字段最大值为4096。

    • BoundingBox字段单位。设置为0时,按照该字段规则自动选择单位;设置为1时,单位为比例;设置为2时,单位为像素。

    
    
    17644
    17645
    17646
    # File 'lib/v20190612/models.rb', line 17644
    
    def Type
      @Type
    end

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    17653
    17654
    17655
    17656
    17657
    17658
    # File 'lib/v20190612/models.rb', line 17653
    
    def deserialize(params)
      @Type = params['Type']
      @AreaCoordSet = params['AreaCoordSet']
      @BoundingBox = params['BoundingBox']
      @BoundingBoxUnitType = params['BoundingBoxUnitType']
    end