Class: TencentCloud::Ocr::V20181119::GeneralHandwritingOCRResponse

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

Overview

GeneralHandwritingOCR返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(textdetections = nil, angel = nil, requestid = nil) ⇒ GeneralHandwritingOCRResponse

Returns a new instance of GeneralHandwritingOCRResponse.



3757
3758
3759
3760
3761
# File 'lib/v20181119/models.rb', line 3757

def initialize(textdetections=nil, angel=nil, requestid=nil)
  @TextDetections = textdetections
  @Angel = angel
  @RequestId = requestid
end

Instance Attribute Details

#AngelObject

Parameters:

  • TextDetections:

    检测到的文本信息,具体内容请点击左侧链接。

  • Angel:

    图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href=“cloud.tencent.com/document/product/866/45139”>如何纠正倾斜文本</a>

  • RequestId:

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



3755
3756
3757
# File 'lib/v20181119/models.rb', line 3755

def Angel
  @Angel
end

#RequestIdObject

Parameters:

  • TextDetections:

    检测到的文本信息,具体内容请点击左侧链接。

  • Angel:

    图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href=“cloud.tencent.com/document/product/866/45139”>如何纠正倾斜文本</a>

  • RequestId:

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



3755
3756
3757
# File 'lib/v20181119/models.rb', line 3755

def RequestId
  @RequestId
end

#TextDetectionsObject

Parameters:

  • TextDetections:

    检测到的文本信息,具体内容请点击左侧链接。

  • Angel:

    图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href=“cloud.tencent.com/document/product/866/45139”>如何纠正倾斜文本</a>

  • RequestId:

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



3755
3756
3757
# File 'lib/v20181119/models.rb', line 3755

def TextDetections
  @TextDetections
end

Instance Method Details

#deserialize(params) ⇒ Object



3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
# File 'lib/v20181119/models.rb', line 3763

def deserialize(params)
  unless params['TextDetections'].nil?
    @TextDetections = []
    params['TextDetections'].each do |i|
      textgeneralhandwriting_tmp = TextGeneralHandwriting.new
      textgeneralhandwriting_tmp.deserialize(i)
      @TextDetections << textgeneralhandwriting_tmp
    end
  end
  @Angel = params['Angel']
  @RequestId = params['RequestId']
end