Example #1
0
  /** 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);
  }
Example #2
0
 /** read the available OCR languages in the local vector */
 public static void ReadAvailableLanguages() {
   mConfig.m_asLanguages = getLanguagesNative();
 }