mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 19:20:28 +08:00
OpenCV Manager documentation updated.
Diagram rendering script updated.
This commit is contained in:
parent
4b808b1199
commit
9ab19691d4
@ -29,3 +29,10 @@ void cancel()
|
|||||||
.. method:: void cancel()
|
.. method:: void cancel()
|
||||||
|
|
||||||
Installation if package has been canceled.
|
Installation if package has been canceled.
|
||||||
|
|
||||||
|
void wait_install()
|
||||||
|
-------------------
|
||||||
|
|
||||||
|
.. method:: void wait_install()
|
||||||
|
|
||||||
|
Wait for package installation.
|
||||||
|
@ -24,7 +24,7 @@ First OpenCV app\:
|
|||||||
#. Any OpenCV-dependent app is installed from Google Play marketplace or manually;
|
#. Any OpenCV-dependent app is installed from Google Play marketplace or manually;
|
||||||
#. At the first launch, it suggests installing OpenCV Manager;
|
#. At the first launch, it suggests installing OpenCV Manager;
|
||||||
#. Then OpenCV Manager is downloaded and installed, using Google Play marketplace service.
|
#. Then OpenCV Manager is downloaded and installed, using Google Play marketplace service.
|
||||||
#. When started, the application suggests installing OpenCV library for the target device trough Google Play marketplace;
|
#. When Manager has ben started, the application suggests installing OpenCV library for the target device trough Google Play marketplace if it is necessary;
|
||||||
#. After installation is finished, the app may be launched to perform common tasks.
|
#. After installation is finished, the app may be launched to perform common tasks.
|
||||||
|
|
||||||
Next OpenCV app\:
|
Next OpenCV app\:
|
||||||
|
Binary file not shown.
@ -30,11 +30,7 @@ Initialization status constants
|
|||||||
|
|
||||||
.. data:: SUCCESS
|
.. data:: SUCCESS
|
||||||
|
|
||||||
OpenCV initialization finished successfully.
|
OpenCV initialization finished successfully
|
||||||
|
|
||||||
.. data:: RESTART_REQUIRED
|
|
||||||
|
|
||||||
OpenCV library installation via Google Play service was initialized. Application restart is required
|
|
||||||
|
|
||||||
.. data:: MARKET_ERROR
|
.. data:: MARKET_ERROR
|
||||||
|
|
||||||
|
Binary file not shown.
@ -1,5 +1,5 @@
|
|||||||
*******************************************
|
*******************************************
|
||||||
Engine use Cases
|
Manager Workflow
|
||||||
*******************************************
|
*******************************************
|
||||||
|
|
||||||
First application start
|
First application start
|
||||||
@ -9,10 +9,10 @@ There is no OpenCV Manager or OpenCV libraries:
|
|||||||
|
|
||||||
.. image:: img/NoService.png
|
.. image:: img/NoService.png
|
||||||
|
|
||||||
Second application start
|
Aditional library package installation
|
||||||
------------------------
|
--------------------------------------
|
||||||
|
|
||||||
There is an OpenCV Manager service, but there is no OpenCV library.
|
There is an OpenCV Manager service, but there is no apropriate OpenCV library.
|
||||||
If OpenCV library installation has been approved\:
|
If OpenCV library installation has been approved\:
|
||||||
|
|
||||||
.. image:: img/LibInstallAproved.png
|
.. image:: img/LibInstallAproved.png
|
||||||
|
2
android/service/doc/build_uml.py
Normal file → Executable file
2
android/service/doc/build_uml.py
Normal file → Executable file
@ -20,4 +20,4 @@ if (not os.path.exists(TARGET_PATH)):
|
|||||||
|
|
||||||
for filename in os.listdir("."):
|
for filename in os.listdir("."):
|
||||||
if ("dia" == filename[-3:]):
|
if ("dia" == filename[-3:]):
|
||||||
os.system("%s --export %s %s" % (DiaPath, os.path.join(TARGET_PATH, filename + ".png"), filename))
|
os.system("%s --export %s %s" % (DiaPath, os.path.join(TARGET_PATH, filename[0:len(filename)-4] + ".png"), filename))
|
Binary file not shown.
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 41 KiB |
Binary file not shown.
Before Width: | Height: | Size: 32 KiB |
Binary file not shown.
Before Width: | Height: | Size: 28 KiB |
Binary file not shown.
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 29 KiB |
@ -54,13 +54,19 @@ Using async initialization is a **recommended** way for application development.
|
|||||||
:alt: Add dependency from OpenCV library
|
:alt: Add dependency from OpenCV library
|
||||||
:align: center
|
:align: center
|
||||||
|
|
||||||
To run OpenCV Manager-based application the first time you need to install packages with the `OpenCV Manager` and `OpenCV binary pack` for you platform.
|
To run OpenCV Manager-based application for the first time you need to install package with the `OpenCV Manager` for your platform. Armeabi, Armeabi-v7a with NEON, x86 and MIPS achitectures supported.
|
||||||
You can do it using Google Play Market or manually with ``adb`` tool:
|
You can do it using Google Play Market or manually with ``adb`` tool:
|
||||||
|
|
||||||
.. code-block:: sh
|
.. code-block:: sh
|
||||||
:linenos:
|
:linenos:
|
||||||
|
|
||||||
<Android SDK path>/platform-tools/adb install <OpenCV4Android SDK path>/apk/OpenCV_2.4.2_Manager.apk
|
<Android SDK path>/platform-tools/adb install <OpenCV4Android SDK path>/apk/OpenCV_2.4.2_Manager.apk
|
||||||
|
|
||||||
|
For rare cases if NEON instruction set is not supported you need to install aditional OpenCV Library package:
|
||||||
|
|
||||||
|
.. code-block:: sh
|
||||||
|
:linenos:
|
||||||
|
|
||||||
<Android SDK path>/platform-tools/adb install <OpenCV4Android SDK path>/apk/OpenCV_2.4.2_binary_pack_armv7a.apk
|
<Android SDK path>/platform-tools/adb install <OpenCV4Android SDK path>/apk/OpenCV_2.4.2_binary_pack_armv7a.apk
|
||||||
|
|
||||||
There is a very base code snippet implementing the async initialization. It shows basic principles. See the "15-puzzle" OpenCV sample for details.
|
There is a very base code snippet implementing the async initialization. It shows basic principles. See the "15-puzzle" OpenCV sample for details.
|
||||||
@ -89,12 +95,12 @@ There is a very base code snippet implementing the async initialization. It show
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Called when the activity is first created. */
|
/** Call on every application resume **/
|
||||||
@Override
|
@Override
|
||||||
public void onCreate(Bundle savedInstanceState)
|
protected void onResume()
|
||||||
{
|
{
|
||||||
Log.i(TAG, "onCreate");
|
Log.i(TAG, "called onResume");
|
||||||
super.onCreate(savedInstanceState);
|
super.onResume();
|
||||||
|
|
||||||
Log.i(TAG, "Trying to load OpenCV library");
|
Log.i(TAG, "Trying to load OpenCV library");
|
||||||
if (!OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_2, this, mOpenCVCallBack))
|
if (!OpenCVLoader.initAsync(OpenCVLoader.OPENCV_VERSION_2_4_2, this, mOpenCVCallBack))
|
||||||
@ -103,9 +109,6 @@ There is a very base code snippet implementing the async initialization. It show
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ...
|
|
||||||
}
|
|
||||||
|
|
||||||
It this case application works with OpenCV Manager in asynchronous fashion. ``OnManagerConnected`` callback will be called in UI thread, when initialization finishes.
|
It this case application works with OpenCV Manager in asynchronous fashion. ``OnManagerConnected`` callback will be called in UI thread, when initialization finishes.
|
||||||
Please note, that it is not allowed to use OpenCV calls or load OpenCV-dependent native libs before invoking this callback.
|
Please note, that it is not allowed to use OpenCV calls or load OpenCV-dependent native libs before invoking this callback.
|
||||||
Load your own native libraries that depend on OpenCV after the successful OpenCV initialization.
|
Load your own native libraries that depend on OpenCV after the successful OpenCV initialization.
|
||||||
|
Loading…
Reference in New Issue
Block a user