Package net.sourceforge.lept4j.util
Class LoadLibs
java.lang.Object
net.sourceforge.lept4j.util.LoadLibs
Loads native libraries from JAR or project folder.
- Author:
- O.J. Sousa Rodrigues, Quan Nguyen
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic File
extractNativeResources(String dirname)
Extracts Leptonica resources to temp folder.static Leptonica
Loads Leptonica library via JNA.static String
Gets native library name.
-
Field Details
-
LEPT4J_TEMP_DIR
-
LIB_NAME
Native library name.- See Also:
- Constant Field Values
-
LIB_NAME_NON_WIN
- See Also:
- Constant Field Values
-
-
Constructor Details
-
LoadLibs
public LoadLibs()
-
-
Method Details
-
getLeptonicaInstance
Loads Leptonica library via JNA.- Returns:
- Leptonica instance being loaded using
Native.loadLibrary()
.
-
getLeptonicaLibName
Gets native library name.- Returns:
- the name of the Leptonica library to be loaded using the
Native.register()
.
-
extractNativeResources
Extracts Leptonica resources to temp folder.- Parameters:
dirname
- resource location- Returns:
- target location
-