public interface ILanguage
This interface represents recognition language.
Instance of this can be construct only in Language factory.
OcrEngine ocr = new OcrEngine(); ocr.getLanguages().addLanguage(Language.load("english")); ocr.getLanguages().addLanguage(Language.load("spain"));
| Modifier and Type | Method and Description |
|---|---|
void |
addWord(String word)
Adds the word to the dictionary.
|
String |
getAlphabet()
Gets the alphabet.
|
String[] |
getCharsByClass()
Returns all chars ordered by theirs classes: ba dg sa ss
|
String |
getClassName(char ch)
Returns name of the class input character is refers to.
|
String |
getLanguage()
Gets the name of 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 getLanguage()
void save()
Copyright © 2014. All rights reserved.