public class RecognitionResult extends Object
Modifier and Type | Class and Description |
---|---|
class |
RecognitionResult.LinesResult |
Modifier and Type | Field and Description |
---|---|
ArrayList<Rectangle> |
recognitionAreasRectangles
List recognition results of a list of areas (Rectangles).
|
ArrayList<String> |
recognitionAreasText
List recognition results of a list of areas (Rectangles).
|
ArrayList<char[]> |
recognitionCharactersList
A set of characters found by the recognition algorithm and arranged in descending order of probability.
|
ArrayList<RecognitionResult.LinesResult> |
recognitionLinesResult
Gets a list of recognition results with a list of rows (Rectangles).
|
String |
recognitionText
Recognition result of all page or one area.
|
double |
skew
List recognition results of a list of areas (Rectangles).
|
ArrayList<String> |
warnings
Gets or sets list of the warnings messages describing non-critical faults
appeared during generation.
|
Constructor and Description |
---|
RecognitionResult()
Initializes a new instance of the
|
Modifier and Type | Method and Description |
---|---|
RecognitionResult |
add(RecognitionResult other) |
String |
GetJson()
Form JSON string with recognition results.
|
String |
getSpellCheckCorrectedText()
Corrects text (replaces misspelled words).
|
String |
getSpellCheckCorrectedText(SpellCheckLanguage language)
Corrects text (replaces misspelled words).
|
List<SpellCheckError> |
getSpellCheckErrorList()
Find the misspelled words with suggested spellings for a given input text.
|
List<SpellCheckError> |
getSpellCheckErrorList(SpellCheckLanguage language)
Find the misspelled words with suggested spellings for a given input text.
|
void |
save(String fullFileName)
Saves the document in the plain text
|
void |
save(String fullFileName,
Format format)
Saves the document in the plain text or Microsoft Word
Text Document format.
|
void |
saveSpellCheckCorrectedText(String fullFileName,
Format format)
Saves the corrected text in the document in the plain text or Microsoft Word
Text Document format.
|
void |
saveSpellCheckCorrectedText(String fullFileName,
Format format,
SpellCheckLanguage language)
Saves the corrected text in the document in the plain text or Microsoft Word
Text Document format.
|
public ArrayList<String> recognitionAreasText
public ArrayList<RecognitionResult.LinesResult> recognitionLinesResult
public String recognitionText
public ArrayList<Rectangle> recognitionAreasRectangles
public ArrayList<char[]> recognitionCharactersList
public double skew
public RecognitionResult()
class.
public String GetJson()
public void save(String fullFileName)
fullFileName
- Filename with a path for saving recognition resultpublic void save(String fullFileName, Format format)
fullFileName
- Filename with a path for saving recognition resultformat
- Document format enum type of Format.public void saveSpellCheckCorrectedText(String fullFileName, Format format, SpellCheckLanguage language)
fullFileName
- Filename with a path for saving recognition resultformat
- Document format enum type of Format.language
- Dictionary for spell checkpublic void saveSpellCheckCorrectedText(String fullFileName, Format format)
fullFileName
- Filename with a path for saving recognition resultformat
- Document format enum type of Format.public String getSpellCheckCorrectedText(SpellCheckLanguage language)
language
- Dictionary to use.public String getSpellCheckCorrectedText()
public List<SpellCheckError> getSpellCheckErrorList(SpellCheckLanguage language)
language
- Dictionary to use.public List<SpellCheckError> getSpellCheckErrorList()
public RecognitionResult add(RecognitionResult other)
Copyright © 2021 Aspose. All rights reserved.