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

  • Constructor Details

    • LoadLibs

      public LoadLibs()
  • Method Details

    • getTessAPIInstance

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

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

      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