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:



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

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

Instance Attribute Details

#backend_metadataHash[String, json_value]?

Returns the value of attribute backend_metadata.

Returns:

  • (Hash[String, json_value], nil)


1527
1528
1529
# File 'sig/types.rbs', line 1527

def 
  @backend_metadata
end

#confidenceOcrConfidence?

Returns the value of attribute confidence.

Returns:



1522
1523
1524
# File 'sig/types.rbs', line 1522

def confidence
  @confidence
end

#geometryOcrBoundingGeometry?

Returns the value of attribute geometry.

Returns:



1521
1522
1523
# File 'sig/types.rbs', line 1521

def geometry
  @geometry
end

#levelOcrElementLevel?

Returns the value of attribute level.

Returns:



1523
1524
1525
# File 'sig/types.rbs', line 1523

def level
  @level
end

#page_numberInteger?

Returns the value of attribute page_number.

Returns:

  • (Integer, nil)


1525
1526
1527
# File 'sig/types.rbs', line 1525

def page_number
  @page_number
end

#parent_idString?

Returns the value of attribute parent_id.

Returns:

  • (String, nil)


1526
1527
1528
# File 'sig/types.rbs', line 1526

def parent_id
  @parent_id
end

#rotationOcrRotation?

Returns the value of attribute rotation.

Returns:



1524
1525
1526
# File 'sig/types.rbs', line 1524

def rotation
  @rotation
end

#textString?

Returns the value of attribute text.

Returns:

  • (String, nil)


1520
1521
1522
# File 'sig/types.rbs', line 1520

def text
  @text
end