public interface ILanguage
This interface represents recognition language.
Instance of this can be construct only in LanguageFactory
.
OcrEngine ocr = new OcrEngine(); ocr.getLanguageContainer().addLanguage(LanguageFactory.load("englishresources.zip"));
Modifier and Type | Method and Description |
---|---|
void |
addWord(String word)
Adds the word to the dictionary.
|
String |
getAlphabet()
Gets the alphabet of the language.
|
String[] |
getCharsByClass()
Returns all chars ordered by theirs classes: ba dg sa ss
|
String |
getClassName(char ch)
Returns name of the class input character refers to.
|
String |
getName()
Gets the name of the language.
|
void |
save()
Saves changes.
|
void addWord(String word)
word
- The word to add.String getAlphabet()
String[] getCharsByClass()
String getClassName(char ch)
ch
- The input character.String getName()
void save()