Class: TencentCloud::Ocr::V20181119::ImageSize

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

Overview

图片分辨率信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(width = nil, height = nil) ⇒ ImageSize

Returns a new instance of ImageSize.



5370
5371
5372
5373
# File 'lib/v20181119/models.rb', line 5370

def initialize(width=nil, height=nil)
  @Width = width
  @Height = height
end

Instance Attribute Details

#HeightObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Width:

    图片的宽,单位像素

  • Height:

    图片的高,单位像素



5368
5369
5370
# File 'lib/v20181119/models.rb', line 5368

def Height
  @Height
end

#WidthObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Width:

    图片的宽,单位像素

  • Height:

    图片的高,单位像素



5368
5369
5370
# File 'lib/v20181119/models.rb', line 5368

def Width
  @Width
end

Instance Method Details

#deserialize(params) ⇒ Object



5375
5376
5377
5378
# File 'lib/v20181119/models.rb', line 5375

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