Class: TencentCloud::Ocr::V20181119::QuestionBlockObj

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

Overview

数学试题识别结构化对象

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#QuestionArrObject

Parameters:

  • QuestionArr:

    数学试题识别结构化信息数组

  • QuestionBboxCoord:

    题目主体区域检测框在图片中的像素坐标



7283
7284
7285
# File 'lib/v20181119/models.rb', line 7283

def QuestionArr
  @QuestionArr
end

#QuestionBboxCoordObject

Parameters:

  • QuestionArr:

    数学试题识别结构化信息数组

  • QuestionBboxCoord:

    题目主体区域检测框在图片中的像素坐标



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