Class: Xberg::OcrElement

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOcrElement

Returns a new instance of OcrElement.

Parameters:



1705
# File 'sig/types.rbs', line 1705

def initialize: (?text: String, ?geometry: OcrBoundingGeometry, ?confidence: OcrConfidence, ?level: enum_OcrElementLevel, ?rotation: OcrRotation, ?page_number: Integer, ?parent_id: String, ?backend_metadata: Hash[String, String]) -> void

Instance Attribute Details

#backend_metadataHash[String, String] (readonly)

Returns the value of attribute backend_metadata.

Returns:

  • (Hash[String, String])


1703
1704
1705
# File 'sig/types.rbs', line 1703

def 
  @backend_metadata
end

#confidenceOcrConfidence (readonly)

Returns the value of attribute confidence.

Returns:



1698
1699
1700
# File 'sig/types.rbs', line 1698

def confidence
  @confidence
end

#geometryOcrBoundingGeometry (readonly)

Returns the value of attribute geometry.

Returns:



1697
1698
1699
# File 'sig/types.rbs', line 1697

def geometry
  @geometry
end

#levelenum_OcrElementLevel (readonly)

Returns the value of attribute level.

Returns:

  • (enum_OcrElementLevel)


1699
1700
1701
# File 'sig/types.rbs', line 1699

def level
  @level
end

#page_numberInteger (readonly)

Returns the value of attribute page_number.

Returns:

  • (Integer)


1701
1702
1703
# File 'sig/types.rbs', line 1701

def page_number
  @page_number
end

#parent_idString? (readonly)

Returns the value of attribute parent_id.

Returns:

  • (String, nil)


1702
1703
1704
# File 'sig/types.rbs', line 1702

def parent_id
  @parent_id
end

#rotationOcrRotation? (readonly)

Returns the value of attribute rotation.

Returns:



1700
1701
1702
# File 'sig/types.rbs', line 1700

def rotation
  @rotation
end

#textString (readonly)

Returns the value of attribute text.

Returns:

  • (String)


1696
1697
1698
# File 'sig/types.rbs', line 1696

def text
  @text
end