Android Application Programming with OpenCV

For Java developers OpenCV is a fantastic opportunity to benefit from the popularity of image related mobile apps on Android. This book teaches you all you need to know about computer vision with practical projects.

Android Application Programming with OpenCV

Joseph Howse

1 customer reviews
For Java developers OpenCV is a fantastic opportunity to benefit from the popularity of image related mobile apps on Android. This book teaches you all you need to know about computer vision with practical projects.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$14.70
RRP $20.99
Save 29%
Print + eBook
$34.99
RRP $34.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$14.70
$34.99
$29.99p/m after trial
RRP $20.99
RRP $34.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781849695206
Paperback130 pages

Book Description

Take a smartphone from your pocket, and within a few seconds, you can snap a photo, manipulate it, and share it with the world. You have just achieved mass production of image data. With a computer vision library such as OpenCV, you can analyze and transform copious amounts of image data in real time on a mobile device. The upshot to this is that you, as developers, can provide mobile users with many new kinds of images, constantly highlighting certain visual features that are of artistic or practical interest. Android is a convenient platform for such experiments because it uses a high-level language (Java), it provides standardized interfaces for sharing image data between applications, and it is mostly open source, so everyone can study its implementation.

Android Application Programming with OpenCV is a practical, hands-on guide that covers the fundamental tasks of computer vision—capturing, filtering, and analyzing images-with step-by-step instructions for writing both an application and reusable library classes.

Android Application Programming with OpenCV looks at OpenCV's Java bindings for Android and dispels mysteries such as which version of these bindings to use, how to integrate with standard Android functionality for layout, event handling, and data sharing, and how to integrate with OpenGL for rendering. By following the clear, concise, and modular examples provided in this book, you will develop an application that previews, captures, and shares photos with special effects based on color manipulation, edge detection, image tracking, and 3D rendering.
Beneath the application layer, you will develop a small but extensible library that you can reuse in your future projects. This library will include filters for selectively modifying an image based on edge detection, 2D and 3D image trackers, and adapters to convert the Android system's camera specifications into OpenCV and OpenGL projection matrices. If you want a quick start in computer vision for Android, then this is the book for you.

By the end of Android Application Programming with OpenCV, you will have developed a computer vision application that integrates OpenCV, Android SDK, and OpenGL.

Table of Contents

Chapter 1: Setting Up OpenCV
System requirements
Setting up a development environment
Building the OpenCV samples with Eclipse
Finding documentation and help
Summary
Chapter 2: Working with Camera Frames
Designing our app – Second Sight
Creating the Eclipse project
Enabling camera and disk access in the manifest
Creating menu and string resources
Previewing and saving photos in CameraActivity
Deleting, editing, and sharing photos in LabActivity
Summary
Chapter 3: Applying Image Effects
Adding files to the project
Mixing color channels
Making subtle color shifts with curves
Processing a neighborhood of pixels with convolution filters
Adding the filters to CameraActivity
Summary
Chapter 4: Recognizing and Tracking Images
Adding files to the project
Understanding image tracking
Writing an image tracking filter
Adding the tracker filters to CameraActivity
Summary
Chapter 5: Combining Image Tracking with 3D Rendering
Adding files to the project
Defining the ARFilter interface
Building projection matrices in CameraProjectionAdapter
Modifying ImageDetectionFilter for 3D tracking
Rendering the cube in ARCubeRenderer
Adding 3D tracking and rendering to CameraActivity
Learning more about 3D graphics on Android
Summary

What You Will Learn

  • Install OpenCV and an Android development environment on Windows, Mac, or Linux
  • Capture, display, and save images
  • Make images accessible to other apps via Android's MediaStore and Intent classes
  • Integrate OpenCV events and views with Android's standard activity lifecycle and view hierarchy
  • Learn how OpenCV uses matrices to store data about images, recognizable features in images, and camera characteristics
  • Apply curves and other color transformations to simulate the look of old photos, movies, or video games
  • Apply convolution filters that sharpen, blur, emboss, or darken edges and textures in an image
  • Track real-world objects, especially printed images, in 2D and 3D space
  • Extract camera data from Android SDK and use it to construct OpenCV and OpenGL projection matrices
  • Render basic 3D graphics in OpenGL

Authors

Table of Contents

Chapter 1: Setting Up OpenCV
System requirements
Setting up a development environment
Building the OpenCV samples with Eclipse
Finding documentation and help
Summary
Chapter 2: Working with Camera Frames
Designing our app – Second Sight
Creating the Eclipse project
Enabling camera and disk access in the manifest
Creating menu and string resources
Previewing and saving photos in CameraActivity
Deleting, editing, and sharing photos in LabActivity
Summary
Chapter 3: Applying Image Effects
Adding files to the project
Mixing color channels
Making subtle color shifts with curves
Processing a neighborhood of pixels with convolution filters
Adding the filters to CameraActivity
Summary
Chapter 4: Recognizing and Tracking Images
Adding files to the project
Understanding image tracking
Writing an image tracking filter
Adding the tracker filters to CameraActivity
Summary
Chapter 5: Combining Image Tracking with 3D Rendering
Adding files to the project
Defining the ARFilter interface
Building projection matrices in CameraProjectionAdapter
Modifying ImageDetectionFilter for 3D tracking
Rendering the cube in ARCubeRenderer
Adding 3D tracking and rendering to CameraActivity
Learning more about 3D graphics on Android
Summary

Book Details

ISBN 139781849695206
Paperback130 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Mastering OpenCV with Practical Computer Vision Projects Book Cover
Mastering OpenCV with Practical Computer Vision Projects
$ 26.99
$ 5.40
Building Machine Learning Systems with Python Book Cover
Building Machine Learning Systems with Python
$ 29.99
$ 6.00
Learning OpenCV 3 Computer Vision with Python - Second Edition Book Cover
Learning OpenCV 3 Computer Vision with Python - Second Edition
$ 35.99
$ 25.20
OpenCV Computer Vision Application Programming Cookbook Second Edition Book Cover
OpenCV Computer Vision Application Programming Cookbook Second Edition
$ 26.99
$ 18.90
OpenCV 2 Computer Vision Application Programming Cookbook Book Cover
OpenCV 2 Computer Vision Application Programming Cookbook
$ 26.99
$ 18.90
Mastering Android Application Development Book Cover
Mastering Android Application Development
$ 35.99
$ 25.20