Class: TencentCloud::Ocr::V20181119::RecognizeTableOCRResponse

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

Overview

RecognizeTableOCR返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tabledetections = nil, data = nil, pdfpagesize = nil, angle = nil, requestid = nil) ⇒ RecognizeTableOCRResponse

Returns a new instance of RecognizeTableOCRResponse.



8833
8834
8835
8836
8837
8838
8839
# File 'lib/v20181119/models.rb', line 8833

def initialize(tabledetections=nil, data=nil, pdfpagesize=nil, angle=nil, requestid=nil)
  @TableDetections = tabledetections
  @Data = data
  @PdfPageSize = pdfpagesize
  @Angle = angle
  @RequestId = requestid
end

Instance Attribute Details

#AngleObject

Parameters:

  • TableDetections:

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

  • Data:

    Base64 编码后的 Excel 数据。

  • PdfPageSize:

    图片为PDF时,返回PDF的总页数,默认为0

  • Angle:

    图片旋转角度(角度制),文本的水平方向为0°,统一以逆时针方向旋转,逆时针为负,角度范围为-360°至0°。

  • RequestId:

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



8831
8832
8833
# File 'lib/v20181119/models.rb', line 8831

def Angle
  @Angle
end

#DataObject

Parameters:

  • TableDetections:

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

  • Data:

    Base64 编码后的 Excel 数据。

  • PdfPageSize:

    图片为PDF时,返回PDF的总页数,默认为0

  • Angle:

    图片旋转角度(角度制),文本的水平方向为0°,统一以逆时针方向旋转,逆时针为负,角度范围为-360°至0°。

  • RequestId:

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



8831
8832
8833
# File 'lib/v20181119/models.rb', line 8831

def Data
  @Data
end

#PdfPageSizeObject

Parameters:

  • TableDetections:

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

  • Data:

    Base64 编码后的 Excel 数据。

  • PdfPageSize:

    图片为PDF时,返回PDF的总页数,默认为0

  • Angle:

    图片旋转角度(角度制),文本的水平方向为0°,统一以逆时针方向旋转,逆时针为负,角度范围为-360°至0°。

  • RequestId:

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



8831
8832
8833
# File 'lib/v20181119/models.rb', line 8831

def PdfPageSize
  @PdfPageSize
end

#RequestIdObject

Parameters:

  • TableDetections:

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

  • Data:

    Base64 编码后的 Excel 数据。

  • PdfPageSize:

    图片为PDF时,返回PDF的总页数,默认为0

  • Angle:

    图片旋转角度(角度制),文本的水平方向为0°,统一以逆时针方向旋转,逆时针为负,角度范围为-360°至0°。

  • RequestId:

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



8831
8832
8833
# File 'lib/v20181119/models.rb', line 8831

def RequestId
  @RequestId
end

#TableDetectionsObject

Parameters:

  • TableDetections:

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

  • Data:

    Base64 编码后的 Excel 数据。

  • PdfPageSize:

    图片为PDF时,返回PDF的总页数,默认为0

  • Angle:

    图片旋转角度(角度制),文本的水平方向为0°,统一以逆时针方向旋转,逆时针为负,角度范围为-360°至0°。

  • RequestId:

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



8831
8832
8833
# File 'lib/v20181119/models.rb', line 8831

def TableDetections
  @TableDetections
end

Instance Method Details

#deserialize(params) ⇒ Object



8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
# File 'lib/v20181119/models.rb', line 8841

def deserialize(params)
  unless params['TableDetections'].nil?
    @TableDetections = []
    params['TableDetections'].each do |i|
      tabledetectinfo_tmp = TableDetectInfo.new
      tabledetectinfo_tmp.deserialize(i)
      @TableDetections << tabledetectinfo_tmp
    end
  end
  @Data = params['Data']
  @PdfPageSize = params['PdfPageSize']
  @Angle = params['Angle']
  @RequestId = params['RequestId']
end