Class: TencentCloud::Ocr::V20181119::QrcodePositionObj

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

Overview

二维码/条形码坐标信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(lefttop = nil, righttop = nil, rightbottom = nil, leftbottom = nil) ⇒ QrcodePositionObj

Returns a new instance of QrcodePositionObj.



7217
7218
7219
7220
7221
7222
# File 'lib/v20181119/models.rb', line 7217

def initialize(lefttop=nil, righttop=nil, rightbottom=nil, leftbottom=nil)
  @LeftTop = lefttop
  @RightTop = righttop
  @RightBottom = rightbottom
  @LeftBottom = leftbottom
end

Instance Attribute Details

#LeftBottomObject

Parameters:

  • LeftTop:

    左上顶点坐标(如果是条形码,X和Y都为-1)

  • RightTop:

    右上顶点坐标(如果是条形码,X和Y都为-1)

  • RightBottom:

    右下顶点坐标(如果是条形码,X和Y都为-1)

  • LeftBottom:

    左下顶点坐标(如果是条形码,X和Y都为-1)



7215
7216
7217
# File 'lib/v20181119/models.rb', line 7215

def LeftBottom
  @LeftBottom
end

#LeftTopObject

Parameters:

  • LeftTop:

    左上顶点坐标(如果是条形码,X和Y都为-1)

  • RightTop:

    右上顶点坐标(如果是条形码,X和Y都为-1)

  • RightBottom:

    右下顶点坐标(如果是条形码,X和Y都为-1)

  • LeftBottom:

    左下顶点坐标(如果是条形码,X和Y都为-1)



7215
7216
7217
# File 'lib/v20181119/models.rb', line 7215

def LeftTop
  @LeftTop
end

#RightBottomObject

Parameters:

  • LeftTop:

    左上顶点坐标(如果是条形码,X和Y都为-1)

  • RightTop:

    右上顶点坐标(如果是条形码,X和Y都为-1)

  • RightBottom:

    右下顶点坐标(如果是条形码,X和Y都为-1)

  • LeftBottom:

    左下顶点坐标(如果是条形码,X和Y都为-1)



7215
7216
7217
# File 'lib/v20181119/models.rb', line 7215

def RightBottom
  @RightBottom
end

#RightTopObject

Parameters:

  • LeftTop:

    左上顶点坐标(如果是条形码,X和Y都为-1)

  • RightTop:

    右上顶点坐标(如果是条形码,X和Y都为-1)

  • RightBottom:

    右下顶点坐标(如果是条形码,X和Y都为-1)

  • LeftBottom:

    左下顶点坐标(如果是条形码,X和Y都为-1)



7215
7216
7217
# File 'lib/v20181119/models.rb', line 7215

def RightTop
  @RightTop
end

Instance Method Details

#deserialize(params) ⇒ Object



7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
# File 'lib/v20181119/models.rb', line 7224

def deserialize(params)
  unless params['LeftTop'].nil?
    @LeftTop = Coord.new
    @LeftTop.deserialize(params['LeftTop'])
  end
  unless params['RightTop'].nil?
    @RightTop = Coord.new
    @RightTop.deserialize(params['RightTop'])
  end
  unless params['RightBottom'].nil?
    @RightBottom = Coord.new
    @RightBottom.deserialize(params['RightBottom'])
  end
  unless params['LeftBottom'].nil?
    @LeftBottom = Coord.new
    @LeftBottom.deserialize(params['LeftBottom'])
  end
end