Class: TencentCloud::Ocr::V20181119::ResultList

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

Overview

结果列表

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(question = nil, option = nil, figure = nil, table = nil, answer = nil, parse = nil, coord = nil) ⇒ ResultList

Returns a new instance of ResultList.



10245
10246
10247
10248
10249
10250
10251
10252
10253
# File 'lib/v20181119/models.rb', line 10245

def initialize(question=nil, option=nil, figure=nil, table=nil, answer=nil, parse=nil, coord=nil)
  @Question = question
  @Option = option
  @Figure = figure
  @Table = table
  @Answer = answer
  @Parse = parse
  @Coord = coord
end

Instance Attribute Details

#AnswerObject

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

Parameters:

  • Question:

    题干

  • Option:

    选项

  • Figure:

    插图

  • Table:

    表格

  • Answer:

    答案

  • Parse:

    解析

  • Coord:

    整题的坐标



10243
10244
10245
# File 'lib/v20181119/models.rb', line 10243

def Answer
  @Answer
end

#CoordObject

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

Parameters:

  • Question:

    题干

  • Option:

    选项

  • Figure:

    插图

  • Table:

    表格

  • Answer:

    答案

  • Parse:

    解析

  • Coord:

    整题的坐标



10243
10244
10245
# File 'lib/v20181119/models.rb', line 10243

def Coord
  @Coord
end

#FigureObject

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

Parameters:

  • Question:

    题干

  • Option:

    选项

  • Figure:

    插图

  • Table:

    表格

  • Answer:

    答案

  • Parse:

    解析

  • Coord:

    整题的坐标



10243
10244
10245
# File 'lib/v20181119/models.rb', line 10243

def Figure
  @Figure
end

#OptionObject

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

Parameters:

  • Question:

    题干

  • Option:

    选项

  • Figure:

    插图

  • Table:

    表格

  • Answer:

    答案

  • Parse:

    解析

  • Coord:

    整题的坐标



10243
10244
10245
# File 'lib/v20181119/models.rb', line 10243

def Option
  @Option
end

#ParseObject

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

Parameters:

  • Question:

    题干

  • Option:

    选项

  • Figure:

    插图

  • Table:

    表格

  • Answer:

    答案

  • Parse:

    解析

  • Coord:

    整题的坐标



10243
10244
10245
# File 'lib/v20181119/models.rb', line 10243

def Parse
  @Parse
end

#QuestionObject

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

Parameters:

  • Question:

    题干

  • Option:

    选项

  • Figure:

    插图

  • Table:

    表格

  • Answer:

    答案

  • Parse:

    解析

  • Coord:

    整题的坐标



10243
10244
10245
# File 'lib/v20181119/models.rb', line 10243

def Question
  @Question
end

#TableObject

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

Parameters:

  • Question:

    题干

  • Option:

    选项

  • Figure:

    插图

  • Table:

    表格

  • Answer:

    答案

  • Parse:

    解析

  • Coord:

    整题的坐标



10243
10244
10245
# File 'lib/v20181119/models.rb', line 10243

def Table
  @Table
end

Instance Method Details

#deserialize(params) ⇒ Object



10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
# File 'lib/v20181119/models.rb', line 10255

def deserialize(params)
  unless params['Question'].nil?
    @Question = []
    params['Question'].each do |i|
      element_tmp = Element.new
      element_tmp.deserialize(i)
      @Question << element_tmp
    end
  end
  unless params['Option'].nil?
    @Option = []
    params['Option'].each do |i|
      element_tmp = Element.new
      element_tmp.deserialize(i)
      @Option << element_tmp
    end
  end
  unless params['Figure'].nil?
    @Figure = []
    params['Figure'].each do |i|
      element_tmp = Element.new
      element_tmp.deserialize(i)
      @Figure << element_tmp
    end
  end
  unless params['Table'].nil?
    @Table = []
    params['Table'].each do |i|
      element_tmp = Element.new
      element_tmp.deserialize(i)
      @Table << element_tmp
    end
  end
  unless params['Answer'].nil?
    @Answer = []
    params['Answer'].each do |i|
      element_tmp = Element.new
      element_tmp.deserialize(i)
      @Answer << element_tmp
    end
  end
  unless params['Parse'].nil?
    @Parse = []
    params['Parse'].each do |i|
      element_tmp = Element.new
      element_tmp.deserialize(i)
      @Parse << element_tmp
    end
  end
  unless params['Coord'].nil?
    @Coord = []
    params['Coord'].each do |i|
      polygon_tmp = Polygon.new
      polygon_tmp.deserialize(i)
      @Coord << polygon_tmp
    end
  end
end