public class OcrResult
extends java.lang.Object
String
and optional sandwiched pdf file| Modifier and Type | Field and Description |
|---|---|
java.util.List<OcrResultBlock> |
lines
The
List of OcrResultBlock objects containing all blocks of type OcrResultBlock.OcrResultBlockType.LINE. |
java.util.List<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<OcrResultBlock> |
words
The
List of OcrResultBlock objects containing all blocks of type OcrResultBlock.OcrResultBlockType.WORD. |
| Constructor and Description |
|---|
OcrResult(java.lang.String recognizedText,
Document sandwichedPdfDocument,
java.io.File sandwichedPdfDocumentFile,
java.util.List<OcrResultBlock> paragraphs,
java.util.List<OcrResultBlock> lines,
java.util.List<OcrResultBlock> words) |
public final java.lang.String recognizedText
Stringpublic final Document sandwichedPdfDocument
Document (can be null)public final java.io.File sandwichedPdfDocumentFile
Document file (can be null)public final java.util.List<OcrResultBlock> paragraphs
List of OcrResultBlock objects containing all blocks of type OcrResultBlock.OcrResultBlockType.PARAGRAPH.public final java.util.List<OcrResultBlock> lines
List of OcrResultBlock objects containing all blocks of type OcrResultBlock.OcrResultBlockType.LINE.public final java.util.List<OcrResultBlock> words
List of OcrResultBlock objects containing all blocks of type OcrResultBlock.OcrResultBlockType.WORD.public OcrResult(java.lang.String recognizedText,
Document sandwichedPdfDocument,
java.io.File sandwichedPdfDocumentFile,
java.util.List<OcrResultBlock> paragraphs,
java.util.List<OcrResultBlock> lines,
java.util.List<OcrResultBlock> words)