Class: TencentCloud::Ocr::V20181119::RecognizeTableAccurateOCRResponse

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

Overview

RecognizeTableAccurateOCR返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of RecognizeTableAccurateOCRResponse.



8758
8759
8760
8761
8762
8763
8764
# File 'lib/v20181119/models.rb', line 8758

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

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TableDetections:

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

  • Data:

    Base64 编码后的 Excel 数据。

  • PdfPageSize:

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

  • Angle:

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

  • RequestId:

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



8756
8757
8758
# File 'lib/v20181119/models.rb', line 8756

def Angle
  @Angle
end

#DataObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TableDetections:

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

  • Data:

    Base64 编码后的 Excel 数据。

  • PdfPageSize:

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

  • Angle:

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

  • RequestId:

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



8756
8757
8758
# File 'lib/v20181119/models.rb', line 8756

def Data
  @Data
end

#PdfPageSizeObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TableDetections:

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

  • Data:

    Base64 编码后的 Excel 数据。

  • PdfPageSize:

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

  • Angle:

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

  • RequestId:

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



8756
8757
8758
# File 'lib/v20181119/models.rb', line 8756

def PdfPageSize
  @PdfPageSize
end

#RequestIdObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TableDetections:

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

  • Data:

    Base64 编码后的 Excel 数据。

  • PdfPageSize:

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

  • Angle:

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

  • RequestId:

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



8756
8757
8758
# File 'lib/v20181119/models.rb', line 8756

def RequestId
  @RequestId
end

#TableDetectionsObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • TableDetections:

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

  • Data:

    Base64 编码后的 Excel 数据。

  • PdfPageSize:

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

  • Angle:

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

  • RequestId:

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



8756
8757
8758
# File 'lib/v20181119/models.rb', line 8756

def TableDetections
  @TableDetections
end

Instance Method Details

#deserialize(params) ⇒ Object



8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
# File 'lib/v20181119/models.rb', line 8766

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