Class: TencentCloud::Ocr::V20181119::StructuralItem

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

Overview

智能结构化识别

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, value = nil, confidence = nil, itemcoord = nil, row = nil) ⇒ StructuralItem

Returns a new instance of StructuralItem.



10228
10229
10230
10231
10232
10233
10234
# File 'lib/v20181119/models.rb', line 10228

def initialize(name=nil, value=nil, confidence=nil, itemcoord=nil, row=nil)
  @Name = name
  @Value = value
  @Confidence = confidence
  @ItemCoord = itemcoord
  @Row = row
end

Instance Attribute Details

#ConfidenceObject

坐标。

Parameters:

  • Name:

    识别出的字段名称(关键字)。

  • Value:

    识别出的字段名称对应的值。

  • Confidence:

    置信度 0 ~100。

  • ItemCoord:

    文本行在旋转纠正之后的图像中的像素

  • Row:

    字段所在行号,下标从0开始,非行字段或未能识别行号的该值返回-1。



10226
10227
10228
# File 'lib/v20181119/models.rb', line 10226

def Confidence
  @Confidence
end

#ItemCoordObject

坐标。

Parameters:

  • Name:

    识别出的字段名称(关键字)。

  • Value:

    识别出的字段名称对应的值。

  • Confidence:

    置信度 0 ~100。

  • ItemCoord:

    文本行在旋转纠正之后的图像中的像素

  • Row:

    字段所在行号,下标从0开始,非行字段或未能识别行号的该值返回-1。



10226
10227
10228
# File 'lib/v20181119/models.rb', line 10226

def ItemCoord
  @ItemCoord
end

#NameObject

坐标。

Parameters:

  • Name:

    识别出的字段名称(关键字)。

  • Value:

    识别出的字段名称对应的值。

  • Confidence:

    置信度 0 ~100。

  • ItemCoord:

    文本行在旋转纠正之后的图像中的像素

  • Row:

    字段所在行号,下标从0开始,非行字段或未能识别行号的该值返回-1。



10226
10227
10228
# File 'lib/v20181119/models.rb', line 10226

def Name
  @Name
end

#RowObject

坐标。

Parameters:

  • Name:

    识别出的字段名称(关键字)。

  • Value:

    识别出的字段名称对应的值。

  • Confidence:

    置信度 0 ~100。

  • ItemCoord:

    文本行在旋转纠正之后的图像中的像素

  • Row:

    字段所在行号,下标从0开始,非行字段或未能识别行号的该值返回-1。



10226
10227
10228
# File 'lib/v20181119/models.rb', line 10226

def Row
  @Row
end

#ValueObject

坐标。

Parameters:

  • Name:

    识别出的字段名称(关键字)。

  • Value:

    识别出的字段名称对应的值。

  • Confidence:

    置信度 0 ~100。

  • ItemCoord:

    文本行在旋转纠正之后的图像中的像素

  • Row:

    字段所在行号,下标从0开始,非行字段或未能识别行号的该值返回-1。



10226
10227
10228
# File 'lib/v20181119/models.rb', line 10226

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
# File 'lib/v20181119/models.rb', line 10236

def deserialize(params)
  @Name = params['Name']
  @Value = params['Value']
  @Confidence = params['Confidence']
  unless params['ItemCoord'].nil?
    @ItemCoord = ItemCoord.new
    @ItemCoord.deserialize(params['ItemCoord'])
  end
  @Row = params['Row']
end