Class: TencentCloud::Ocr::V20181119::DocumentRecognizeInfo

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

Overview

单页文档识别的内容

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pagenumber = nil, angle = nil, height = nil, width = nil, originheight = nil, originwidth = nil, elements = nil, rotatedangle = nil) ⇒ DocumentRecognizeInfo

Returns a new instance of DocumentRecognizeInfo.



1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
# File 'lib/v20181119/models.rb', line 1709

def initialize(pagenumber=nil, angle=nil, height=nil, width=nil, originheight=nil, originwidth=nil, elements=nil, rotatedangle=nil)
  @PageNumber = pagenumber
  @Angle = angle
  @Height = height
  @Width = width
  @OriginHeight = originheight
  @OriginWidth = originwidth
  @Elements = elements
  @RotatedAngle = rotatedangle
end

Instance Attribute Details

#AngleObject

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



1704
1705
1706
# File 'lib/v20181119/models.rb', line 1704

def Angle
  @Angle
end

#ElementsObject

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



1704
1705
1706
# File 'lib/v20181119/models.rb', line 1704

def Elements
  @Elements
end

#HeightObject

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



1704
1705
1706
# File 'lib/v20181119/models.rb', line 1704

def Height
  @Height
end

#OriginHeightObject

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



1704
1705
1706
# File 'lib/v20181119/models.rb', line 1704

def OriginHeight
  @OriginHeight
end

#OriginWidthObject

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



1704
1705
1706
# File 'lib/v20181119/models.rb', line 1704

def OriginWidth
  @OriginWidth
end

#PageNumberObject

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



1704
1705
1706
# File 'lib/v20181119/models.rb', line 1704

def PageNumber
  @PageNumber
end

#RotatedAngleObject

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



1704
1705
1706
# File 'lib/v20181119/models.rb', line 1704

def RotatedAngle
  @RotatedAngle
end

#WidthObject

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



1704
1705
1706
# File 'lib/v20181119/models.rb', line 1704

def Width
  @Width
end

Instance Method Details

#deserialize(params) ⇒ Object



1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
# File 'lib/v20181119/models.rb', line 1720

def deserialize(params)
  @PageNumber = params['PageNumber']
  @Angle = params['Angle']
  @Height = params['Height']
  @Width = params['Width']
  @OriginHeight = params['OriginHeight']
  @OriginWidth = params['OriginWidth']
  unless params['Elements'].nil?
    @Elements = []
    params['Elements'].each do |i|
      documentelement_tmp = DocumentElement.new
      documentelement_tmp.deserialize(i)
      @Elements << documentelement_tmp
    end
  end
  @RotatedAngle = params['RotatedAngle']
end