/** constructor */ private OCR() { String text = libVer(); classInitNative(); initializeNativeDataNative(); mConfig.m_asLanguages = getLanguagesNative(); // this should be called at the beginning, // such a way nobody calls without a valid language // if not called, the recognizeNative will not work Log.v( TAG, "OCR Initialize() done - libver " + text + " no-langs-installed=" + mConfig.m_asLanguages.length); }
/** read the available OCR languages in the local vector */ public static void ReadAvailableLanguages() { mConfig.m_asLanguages = getLanguagesNative(); }