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.



2862
2863
2864
2865
2866
# File 'lib/v20181119/models.rb', line 2862

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

Instance Attribute Details

#AngelObject

Parameters:

  • TextDetections:

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

  • Angel:

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

  • RequestId:

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



2860
2861
2862
# File 'lib/v20181119/models.rb', line 2860

def Angel
  @Angel
end

#RequestIdObject

Parameters:

  • TextDetections:

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

  • Angel:

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

  • RequestId:

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



2860
2861
2862
# File 'lib/v20181119/models.rb', line 2860

def RequestId
  @RequestId
end

#TextDetectionsObject

Parameters:

  • TextDetections:

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

  • Angel:

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

  • RequestId:

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



2860
2861
2862
# File 'lib/v20181119/models.rb', line 2860

def TextDetections
  @TextDetections
end

Instance Method Details

#deserialize(params) ⇒ Object



2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
# File 'lib/v20181119/models.rb', line 2868

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