OpenCV 2.4.3 (RC)

org.opencv.android
Class OpenCVLoader

java.lang.Object
  extended by org.opencv.android.OpenCVLoader

public class OpenCVLoader
extends java.lang.Object

Helper class provides common initialization methods for OpenCV library.


Field Summary
static java.lang.String OPENCV_VERSION_2_4_2
          OpenCV Library version 2.4.2.
 
Constructor Summary
OpenCVLoader()
           
 
Method Summary
static boolean initAsync(java.lang.String Version, Context AppContext, LoaderCallbackInterface Callback)
          Loads and initializes OpenCV library using OpenCV Engine service.
static boolean initDebug()
          Loads and initializes OpenCV library from current application package.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPENCV_VERSION_2_4_2

public static final java.lang.String OPENCV_VERSION_2_4_2
OpenCV Library version 2.4.2.

See Also:
Constant Field Values
Constructor Detail

OpenCVLoader

public OpenCVLoader()
Method Detail

initAsync

public static boolean initAsync(java.lang.String Version,
                                Context AppContext,
                                LoaderCallbackInterface Callback)
Loads and initializes OpenCV library using OpenCV Engine service.

Parameters:
Version - OpenCV library version.
AppContext - application context for connecting to the service.
Callback - object, that implements LoaderCallbackInterface for handling the connection status.

initDebug

public static boolean initDebug()
Loads and initializes OpenCV library from current application package. Roughly, it's an analog of system.loadLibrary("opencv_java").

Returns:
Returns true is initialization of OpenCV was successful.

Official OpenCV 2.4 Documentation