Class: TencentCloud::Ims::V20200713::Location

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

Overview

坐标

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Location.



408
409
410
411
412
413
414
# File 'lib/v20200713/models.rb', line 408

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

Instance Attribute Details

#HeightObject

Parameters:

  • X:

    左上角横坐标

  • Y:

    左上角纵坐标

  • Width:

    宽度

  • Height:

    高度

  • Rotate:

    检测框的旋转角度



406
407
408
# File 'lib/v20200713/models.rb', line 406

def Height
  @Height
end

#RotateObject

Parameters:

  • X:

    左上角横坐标

  • Y:

    左上角纵坐标

  • Width:

    宽度

  • Height:

    高度

  • Rotate:

    检测框的旋转角度



406
407
408
# File 'lib/v20200713/models.rb', line 406

def Rotate
  @Rotate
end

#WidthObject

Parameters:

  • X:

    左上角横坐标

  • Y:

    左上角纵坐标

  • Width:

    宽度

  • Height:

    高度

  • Rotate:

    检测框的旋转角度



406
407
408
# File 'lib/v20200713/models.rb', line 406

def Width
  @Width
end

#XObject

Parameters:

  • X:

    左上角横坐标

  • Y:

    左上角纵坐标

  • Width:

    宽度

  • Height:

    高度

  • Rotate:

    检测框的旋转角度



406
407
408
# File 'lib/v20200713/models.rb', line 406

def X
  @X
end

#YObject

Parameters:

  • X:

    左上角横坐标

  • Y:

    左上角纵坐标

  • Width:

    宽度

  • Height:

    高度

  • Rotate:

    检测框的旋转角度



406
407
408
# File 'lib/v20200713/models.rb', line 406

def Y
  @Y
end

Instance Method Details

#deserialize(params) ⇒ Object



416
417
418
419
420
421
422
# File 'lib/v20200713/models.rb', line 416

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