Class OCRResult

java.lang.Object
net.sourceforge.tess4j.OCRResult

public class OCRResult extends Object
Encapsulates Tesseract OCR results at file level.
  • Constructor Details

    • OCRResult

      public OCRResult(int confidence, List<Word> words)
      Constructor.
      Parameters:
      confidence - average text confidence
      words - recognized words
  • Method Details

    • getConfidence

      public int getConfidence()
      Returns:
      the average text confidence
    • getWords

      public List<Word> getWords()
      Returns:
      the recognized words
    • toString

      public String toString()
      Overrides:
      toString in class Object