Designing visionary mobile apps using Tegra Android Development PackEditor’s Note: In this Product How-To development article, Shalini Gupta explans how to use the NVIDIA’s Tegra Android Development Pack to develop embedded vision applications based on the open source OpenCV tool suite.
NVIDIA makes life easier for Android developers by providing all of the software tools needed to develop for Android on NVIDIA’s Tegra platform in a single easy-to-install TADP (Tegra Android Development Pack). The TADP is available for Windows, Mac OS X, Ubuntu Linux 32-bit and Ubuntu Linux 64-bit. It is targeted for Tegra devices, but will set up your development environment for any Android device.
You can obtain the TADP by registering on NVIDIA’s Developer Zone website and by applying for the Tegra Registered Developer Program. Once approved, typically within 48 hours, you’ll be able to access the TADP by logging into your NVIDIA Developer Zone account and by following the links to DEVELOPER CENTERS > Mobile > TEGRA ANDROID DEVELOPMENT PACK.
Every 1-2 months, Nvidia publishes incremental updates to the TADP containing newer versions of its components. Major updates are published about once a year. These updates may contain a completely restructured package with new components.
OpenCV for Tegra
Beginning with TADP 2.0, NVIDIA provides a software development kit (SDK) for OpenCV for Tegra. OpenCV for Tegra is a fully compatible, optimized backend implementation of OpenCV for Android, which runs 2-20x faster on Tegra 3-based devices.
The OpenCV for Tegra SDK in the TADP contains:
- OpenCV for Tegra libraries in binary form
- Pre-configured Android Eclipse example projects for OpenCV for Tegra
- Step-by-step documentation on How to Use OpenCV for Tegra, including details of its functionality, and
- An OpenCV for Tegra Demo App, which demonstrates the optimization that can be achieved with OpenCV for Tegra vs. the un-optimized OpenCV for Android library on Tegra 3-based devices .
The OpenCV for Tegra library is packaged into a single Android Application Package (OpenCV_2.4.2_binary_pack_tegra3.apk) located in the OpenCV-2.4.2-Tegra-sdk/apk/ folder of the TADP installation directory. You can also download this .apk, free of cost, from the Google Play store. Once installed, the OpenCV for Tegra libraries are ready to be dynamically linked into your Android applications.
If your application uses the OpenCV Manager service, it will automatically search for and load the OpenCV for Tegra library on your Tegra 3-based device at run time. If the OpenCV for Tegra library is absent on your device, its .apk will either be downloaded automatically from the Google Play store, or, if the latter is inaccessible, the user will be prompted to install the .apk manually.
Alternatively, the native (C/C++) versions of OpenCV for Tegra libraries are also availablein binary form in the OpenCV-2.4.2-Tegra-sdk/sdk/native/libs/tegra3 folder of your TADP installation directory. You can link them statically into the native part of your Android applications by appropriately including the path to the OpenCV-tegra3.mk file in your application’s Android.mk file:
Page 1 of 2Next >
Currently no items