Class: TencentCloud::Ocr::V20181119::RecognizeFormulaOCRResponse

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

Overview

RecognizeFormulaOCR返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(angle = nil, formulainfolist = nil, requestid = nil) ⇒ RecognizeFormulaOCRResponse

Returns a new instance of RecognizeFormulaOCRResponse.



8907
8908
8909
8910
8911
# File 'lib/v20181119/models.rb', line 8907

def initialize(angle=nil, formulainfolist=nil, requestid=nil)
  @Angle = angle
  @FormulaInfoList = formulainfolist
  @RequestId = requestid
end

Instance Attribute Details

#AngleObject

Parameters:

  • Angle:

    图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负

  • FormulaInfoList:

    检测到的文本信息

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



8905
8906
8907
# File 'lib/v20181119/models.rb', line 8905

def Angle
  @Angle
end

#FormulaInfoListObject

Parameters:

  • Angle:

    图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负

  • FormulaInfoList:

    检测到的文本信息

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



8905
8906
8907
# File 'lib/v20181119/models.rb', line 8905

def FormulaInfoList
  @FormulaInfoList
end

#RequestIdObject

Parameters:

  • Angle:

    图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负

  • FormulaInfoList:

    检测到的文本信息

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



8905
8906
8907
# File 'lib/v20181119/models.rb', line 8905

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
# File 'lib/v20181119/models.rb', line 8913

def deserialize(params)
  @Angle = params['Angle']
  unless params['FormulaInfoList'].nil?
    @FormulaInfoList = []
    params['FormulaInfoList'].each do |i|
      textformulainfo_tmp = TextFormulaInfo.new
      textformulainfo_tmp.deserialize(i)
      @FormulaInfoList << textformulainfo_tmp
    end
  end
  @RequestId = params['RequestId']
end