Class: TencentCloud::Ocr::V20181119::ImageCoordinates

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

Overview

头像位置坐标

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(x = nil, y = nil, width = nil, height = nil) ⇒ ImageCoordinates

Returns a new instance of ImageCoordinates.



5362
5363
5364
5365
5366
5367
# File 'lib/v20181119/models.rb', line 5362

def initialize(x=nil, y=nil, width=nil, height=nil)
  @X = x
  @Y = y
  @Width = width
  @Height = height
end

Instance Attribute Details

#HeightObject

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

Parameters:

  • X:

    头像左上角横坐标

  • Y:

    头像左上角纵坐标

  • Width:

    头像框宽度

  • Height:

    头像框高度



5360
5361
5362
# File 'lib/v20181119/models.rb', line 5360

def Height
  @Height
end

#WidthObject

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

Parameters:

  • X:

    头像左上角横坐标

  • Y:

    头像左上角纵坐标

  • Width:

    头像框宽度

  • Height:

    头像框高度



5360
5361
5362
# File 'lib/v20181119/models.rb', line 5360

def Width
  @Width
end

#XObject

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

Parameters:

  • X:

    头像左上角横坐标

  • Y:

    头像左上角纵坐标

  • Width:

    头像框宽度

  • Height:

    头像框高度



5360
5361
5362
# File 'lib/v20181119/models.rb', line 5360

def X
  @X
end

#YObject

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

Parameters:

  • X:

    头像左上角横坐标

  • Y:

    头像左上角纵坐标

  • Width:

    头像框宽度

  • Height:

    头像框高度



5360
5361
5362
# File 'lib/v20181119/models.rb', line 5360

def Y
  @Y
end

Instance Method Details

#deserialize(params) ⇒ Object



5369
5370
5371
5372
5373
5374
# File 'lib/v20181119/models.rb', line 5369

def deserialize(params)
  @X = params['X']
  @Y = params['Y']
  @Width = params['Width']
  @Height = params['Height']
end