Class 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Word

        public Word​(java.lang.String text,
                    float confidence,
                    java.awt.Rectangle boundingBox)
        Constructor.
        Parameters:
        text -
        confidence -
        boundingBox -
    • 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 class java.lang.Object