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 Link icon

    • Word Link icon

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

    • getText Link icon

      public String getText()
      Returns:
      the text
    • getConfidence Link icon

      public float getConfidence()
      Returns:
      the confidence
    • getBoundingBox Link icon

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

      public String toString()
      Overrides:
      toString in class Object