2012-06-21 22:50:05 +08:00
|
|
|
******************
|
|
|
|
Java OpenCV Loader
|
|
|
|
******************
|
|
|
|
|
|
|
|
.. highlight:: java
|
|
|
|
.. Class:: OpenCVLoader
|
|
|
|
|
2012-09-14 15:10:53 +08:00
|
|
|
Helper class provides common initialization methods for OpenCV library.
|
2012-06-21 22:50:05 +08:00
|
|
|
|
|
|
|
boolean initDebug()
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. method:: static boolean initDebug()
|
2012-07-02 23:41:14 +08:00
|
|
|
|
2012-12-25 21:50:31 +08:00
|
|
|
Loads and initializes OpenCV library from within current application package. Roughly it is
|
|
|
|
analog of ``system.loadLibrary("opencv_java")``.
|
2012-06-21 22:50:05 +08:00
|
|
|
|
2012-09-14 15:10:53 +08:00
|
|
|
:rtype: boolean;
|
|
|
|
:return: returns true if initialization of OpenCV was successful.
|
2012-06-21 22:50:05 +08:00
|
|
|
|
2012-12-25 21:50:31 +08:00
|
|
|
.. note:: This method is deprecated for production code. It is designed for experimental and local
|
|
|
|
development purposes only. If you want to publish your app use approach with async
|
|
|
|
initialization.
|
2012-06-21 22:50:05 +08:00
|
|
|
|
|
|
|
boolean initAsync()
|
|
|
|
-------------------
|
|
|
|
|
|
|
|
.. method:: static boolean initAsync(String Version, Context AppContext, LoaderCallbackInterface Callback)
|
|
|
|
|
2012-12-25 21:50:31 +08:00
|
|
|
Loads and initializes OpenCV library using OpenCV Manager.
|
2012-06-21 22:50:05 +08:00
|
|
|
|
2012-09-14 15:10:53 +08:00
|
|
|
:param Version: OpenCV Library version.
|
|
|
|
:param AppContext: application context for connecting to the service.
|
2012-12-25 21:50:31 +08:00
|
|
|
:param Callback: object, that implements ``LoaderCallbackInterface`` for handling connection
|
|
|
|
status (see ``BaseLoaderCallback``).
|
2012-09-14 15:10:53 +08:00
|
|
|
|
|
|
|
:rtype: boolean;
|
|
|
|
:return: returns true if initialization of OpenCV starts successfully.
|
2012-06-21 22:50:05 +08:00
|
|
|
|
|
|
|
OpenCV version constants
|
|
|
|
-------------------------
|
|
|
|
|
|
|
|
.. data:: OPENCV_VERSION_2_4_2
|
|
|
|
|
|
|
|
OpenCV Library version 2.4.2
|
|
|
|
|
2012-10-23 23:49:00 +08:00
|
|
|
.. data:: OPENCV_VERSION_2_4_3
|
|
|
|
|
|
|
|
OpenCV Library version 2.4.3
|
2013-02-21 18:42:28 +08:00
|
|
|
|
|
|
|
.. data:: OPENCV_VERSION_2_4_4
|
|
|
|
|
|
|
|
OpenCV Library version 2.4.4
|
2013-04-04 19:50:36 +08:00
|
|
|
|
|
|
|
.. data:: OPENCV_VERSION_2_4_5
|
|
|
|
|
|
|
|
OpenCV Library version 2.4.5
|
2013-06-26 21:12:51 +08:00
|
|
|
|
|
|
|
.. data:: OPENCV_VERSION_2_4_6
|
|
|
|
|
|
|
|
OpenCV Library version 2.4.6
|
2013-11-01 19:22:34 +08:00
|
|
|
|
|
|
|
.. data:: OPENCV_VERSION_2_4_7
|
|
|
|
|
|
|
|
OpenCV Library version 2.4.7
|