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.



4365
4366
4367
4368
# File 'lib/v20181119/models.rb', line 4365

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

Instance Attribute Details

#HeightObject

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

Parameters:

  • Width:

    图片的宽,单位像素

  • Height:

    图片的高,单位像素



4363
4364
4365
# File 'lib/v20181119/models.rb', line 4363

def Height
  @Height
end

#WidthObject

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

Parameters:

  • Width:

    图片的宽,单位像素

  • Height:

    图片的高,单位像素



4363
4364
4365
# File 'lib/v20181119/models.rb', line 4363

def Width
  @Width
end

Instance Method Details

#deserialize(params) ⇒ Object



4370
4371
4372
4373
# File 'lib/v20181119/models.rb', line 4370

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