Class: TencentCloud::Ocr::V20181119::QuestionInfo

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

Overview

试题识别结果

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(angle = nil, height = nil, width = nil, resultlist = nil, orgheight = nil, orgwidth = nil, imagebase64 = nil) ⇒ QuestionInfo

Returns a new instance of QuestionInfo.



8042
8043
8044
8045
8046
8047
8048
8049
8050
# File 'lib/v20181119/models.rb', line 8042

def initialize(angle=nil, height=nil, width=nil, resultlist=nil, orgheight=nil, orgwidth=nil, imagebase64=nil)
  @Angle = angle
  @Height = height
  @Width = width
  @ResultList = resultlist
  @OrgHeight = orgheight
  @OrgWidth = orgwidth
  @ImageBase64 = imagebase64
end

Instance Attribute Details

#AngleObject

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

Parameters:

  • Angle:

    旋转角度

  • Height:

    预处理后图片高度

  • Width:

    预处理后图片宽度

  • ResultList:

    文档元素

  • OrgHeight:

    输入图片高度

  • OrgWidth:

    输入图片宽度

  • ImageBase64:

    预处理后的图片base64编码



8040
8041
8042
# File 'lib/v20181119/models.rb', line 8040

def Angle
  @Angle
end

#HeightObject

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

Parameters:

  • Angle:

    旋转角度

  • Height:

    预处理后图片高度

  • Width:

    预处理后图片宽度

  • ResultList:

    文档元素

  • OrgHeight:

    输入图片高度

  • OrgWidth:

    输入图片宽度

  • ImageBase64:

    预处理后的图片base64编码



8040
8041
8042
# File 'lib/v20181119/models.rb', line 8040

def Height
  @Height
end

#ImageBase64Object

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

Parameters:

  • Angle:

    旋转角度

  • Height:

    预处理后图片高度

  • Width:

    预处理后图片宽度

  • ResultList:

    文档元素

  • OrgHeight:

    输入图片高度

  • OrgWidth:

    输入图片宽度

  • ImageBase64:

    预处理后的图片base64编码



8040
8041
8042
# File 'lib/v20181119/models.rb', line 8040

def ImageBase64
  @ImageBase64
end

#OrgHeightObject

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

Parameters:

  • Angle:

    旋转角度

  • Height:

    预处理后图片高度

  • Width:

    预处理后图片宽度

  • ResultList:

    文档元素

  • OrgHeight:

    输入图片高度

  • OrgWidth:

    输入图片宽度

  • ImageBase64:

    预处理后的图片base64编码



8040
8041
8042
# File 'lib/v20181119/models.rb', line 8040

def OrgHeight
  @OrgHeight
end

#OrgWidthObject

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

Parameters:

  • Angle:

    旋转角度

  • Height:

    预处理后图片高度

  • Width:

    预处理后图片宽度

  • ResultList:

    文档元素

  • OrgHeight:

    输入图片高度

  • OrgWidth:

    输入图片宽度

  • ImageBase64:

    预处理后的图片base64编码



8040
8041
8042
# File 'lib/v20181119/models.rb', line 8040

def OrgWidth
  @OrgWidth
end

#ResultListObject

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

Parameters:

  • Angle:

    旋转角度

  • Height:

    预处理后图片高度

  • Width:

    预处理后图片宽度

  • ResultList:

    文档元素

  • OrgHeight:

    输入图片高度

  • OrgWidth:

    输入图片宽度

  • ImageBase64:

    预处理后的图片base64编码



8040
8041
8042
# File 'lib/v20181119/models.rb', line 8040

def ResultList
  @ResultList
end

#WidthObject

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

Parameters:

  • Angle:

    旋转角度

  • Height:

    预处理后图片高度

  • Width:

    预处理后图片宽度

  • ResultList:

    文档元素

  • OrgHeight:

    输入图片高度

  • OrgWidth:

    输入图片宽度

  • ImageBase64:

    预处理后的图片base64编码



8040
8041
8042
# File 'lib/v20181119/models.rb', line 8040

def Width
  @Width
end

Instance Method Details

#deserialize(params) ⇒ Object



8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
# File 'lib/v20181119/models.rb', line 8052

def deserialize(params)
  @Angle = params['Angle']
  @Height = params['Height']
  @Width = params['Width']
  unless params['ResultList'].nil?
    @ResultList = []
    params['ResultList'].each do |i|
      resultlist_tmp = ResultList.new
      resultlist_tmp.deserialize(i)
      @ResultList << resultlist_tmp
    end
  end
  @OrgHeight = params['OrgHeight']
  @OrgWidth = params['OrgWidth']
  @ImageBase64 = params['ImageBase64']
end