Class: TencentCloud::Ocr::V20181119::QuestionObj
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::QuestionObj
- Defined in:
- lib/v20181119/models.rb
Overview
试题识别结构化信息
Instance Attribute Summary collapse
-
#QuestionImageCoords ⇒ Object
1: “选择题” 2: “填空题” 3: “解答题”.
-
#QuestionOptions ⇒ Object
1: “选择题” 2: “填空题” 3: “解答题”.
-
#QuestionSubquestion ⇒ Object
1: “选择题” 2: “填空题” 3: “解答题”.
-
#QuestionText ⇒ Object
1: “选择题” 2: “填空题” 3: “解答题”.
-
#QuestionTextNo ⇒ Object
1: “选择题” 2: “填空题” 3: “解答题”.
-
#QuestionTextType ⇒ Object
1: “选择题” 2: “填空题” 3: “解答题”.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(questiontextno = nil, questiontexttype = nil, questiontext = nil, questionoptions = nil, questionsubquestion = nil, questionimagecoords = nil) ⇒ QuestionObj
constructor
A new instance of QuestionObj.
Constructor Details
#initialize(questiontextno = nil, questiontexttype = nil, questiontext = nil, questionoptions = nil, questionsubquestion = nil, questionimagecoords = nil) ⇒ QuestionObj
Returns a new instance of QuestionObj.
7326 7327 7328 7329 7330 7331 7332 7333 |
# File 'lib/v20181119/models.rb', line 7326 def initialize(questiontextno=nil, questiontexttype=nil, questiontext=nil, =nil, questionsubquestion=nil, questionimagecoords=nil) @QuestionTextNo = questiontextno @QuestionTextType = questiontexttype @QuestionText = questiontext @QuestionOptions = @QuestionSubquestion = questionsubquestion @QuestionImageCoords = questionimagecoords end |
Instance Attribute Details
#QuestionImageCoords ⇒ Object
1: “选择题” 2: “填空题” 3: “解答题”
7324 7325 7326 |
# File 'lib/v20181119/models.rb', line 7324 def QuestionImageCoords @QuestionImageCoords end |
#QuestionOptions ⇒ Object
1: “选择题” 2: “填空题” 3: “解答题”
7324 7325 7326 |
# File 'lib/v20181119/models.rb', line 7324 def QuestionOptions @QuestionOptions end |
#QuestionSubquestion ⇒ Object
1: “选择题” 2: “填空题” 3: “解答题”
7324 7325 7326 |
# File 'lib/v20181119/models.rb', line 7324 def QuestionSubquestion @QuestionSubquestion end |
#QuestionText ⇒ Object
1: “选择题” 2: “填空题” 3: “解答题”
7324 7325 7326 |
# File 'lib/v20181119/models.rb', line 7324 def QuestionText @QuestionText end |
#QuestionTextNo ⇒ Object
1: “选择题” 2: “填空题” 3: “解答题”
7324 7325 7326 |
# File 'lib/v20181119/models.rb', line 7324 def QuestionTextNo @QuestionTextNo end |
#QuestionTextType ⇒ Object
1: “选择题” 2: “填空题” 3: “解答题”
7324 7325 7326 |
# File 'lib/v20181119/models.rb', line 7324 def QuestionTextType @QuestionTextType end |
Instance Method Details
#deserialize(params) ⇒ Object
7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 |
# File 'lib/v20181119/models.rb', line 7335 def deserialize(params) @QuestionTextNo = params['QuestionTextNo'] @QuestionTextType = params['QuestionTextType'] @QuestionText = params['QuestionText'] @QuestionOptions = params['QuestionOptions'] @QuestionSubquestion = params['QuestionSubquestion'] unless params['QuestionImageCoords'].nil? @QuestionImageCoords = [] params['QuestionImageCoords'].each do |i| rect_tmp = Rect.new rect_tmp.deserialize(i) @QuestionImageCoords << rect_tmp end end end |