Class OCRResult

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

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

    • OCRResult Link icon

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

    • getConfidence Link icon

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

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

      public String toString()
      Overrides:
      toString in class Object