Package net.sourceforge.tess4j
Class OCRResult
- java.lang.Object
-
- net.sourceforge.tess4j.OCRResult
-
public class OCRResult extends java.lang.Object
Encapsulates Tesseract OCR results at file level.
-
-
Method Summary
Modifier and Type Method Description int
getConfidence()
java.util.List<Word>
getWords()
java.lang.String
toString()
-
-
-
Constructor Detail
-
OCRResult
public OCRResult(int confidence, java.util.List<Word> words)
Constructor.- Parameters:
confidence
- average text confidencewords
- 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 classjava.lang.Object
-
-