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.



5248
5249
5250
5251
# File 'lib/v20181119/models.rb', line 5248

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

Instance Attribute Details

#HeightObject

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

Parameters:

  • Width:

    图片的宽,单位像素

  • Height:

    图片的高,单位像素



5246
5247
5248
# File 'lib/v20181119/models.rb', line 5246

def Height
  @Height
end

#WidthObject

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

Parameters:

  • Width:

    图片的宽,单位像素

  • Height:

    图片的高,单位像素



5246
5247
5248
# File 'lib/v20181119/models.rb', line 5246

def Width
  @Width
end

Instance Method Details

#deserialize(params) ⇒ Object



5253
5254
5255
5256
# File 'lib/v20181119/models.rb', line 5253

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