Class LoadLibs

java.lang.Object
net.sourceforge.tess4j.util.LoadLibs

public class LoadLibs extends Object
Loads native libraries from JAR or project folder.
Author:
O.J. Sousa Rodrigues, Quan Nguyen, itsura
  • Field Details Link icon

  • Constructor Details Link icon

    • LoadLibs Link icon

      public LoadLibs()
  • Method Details Link icon

    • getTessAPIInstance Link icon

      public static TessAPI getTessAPIInstance()
      Loads Tesseract library via JNA.
      Returns:
      TessAPI instance being loaded using Native.loadLibrary().
    • getTesseractLibName Link icon

      public static String getTesseractLibName()
      Gets native library name.
      Returns:
      the name of the tesseract library to be loaded using the Native.register().
    • extractTessResources Link icon

      public static File extractTessResources(String resourceName)
      Extracts tesseract resources to temp folder.
      Parameters:
      resourceName - name of file or directory
      Returns:
      target path, which could be file or directory