Class: TencentCloud::Ocr::V20181119::Rect

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) ⇒ Rect

Returns a new instance of Rect.



9799
9800
9801
9802
9803
9804
# File 'lib/v20181119/models.rb', line 9799

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

Instance Attribute Details

#HeightObject

Parameters:

  • X:

    左上角x

  • Y:

    左上角y

  • Width:

    宽度

  • Height:

    高度



9797
9798
9799
# File 'lib/v20181119/models.rb', line 9797

def Height
  @Height
end

#WidthObject

Parameters:

  • X:

    左上角x

  • Y:

    左上角y

  • Width:

    宽度

  • Height:

    高度



9797
9798
9799
# File 'lib/v20181119/models.rb', line 9797

def Width
  @Width
end

#XObject

Parameters:

  • X:

    左上角x

  • Y:

    左上角y

  • Width:

    宽度

  • Height:

    高度



9797
9798
9799
# File 'lib/v20181119/models.rb', line 9797

def X
  @X
end

#YObject

Parameters:

  • X:

    左上角x

  • Y:

    左上角y

  • Width:

    宽度

  • Height:

    高度



9797
9798
9799
# File 'lib/v20181119/models.rb', line 9797

def Y
  @Y
end

Instance Method Details

#deserialize(params) ⇒ Object



9806
9807
9808
9809
9810
9811
# File 'lib/v20181119/models.rb', line 9806

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