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.



10317
10318
10319
10320
10321
10322
10323
10324
10325
# File 'lib/v20181119/models.rb', line 10317

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:

    整题的坐标



10315
10316
10317
# File 'lib/v20181119/models.rb', line 10315

def Answer
  @Answer
end

#CoordObject

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

Parameters:

  • Question:

    题干

  • Option:

    选项

  • Figure:

    插图

  • Table:

    表格

  • Answer:

    答案

  • Parse:

    解析

  • Coord:

    整题的坐标



10315
10316
10317
# File 'lib/v20181119/models.rb', line 10315

def Coord
  @Coord
end

#FigureObject

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

Parameters:

  • Question:

    题干

  • Option:

    选项

  • Figure:

    插图

  • Table:

    表格

  • Answer:

    答案

  • Parse:

    解析

  • Coord:

    整题的坐标



10315
10316
10317
# File 'lib/v20181119/models.rb', line 10315

def Figure
  @Figure
end

#OptionObject

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

Parameters:

  • Question:

    题干

  • Option:

    选项

  • Figure:

    插图

  • Table:

    表格

  • Answer:

    答案

  • Parse:

    解析

  • Coord:

    整题的坐标



10315
10316
10317
# File 'lib/v20181119/models.rb', line 10315

def Option
  @Option
end

#ParseObject

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

Parameters:

  • Question:

    题干

  • Option:

    选项

  • Figure:

    插图

  • Table:

    表格

  • Answer:

    答案

  • Parse:

    解析

  • Coord:

    整题的坐标



10315
10316
10317
# File 'lib/v20181119/models.rb', line 10315

def Parse
  @Parse
end

#QuestionObject

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

Parameters:

  • Question:

    题干

  • Option:

    选项

  • Figure:

    插图

  • Table:

    表格

  • Answer:

    答案

  • Parse:

    解析

  • Coord:

    整题的坐标



10315
10316
10317
# File 'lib/v20181119/models.rb', line 10315

def Question
  @Question
end

#TableObject

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

Parameters:

  • Question:

    题干

  • Option:

    选项

  • Figure:

    插图

  • Table:

    表格

  • Answer:

    答案

  • Parse:

    解析

  • Coord:

    整题的坐标



10315
10316
10317
# File 'lib/v20181119/models.rb', line 10315

def Table
  @Table
end

Instance Method Details

#deserialize(params) ⇒ Object



10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
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
# File 'lib/v20181119/models.rb', line 10327

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