mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.6 KiB
54 lines
1.6 KiB
13 years ago
|
******************
|
||
|
Java OpenCV Loader
|
||
|
******************
|
||
|
|
||
|
.. highlight:: java
|
||
|
.. module:: org.opencv.android
|
||
|
:platform: Android
|
||
|
:synopsis: Implements Android dependent Java classes.
|
||
|
.. Class:: OpenCVLoader
|
||
|
|
||
|
Helper class provides common initialization methods for OpenCV library
|
||
|
|
||
|
boolean initDebug()
|
||
|
-------------------
|
||
|
|
||
|
.. method:: static boolean initDebug()
|
||
|
|
||
|
Load and initialize OpenCV library from current application package. Roughly it is analog of system.loadLibrary("opencv_java")
|
||
|
|
||
|
:rtype: boolean
|
||
|
:return: Return true if initialization of OpenCV was successful
|
||
|
|
||
|
.. note:: This way is deprecated for production code. It is designed for experimantal and local development purposes only. If you want to publish your app use approach with async initialization
|
||
|
|
||
|
boolean initAsync()
|
||
|
-------------------
|
||
|
|
||
|
.. method:: static boolean initAsync(String Version, Context AppContext, LoaderCallbackInterface Callback)
|
||
|
|
||
|
Load and initialize OpenCV library using OpenCV Manager service.
|
||
|
|
||
|
:param Version: OpenCV Library version
|
||
|
:param AppContext: Application context for connecting to service
|
||
|
:param Callback: Object, that implements LoaderCallbackInterface for handling Connection status. See BaseLoaderCallback.
|
||
|
:rtype: boolean
|
||
|
:return: Return true if initialization of OpenCV starts successfully
|
||
|
|
||
|
OpenCV version constants
|
||
|
-------------------------
|
||
|
|
||
|
.. data:: OPENCV_VERSION_2_4_0
|
||
|
|
||
|
OpenCV Library version 2.4.0
|
||
|
|
||
|
.. data:: OPENCV_VERSION_2_4_2
|
||
|
|
||
|
OpenCV Library version 2.4.2
|
||
|
|
||
|
Other constatnts
|
||
|
----------------
|
||
|
|
||
|
.. data:: OPEN_CV_SERVICE_URL
|
||
|
|
||
|
Url for OpenCV Manager on Google Play (Android Market)
|