Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
OpenCV Android Programming By Example

You're reading from   OpenCV Android Programming By Example Leverage OpenCV to develop vision-aware and intelligent Android applications.

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher
ISBN-13 9781783550593
Length 202 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Processing the images stored on your phone

In this section, you will learn how to load an image from your phone and apply some interesting image processing algorithms to it, such as contrast enhancing, smoothing (removing noise from your image), and applying some filters.

Loading an image to a Mat object

Let's get started by first creating a new Android project. As you've seen in the previous chapter, in order to start using the OpenCV algorithms, you will need to add the OpenCV library to your project:

  1. Launch Eclipse.
  2. Create a new Android project application; let's name it DarkRoom.
  3. Choose the package name. In this example, I chose it to be com.example.chapter2.darkroom.
  4. Set the minimum required SDK to be anything above API 11 (Android 3.0). In my case, and it is highly recommended, I chose it to be API 16 (Android 4.1). For the target SDK, you should choose API 19 because there is an issue when loading the OpenCV library if you are using a target SDK higher than 19.
  5. Click Next...
You have been reading a chapter from
OpenCV Android Programming By Example
Published in: Dec 2015
Publisher:
ISBN-13: 9781783550593
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image