Class Word

java.lang.Object
net.sourceforge.tess4j.Word

public class Word extends Object
Encapsulates Tesseract OCR results at certain page iterator level.
  • Constructor Details

    • Word

      public Word(String text, float confidence, Rectangle boundingBox)
      Constructor.
      Parameters:
      text -
      confidence -
      boundingBox -
  • Method Details

    • getText

      public String getText()
      Returns:
      the text
    • getConfidence

      public float getConfidence()
      Returns:
      the confidence
    • getBoundingBox

      public Rectangle getBoundingBox()
      Returns:
      the bounding box
    • toString

      public String toString()
      Overrides:
      toString in class Object