public class OcrResult
Represents result of OCR-performing. Contains recognized text as a String and optional sandwiched pdf file
| Modifier and Type | Field and Description |
|---|---|
java.util.List<net.doo.snap.process.OcrResultBlock> |
lines
The List of OcrResultBlock objects containing all blocks of type
OcrResultBlock.OcrResultBlockType#LINE. |
java.util.List<net.doo.snap.process.OcrResultBlock> |
paragraphs
The List of OcrResultBlock objects containing all blocks of type
OcrResultBlock.OcrResultBlockType#PARAGRAPH. |
java.lang.String |
recognizedText
Recognized text as a String
|
Document |
sandwichedPdfDocument
Optional sandwiched pdf Document (can be
null) |
java.io.File |
sandwichedPdfDocumentFile
Optional sandwiched pdf Document file (can be
null) |
java.util.List<net.doo.snap.process.OcrResultBlock> |
words
The List of OcrResultBlock objects containing all blocks of type
OcrResultBlock.OcrResultBlockType#WORD. |
| Constructor and Description |
|---|
OcrResult() |
public java.lang.String recognizedText
Recognized text as a String
public Document sandwichedPdfDocument
Optional sandwiched pdf Document (can be null)
public java.io.File sandwichedPdfDocumentFile
Optional sandwiched pdf Document file (can be null)
public java.util.List<net.doo.snap.process.OcrResultBlock> paragraphs
The List of OcrResultBlock objects containing all blocks of type OcrResultBlock.OcrResultBlockType#PARAGRAPH.
public java.util.List<net.doo.snap.process.OcrResultBlock> lines
The List of OcrResultBlock objects containing all blocks of type OcrResultBlock.OcrResultBlockType#LINE.
public java.util.List<net.doo.snap.process.OcrResultBlock> words
The List of OcrResultBlock objects containing all blocks of type OcrResultBlock.OcrResultBlockType#WORD.