If the Auto Monitor Logcat window appears,
select the Yes radio button and the verbose drop-down option, and
click on OK. This option ensures that all the log output from the
application will be visible in Eclipse.
Setting
Up OpenCV [
28
] On the
Android device you might get a message: OpenCV library package was not
found! Try to install it? Make sure the device is connected to the Internet
and then touch the Yes button on your device. The Play Store will open
to show an OpenCV package. Install the package and then press the hardware back
button to return to the sample application, which should be ready for use.
For OpenCV 2.4.3.2, the
samples and tutorials have the following functionality:
Sample – 15
puzzle: It splits up a camera feed to
make a sliding-block puzzle. The user may swipe blocks to move them.
Sample –
color-blob-detection: It detects
color regions in a camera feed. The user may touch anywhere to see the outline
of a color region.
Sample –
face-detection: It draws green
rectangles around faces in a camera feed.
Sample –
image-manipulations: It applies
filters to a camera feed. The user may press the Android menu button to select
from a list of filters.
Tutorial 1 –
Add OpenCV: It displays a camera
feed. The user may press the … menu to select a different camera feed
implementation (Java or native C++).
Tutorial 2 –
Use OpenCV Camera: It applies filters
to a camera feed. The user may press the … menu to select from a list of
filters.
Tutorial 3 –
Add Native OpenCV: It draws red
circles around interest points or features in a camera feed. Generally
speaking, interest points or features lie along the high-contrast edges in an
image. They are potentially useful in image recognition and tracking
applications.
Tutorial 4 –
Mix Java+Native OpenCV: It combines
the functionality of Tutorial 2 and Tutorial 3. The user may press the … menu
to select from a list of filters and a preview of interest points.
Tutorial 5 –
Camera Control: It applies filters to
a camera feed, which has a customizable resolution. The user may press the …
menu to select from a list of filters and a list of resolutions.
Try these applications on your Android device!
While an application is running, its log output should appear in the LogCat tab
in Eclipse.
Feel free to browse the projects' source code via Package
Explorer, to see how they were made. Alternatively, you might want to
return to the official samples and tutorials later, after we have built our own
project over the course of this book.
Finding documentation and help
The OpenCV Java API and C++
API are both relevant to Android. The Java API documentation is online at http://docs.opencv.org/java/. The C++ API documentation is online at http://docs.opencv.org/. The following documents, which mostly use C++
code, are also available as downloadable PDF files:
API reference: http://docs.opencv.org/opencv2refman.pdf
Tutorials: http://docs.opencv.org/opencv_tutorials.pdf
User guide (incomplete): http://docs.opencv.org/opencv_user.pdf
If the documentation does not
seem to answer your question, try talking to the OpenCV community. Here are
some sites where you will find helpful people:
Official OpenCV forum: http://www.answers.opencv.org/questions/
Jay Rambhia's blog: http://jayrambhia.wordpress.com/
The support site for my OpenCV
books: http://nummist.com/opencv/
Also,
you can read or submit bug reports at http://code.opencv.org/projects/ opencv/issues?query_id=4. Finally, if you need to take
your issue to the highest authority, you can email the OpenCV4Android
developers at android@opencv.org.
Summary
By now, we should have an
Android and OpenCV development environment that can do everything we need for
the project described in this book. Depending on which approach we took, we
might also have a set of tools that we can use to reconfigure and rebuild
OpenCV for our future needs.
We know
how to build the OpenCV Android samples in Eclipse. These samples cover a
different range of functionality than this book's project, but they are useful
as additional learning aids. We also know where to find documentation and help.
Complete The Chapter-1
Thank You,See You Next
Post
Other Information visit: theit-mela.blogspot.com
No comments:
Post a Comment