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.



9489
9490
9491
9492
9493
9494
9495
# File 'lib/v20181119/models.rb', line 9489

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°。

  • RequestId:

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



9487
9488
9489
# File 'lib/v20181119/models.rb', line 9487

def Angle
  @Angle
end

#DataObject

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

Parameters:

  • TableDetections:

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

  • Data:

    Base64 编码后的 Excel 数据。

  • PdfPageSize:

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

  • Angle:

    图片旋转角度(角度制),文本的水平方向为0°。

  • RequestId:

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



9487
9488
9489
# File 'lib/v20181119/models.rb', line 9487

def Data
  @Data
end

#PdfPageSizeObject

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

Parameters:

  • TableDetections:

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

  • Data:

    Base64 编码后的 Excel 数据。

  • PdfPageSize:

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

  • Angle:

    图片旋转角度(角度制),文本的水平方向为0°。

  • RequestId:

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



9487
9488
9489
# File 'lib/v20181119/models.rb', line 9487

def PdfPageSize
  @PdfPageSize
end

#RequestIdObject

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

Parameters:

  • TableDetections:

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

  • Data:

    Base64 编码后的 Excel 数据。

  • PdfPageSize:

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

  • Angle:

    图片旋转角度(角度制),文本的水平方向为0°。

  • RequestId:

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



9487
9488
9489
# File 'lib/v20181119/models.rb', line 9487

def RequestId
  @RequestId
end

#TableDetectionsObject

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

Parameters:

  • TableDetections:

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

  • Data:

    Base64 编码后的 Excel 数据。

  • PdfPageSize:

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

  • Angle:

    图片旋转角度(角度制),文本的水平方向为0°。

  • RequestId:

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



9487
9488
9489
# File 'lib/v20181119/models.rb', line 9487

def TableDetections
  @TableDetections
end

Instance Method Details

#deserialize(params) ⇒ Object



9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
# File 'lib/v20181119/models.rb', line 9497

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