com.aspose.ocr

Interface ILanguage



  • 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"));
     
    • Method Detail

      • addWord

        void addWord(String word)
        Adds the word to the dictionary.
        Parameters:
        word - The word to add.
      • getAlphabet

        String getAlphabet()
        Gets the alphabet of the language.
      • getCharsByClass

        String[] getCharsByClass()
        Returns all chars ordered by theirs classes: ba dg sa ss
        Returns:
        All chars ordered by theirs classes: ba dg sa ss
      • getClassName

        String getClassName(char ch)
        Returns name of the class input character refers to. For example letter "x" is small_letter
        Parameters:
        ch - The input character.
        Returns:
        The character class name.
      • getName

        String getName()
        Gets the name of the language.
      • save

        void save()
        Saves changes.