Class OCRResult


  • public class OCRResult
    extends java.lang.Object
    Encapsulates Tesseract OCR results at file level.
    • Constructor Summary

      Constructors 
      Constructor Description
      OCRResult​(int confidence, java.util.List<Word> words)
      Constructor.
    • Method Summary

      Modifier and Type Method Description
      int getConfidence()  
      java.util.List<Word> getWords()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • OCRResult

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

      • getConfidence

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object