Package net.sourceforge.tess4j.util
Class LoadLibs
java.lang.Object
net.sourceforge.tess4j.util.LoadLibs
Loads native libraries from JAR or project folder.
- Author:
- O.J. Sousa Rodrigues, Quan Nguyen, itsura
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic File
extractTessResources
(String resourceName) Extracts tesseract resources to temp folder.static TessAPI
Loads Tesseract library via JNA.static String
Gets native library name.
-
Field Details
-
TESS4J_TEMP_DIR
-
LIB_NAME
Native library name.- See Also:
-
LIB_NAME_NON_WIN
- See Also:
-
-
Constructor Details
-
LoadLibs
public LoadLibs()
-
-
Method Details
-
getTessAPIInstance
Loads Tesseract library via JNA.- Returns:
- TessAPI instance being loaded using
Native.loadLibrary()
.
-
getTesseractLibName
Gets native library name.- Returns:
- the name of the tesseract library to be loaded using the
Native.register()
.
-
extractTessResources
Extracts tesseract resources to temp folder.- Parameters:
resourceName
- name of file or directory- Returns:
- target path, which could be file or directory
-