Class: TencentCloud::Iss::V20230517::Location

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

Overview

AI识别结果在画面中坐标

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Location.



6083
6084
6085
6086
6087
6088
# File 'lib/v20230517/models.rb', line 6083

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:

    方框高



6081
6082
6083
# File 'lib/v20230517/models.rb', line 6081

def Height
  @Height
end

#WidthObject

Parameters:

  • X:

    左上角 X 坐标轴

  • Y:

    左上角 Y 坐标轴

  • Width:

    方框宽

  • Height:

    方框高



6081
6082
6083
# File 'lib/v20230517/models.rb', line 6081

def Width
  @Width
end

#XObject

Parameters:

  • X:

    左上角 X 坐标轴

  • Y:

    左上角 Y 坐标轴

  • Width:

    方框宽

  • Height:

    方框高



6081
6082
6083
# File 'lib/v20230517/models.rb', line 6081

def X
  @X
end

#YObject

Parameters:

  • X:

    左上角 X 坐标轴

  • Y:

    左上角 Y 坐标轴

  • Width:

    方框宽

  • Height:

    方框高



6081
6082
6083
# File 'lib/v20230517/models.rb', line 6081

def Y
  @Y
end

Instance Method Details

#deserialize(params) ⇒ Object



6090
6091
6092
6093
6094
6095
# File 'lib/v20230517/models.rb', line 6090

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