Class: TencentCloud::Ocr::V20181119::GeneralAccurateOCRResponse

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

Overview

GeneralAccurateOCR返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of GeneralAccurateOCRResponse.



3442
3443
3444
3445
3446
3447
# File 'lib/v20181119/models.rb', line 3442

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°;顺时针为正,逆时针为负。点击查看<a href=“cloud.tencent.com/document/product/866/45139”>如何纠正倾斜文本</a>

  • Angle:

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

  • RequestId:

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



3437
3438
3439
# File 'lib/v20181119/models.rb', line 3437

def Angel
  @Angel
end

#AngleObject

Parameters:

  • TextDetections:

    检测到的文本信息,包括文本行内容、置信度、文本行坐标以及文本行旋转纠正后的坐标,具体内容请点击左侧链接。

  • Angel:

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

  • Angle:

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

  • RequestId:

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



3437
3438
3439
# File 'lib/v20181119/models.rb', line 3437

def Angle
  @Angle
end

#RequestIdObject

Parameters:

  • TextDetections:

    检测到的文本信息,包括文本行内容、置信度、文本行坐标以及文本行旋转纠正后的坐标,具体内容请点击左侧链接。

  • Angel:

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

  • Angle:

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

  • RequestId:

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



3437
3438
3439
# File 'lib/v20181119/models.rb', line 3437

def RequestId
  @RequestId
end

#TextDetectionsObject

Parameters:

  • TextDetections:

    检测到的文本信息,包括文本行内容、置信度、文本行坐标以及文本行旋转纠正后的坐标,具体内容请点击左侧链接。

  • Angel:

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

  • Angle:

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

  • RequestId:

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



3437
3438
3439
# File 'lib/v20181119/models.rb', line 3437

def TextDetections
  @TextDetections
end

Instance Method Details

#deserialize(params) ⇒ Object



3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
# File 'lib/v20181119/models.rb', line 3449

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