public class LoadLibs
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LIB_NAME
Native library name.
|
static java.lang.String |
LIB_NAME_NON_WIN |
static java.lang.String |
TESS4J_TEMP_DIR |
Constructor and Description |
---|
LoadLibs() |
Modifier and Type | Method and Description |
---|---|
static java.io.File |
extractTessResources(java.lang.String resourceName)
Extracts tesseract resources to temp folder.
|
static TessAPI |
getTessAPIInstance()
Loads Tesseract library via JNA.
|
static java.lang.String |
getTesseractLibName()
Gets native library name.
|
public static final java.lang.String TESS4J_TEMP_DIR
public static final java.lang.String LIB_NAME
public static final java.lang.String LIB_NAME_NON_WIN
public static TessAPI getTessAPIInstance()
Native.loadLibrary()
.public static java.lang.String getTesseractLibName()
Native.register()
.public static java.io.File extractTessResources(java.lang.String resourceName)
resourceName
- name of file or directory