public class OpenCV extends Object
| Constructor and Description |
|---|
OpenCV() |
| Modifier and Type | Method and Description |
|---|---|
static void |
loadLocally()
Exactly once per
ClassLoader, extract the native binary from the classpath to a temporary location (which gets cleaned up on shutdown), and load that binary (via System.load(String)). |
static void |
loadShared()
Exactly once per
ClassLoader, attempt to load the native library (via System.loadLibrary(String) with Core.NATIVE_LIBRARY_NAME). |
public static void loadShared()
ClassLoader, attempt to load the native library (via System.loadLibrary(String) with Core.NATIVE_LIBRARY_NAME). If the first attempt fails, the native binary will be extracted from the classpath to a temporary location (which gets cleaned up on shutdown), that location is added to the java.library.path system property and ClassLoader.usr_paths, and then another call to load the library is made. Note this method uses reflection to gain access to private memory in ClassLoader as there's no documented method to augment the library path at runtime. Spurious calls are safe.public static void loadLocally()
ClassLoader, extract the native binary from the classpath to a temporary location (which gets cleaned up on shutdown), and load that binary (via System.load(String)). Spurious calls are safe.Copyright © 2020. All rights reserved.