Aspose.OCR for Python via Java API docs
|
The results of the image recognition. More...
Public Member Functions | |
__init__ (self, javaClass) | |
get_json (self) | |
Form JSON string with recognition results. | |
str | get_spell_check_corrected_text (self, SpellCheckLanguage language) |
Corrects text (replaces misspelled words). | |
get_spell_check_error_list (self, SpellCheckLanguage language=SpellCheckLanguage.ENG) | |
Find the misspelled words with suggested spellings for a given input text. | |
get_xml (self) | |
Form JSON string with recognition results. | |
getJavaClass (self) | |
init (self) | |
save (self, str fullFileName, Format format) | |
Saves the document in the plain text or other document format. | |
save_spell_check_corrected_text (self, str fullFileName, Format format, SpellCheckLanguage language=SpellCheckLanguage.ENG) | |
Corrects text (replaces misspelled words). | |
use_user_dictionary (self, str dictionaryPath) | |
Allows to use own dictionary for spell-check correction. | |
Static Public Member Functions | |
save_multipage_document (self, str fullPath) | |
Private. | |
Public Attributes | |
recognition_areas_rectangles | |
recognition_areas_text | |
recognition_characters_list | |
recognition_lines_result | |
recognition_text | |
skew | |
warnings | |
The results of the image recognition.
Contains elements with recognition information and methods for result export.
__init__ | ( | self, | |
javaClass | |||
) |
get_json | ( | self | ) |
Form JSON string with recognition results.
str get_spell_check_corrected_text | ( | self, | |
SpellCheckLanguage | language | ||
) |
Corrects text (replaces misspelled words).
language | Dictionary to use. |
get_spell_check_error_list | ( | self, | |
SpellCheckLanguage | language = SpellCheckLanguage.ENG |
||
) |
Find the misspelled words with suggested spellings for a given input text.
language | Dictionary to use. |
get_xml | ( | self | ) |
Form JSON string with recognition results.
getJavaClass | ( | self | ) |
init | ( | self | ) |
save | ( | self, | |
str | fullFileName, | ||
Format | format | ||
) |
Saves the document in the plain text or other document format.
fullFileName | Filename with a path for saving recognition result. |
format | Document format enum type of Format. |
|
static |
Private.
save_spell_check_corrected_text | ( | self, | |
str | fullFileName, | ||
Format | format, | ||
SpellCheckLanguage | language = SpellCheckLanguage.ENG |
||
) |
Corrects text (replaces misspelled words).
Saves the corrected text in the document in the plain text or other format.
fullFileName | Filename with a path for saving recognition result |
format | Document format enum type of Format. |
language | Dictionary for spell check. |
use_user_dictionary | ( | self, | |
str | dictionaryPath | ||
) |
Allows to use own dictionary for spell-check correction.
dictionaryPath | Full path to the user dictionary (frequency dictionary). Dictionary file format: Plain text file in UTF-8 encoding. Word and Word Frequency are separated by comma, the word is expected in the first column and the frequency in the second column. Every word-frequency-pair in a separate line.A line is defined as a sequence of characters followed by a line feed ("\n"), a carriage return ("\r"), or a carriage return immediately followed by a line feed("\r\n"). Every word is expected to be in lower case. Example: word,5984819
hello,5761742
down,5582768
|
recognition_areas_rectangles |
recognition_areas_text |
recognition_characters_list |
recognition_lines_result |
recognition_text |
skew |
warnings |