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.



10345
10346
10347
10348
10349
10350
10351
10352
10353
# File 'lib/v20181119/models.rb', line 10345

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:

    整题的坐标



10343
10344
10345
# File 'lib/v20181119/models.rb', line 10343

def Answer
  @Answer
end

#CoordObject

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

Parameters:

  • Question:

    题干

  • Option:

    选项

  • Figure:

    插图

  • Table:

    表格

  • Answer:

    答案

  • Parse:

    解析

  • Coord:

    整题的坐标



10343
10344
10345
# File 'lib/v20181119/models.rb', line 10343

def Coord
  @Coord
end

#FigureObject

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

Parameters:

  • Question:

    题干

  • Option:

    选项

  • Figure:

    插图

  • Table:

    表格

  • Answer:

    答案

  • Parse:

    解析

  • Coord:

    整题的坐标



10343
10344
10345
# File 'lib/v20181119/models.rb', line 10343

def Figure
  @Figure
end

#OptionObject

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

Parameters:

  • Question:

    题干

  • Option:

    选项

  • Figure:

    插图

  • Table:

    表格

  • Answer:

    答案

  • Parse:

    解析

  • Coord:

    整题的坐标



10343
10344
10345
# File 'lib/v20181119/models.rb', line 10343

def Option
  @Option
end

#ParseObject

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

Parameters:

  • Question:

    题干

  • Option:

    选项

  • Figure:

    插图

  • Table:

    表格

  • Answer:

    答案

  • Parse:

    解析

  • Coord:

    整题的坐标



10343
10344
10345
# File 'lib/v20181119/models.rb', line 10343

def Parse
  @Parse
end

#QuestionObject

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

Parameters:

  • Question:

    题干

  • Option:

    选项

  • Figure:

    插图

  • Table:

    表格

  • Answer:

    答案

  • Parse:

    解析

  • Coord:

    整题的坐标



10343
10344
10345
# File 'lib/v20181119/models.rb', line 10343

def Question
  @Question
end

#TableObject

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

Parameters:

  • Question:

    题干

  • Option:

    选项

  • Figure:

    插图

  • Table:

    表格

  • Answer:

    答案

  • Parse:

    解析

  • Coord:

    整题的坐标



10343
10344
10345
# File 'lib/v20181119/models.rb', line 10343

def Table
  @Table
end

Instance Method Details

#deserialize(params) ⇒ Object



10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
# File 'lib/v20181119/models.rb', line 10355

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