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.



5153
5154
5155
5156
5157
5158
# File 'lib/v20181119/models.rb', line 5153

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:

    头像框高度



5151
5152
5153
# File 'lib/v20181119/models.rb', line 5151

def Height
  @Height
end

#WidthObject

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

Parameters:

  • X:

    头像左上角横坐标

  • Y:

    头像左上角纵坐标

  • Width:

    头像框宽度

  • Height:

    头像框高度



5151
5152
5153
# File 'lib/v20181119/models.rb', line 5151

def Width
  @Width
end

#XObject

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

Parameters:

  • X:

    头像左上角横坐标

  • Y:

    头像左上角纵坐标

  • Width:

    头像框宽度

  • Height:

    头像框高度



5151
5152
5153
# File 'lib/v20181119/models.rb', line 5151

def X
  @X
end

#YObject

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

Parameters:

  • X:

    头像左上角横坐标

  • Y:

    头像左上角纵坐标

  • Width:

    头像框宽度

  • Height:

    头像框高度



5151
5152
5153
# File 'lib/v20181119/models.rb', line 5151

def Y
  @Y
end

Instance Method Details

#deserialize(params) ⇒ Object



5160
5161
5162
5163
5164
5165
# File 'lib/v20181119/models.rb', line 5160

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