Class: TencentCloud::Ocr::V20181119::QuestionBlockObj
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::QuestionBlockObj
- Defined in:
- lib/v20181119/models.rb
Overview
数学试题识别结构化对象
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(questionarr = nil, questionbboxcoord = nil) ⇒ QuestionBlockObj
constructor
A new instance of QuestionBlockObj.
Constructor Details
#initialize(questionarr = nil, questionbboxcoord = nil) ⇒ QuestionBlockObj
Returns a new instance of QuestionBlockObj.
7285 7286 7287 7288 |
# File 'lib/v20181119/models.rb', line 7285 def initialize(questionarr=nil, questionbboxcoord=nil) @QuestionArr = questionarr @QuestionBboxCoord = questionbboxcoord end |
Instance Attribute Details
#QuestionArr ⇒ Object
7283 7284 7285 |
# File 'lib/v20181119/models.rb', line 7283 def QuestionArr @QuestionArr end |
#QuestionBboxCoord ⇒ Object
7283 7284 7285 |
# File 'lib/v20181119/models.rb', line 7283 def QuestionBboxCoord @QuestionBboxCoord end |
Instance Method Details
#deserialize(params) ⇒ Object
7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 |
# File 'lib/v20181119/models.rb', line 7290 def deserialize(params) unless params['QuestionArr'].nil? @QuestionArr = [] params['QuestionArr'].each do |i| questionobj_tmp = QuestionObj.new questionobj_tmp.deserialize(i) @QuestionArr << questionobj_tmp end end unless params['QuestionBboxCoord'].nil? @QuestionBboxCoord = Rect.new @QuestionBboxCoord.deserialize(params['QuestionBboxCoord']) end end |