Package net.sourceforge.tess4j
Class OCRResult
- java.lang.Object
 - 
- net.sourceforge.tess4j.OCRResult
 
 
- 
public class OCRResult extends java.lang.ObjectEncapsulates Tesseract OCR results at file level. 
- 
- 
Method Summary
Modifier and Type Method Description intgetConfidence()java.util.List<Word>getWords()java.lang.StringtoString() 
 - 
 
- 
- 
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:
 toStringin classjava.lang.Object
 
 - 
 
 -