Package net.sourceforge.tess4j
Class Word
- java.lang.Object
-
- net.sourceforge.tess4j.Word
-
public class Word extends java.lang.Object
Encapsulates Tesseract OCR results at certain page iterator level.
-
-
Constructor Summary
Constructors Constructor Description Word(java.lang.String text, float confidence, java.awt.Rectangle boundingBox)
Constructor.
-
Method Summary
Modifier and Type Method Description java.awt.Rectangle
getBoundingBox()
float
getConfidence()
java.lang.String
getText()
java.lang.String
toString()
-
-
-
Method Detail
-
getText
public java.lang.String getText()
- Returns:
- the text
-
getConfidence
public float getConfidence()
- Returns:
- the confidence
-
getBoundingBox
public java.awt.Rectangle getBoundingBox()
- Returns:
- the bounding box
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-