Class: TencentCloud::Ocr::V20181119::EnglishOCRResponse

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

Overview

EnglishOCR返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of EnglishOCRResponse.



2568
2569
2570
2571
2572
# File 'lib/v20181119/models.rb', line 2568

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。



2566
2567
2568
# File 'lib/v20181119/models.rb', line 2566

def Angel
  @Angel
end

#RequestIdObject

Parameters:

  • TextDetections:

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

  • Angel:

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

  • RequestId:

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



2566
2567
2568
# File 'lib/v20181119/models.rb', line 2566

def RequestId
  @RequestId
end

#TextDetectionsObject

Parameters:

  • TextDetections:

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

  • Angel:

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

  • RequestId:

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



2566
2567
2568
# File 'lib/v20181119/models.rb', line 2566

def TextDetections
  @TextDetections
end

Instance Method Details

#deserialize(params) ⇒ Object



2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
# File 'lib/v20181119/models.rb', line 2574

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