Class: TencentCloud::Ocr::V20181119::ItemCoord

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

Overview

文本行在旋转纠正之后的图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of ItemCoord.



5667
5668
5669
5670
5671
5672
# File 'lib/v20181119/models.rb', line 5667

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:

    宽width

  • Height:

    高height



5665
5666
5667
# File 'lib/v20181119/models.rb', line 5665

def Height
  @Height
end

#WidthObject

Parameters:

  • X:

    左上角x

  • Y:

    左上角y

  • Width:

    宽width

  • Height:

    高height



5665
5666
5667
# File 'lib/v20181119/models.rb', line 5665

def Width
  @Width
end

#XObject

Parameters:

  • X:

    左上角x

  • Y:

    左上角y

  • Width:

    宽width

  • Height:

    高height



5665
5666
5667
# File 'lib/v20181119/models.rb', line 5665

def X
  @X
end

#YObject

Parameters:

  • X:

    左上角x

  • Y:

    左上角y

  • Width:

    宽width

  • Height:

    高height



5665
5666
5667
# File 'lib/v20181119/models.rb', line 5665

def Y
  @Y
end

Instance Method Details

#deserialize(params) ⇒ Object



5674
5675
5676
5677
5678
5679
# File 'lib/v20181119/models.rb', line 5674

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