@ -186,6 +186,8 @@ Import OpenCV library and samples to the Eclipse
Each sample included into the |opencv_android_bin_pack| is a regular Android project that already
Each sample included into the |opencv_android_bin_pack| is a regular Android project that already
references OpenCV library.Follow the steps below to import OpenCV and samples into the workspace:
references OpenCV library.Follow the steps below to import OpenCV and samples into the workspace:
..note:: OpenCV samples are indeed **dependent** on OpenCV library and wouldn't work without it.
* Right click on the :guilabel:`Package Explorer` window and choose :guilabel:`Import...` option
* Right click on the :guilabel:`Package Explorer` window and choose :guilabel:`Import...` option
from the context menu:
from the context menu:
@ -213,7 +215,7 @@ Import OpenCV library and samples to the Eclipse
and you have to wait some time while it is building OpenCV samples. Just give a minute to
and you have to wait some time while it is building OpenCV samples. Just give a minute to
Eclipse to complete initialization.
Eclipse to complete initialization.
.. note :: After the initial import, on a non-Windows (Linux and Mac OS) operating system Eclipse
.. warning :: After the initial import, on a non-Windows (Linux and Mac OS) operating system Eclipse
will still show build errors for applications with native C++ code. To resolve the
will still show build errors for applications with native C++ code. To resolve the
issues, please do the following:
issues, please do the following:
@ -235,14 +237,14 @@ Import OpenCV library and samples to the Eclipse
Running OpenCV Samples
Running OpenCV Samples
----------------------
----------------------
At this point you should be able to build and run the samples. Keep in mind, that ``face-detection``,
At this point you should be able to build and run the samples. Keep in mind, that
``Tutorial 3`` and ``Tutorial 4`` include some native code and require Android NDK and CDT plugin
``face-detection``, ``Tutorial 3`, ``Tutorial 4`` and ``Tutorial 5`` include some native code and
for Eclipse to build working applications. If you haven't installed these tools see the corresponding
require Android NDK and CDT plugin for Eclipse to build working applications. If you haven't
section of :ref:`Android_Dev_Intro`.
installed these tools, see the corresponding section of :ref:`Android_Dev_Intro`.
Also, please consider that ``Tutorial 0`` and``Tutorial 1`` samples use Java Camera API that
..warning:: Please consider that``Tutorial 1`` samples use Java Camera API, which is accessible
definitelly accessible on emulator from the Android SDK.
with an AVD. Other samples use OpenCV Native Camera which **may not work** with
Other samples use OpenCV Native Camera which may not work with emulator.
an emulator.
..note:: Recent *Android SDK tools, revision 19+* can run ARM v7a OS images but they available not
..note:: Recent *Android SDK tools, revision 19+* can run ARM v7a OS images but they available not
for all Android versions.
for all Android versions.
@ -282,6 +284,41 @@ Well, running samples from Eclipse is very simple:
If you have no access to the *Market*, which is often the case with emulators - you will need to install the packages from OpenCV4Android SDK folder manually. See :ref:`manager_selection` for details.
If you have no access to the *Market*, which is often the case with emulators - you will need to install the packages from OpenCV4Android SDK folder manually. See :ref:`manager_selection` for details.