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

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

Overview

GeneralHandwritingOCR返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of GeneralHandwritingOCRResponse.



4487
4488
4489
4490
4491
4492
# File 'lib/v20181119/models.rb', line 4487

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

Instance Attribute Details

#AngelObject

Parameters:

  • TextDetections:

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

  • Angel:

    图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看如何纠正倾斜文本

  • Angle:

    图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看如何纠正倾斜文本

  • RequestId:

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



4482
4483
4484
# File 'lib/v20181119/models.rb', line 4482

def Angel
  @Angel
end

#AngleObject

Parameters:

  • TextDetections:

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

  • Angel:

    图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看如何纠正倾斜文本

  • Angle:

    图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看如何纠正倾斜文本

  • RequestId:

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



4482
4483
4484
# File 'lib/v20181119/models.rb', line 4482

def Angle
  @Angle
end

#RequestIdObject

Parameters:

  • TextDetections:

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

  • Angel:

    图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看如何纠正倾斜文本

  • Angle:

    图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看如何纠正倾斜文本

  • RequestId:

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



4482
4483
4484
# File 'lib/v20181119/models.rb', line 4482

def RequestId
  @RequestId
end

#TextDetectionsObject

Parameters:

  • TextDetections:

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

  • Angel:

    图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看如何纠正倾斜文本

  • Angle:

    图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看如何纠正倾斜文本

  • RequestId:

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



4482
4483
4484
# File 'lib/v20181119/models.rb', line 4482

def TextDetections
  @TextDetections
end

Instance Method Details

#deserialize(params) ⇒ Object



4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
# File 'lib/v20181119/models.rb', line 4494

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']
  @Angle = params['Angle']
  @RequestId = params['RequestId']
end