Class: TencentCloud::Ocr::V20181119::AdvertiseOCRResponse

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

Overview

AdvertiseOCR返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(textdetections = nil, imagesize = nil, requestid = nil) ⇒ AdvertiseOCRResponse

Returns a new instance of AdvertiseOCRResponse.



51
52
53
54
55
# File 'lib/v20181119/models.rb', line 51

def initialize(textdetections=nil, imagesize=nil, requestid=nil)
  @TextDetections = textdetections
  @ImageSize = imagesize
  @RequestId = requestid
end

Instance Attribute Details

#ImageSizeObject

Parameters:

  • TextDetections:

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

  • ImageSize:

    图片分辨率信息,单位 px

  • RequestId:

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



49
50
51
# File 'lib/v20181119/models.rb', line 49

def ImageSize
  @ImageSize
end

#RequestIdObject

Parameters:

  • TextDetections:

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

  • ImageSize:

    图片分辨率信息,单位 px

  • RequestId:

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



49
50
51
# File 'lib/v20181119/models.rb', line 49

def RequestId
  @RequestId
end

#TextDetectionsObject

Parameters:

  • TextDetections:

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

  • ImageSize:

    图片分辨率信息,单位 px

  • RequestId:

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



49
50
51
# File 'lib/v20181119/models.rb', line 49

def TextDetections
  @TextDetections
end

Instance Method Details

#deserialize(params) ⇒ Object



57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/v20181119/models.rb', line 57

def deserialize(params)
  unless params['TextDetections'].nil?
    @TextDetections = []
    params['TextDetections'].each do |i|
      advertisetextdetection_tmp = AdvertiseTextDetection.new
      advertisetextdetection_tmp.deserialize(i)
      @TextDetections << advertisetextdetection_tmp
    end
  end
  unless params['ImageSize'].nil?
    @ImageSize = ImageSize.new
    @ImageSize.deserialize(params['ImageSize'])
  end
  @RequestId = params['RequestId']
end