public class RecognitionResult extends Object
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).
|
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.
|
Modifier and Type | Method and Description |
---|---|
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 String recognitionText
public ArrayList<Rectangle> recognitionAreasRectangles
public double skew
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()
Copyright © 2021 Aspose. All rights reserved.