OpenCV for Secret Agents
eBook - ePub

OpenCV for Secret Agents

Joseph Howse

Share book
  1. 302 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

OpenCV for Secret Agents

Joseph Howse

Book details
Book preview
Table of contents
Citations

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is OpenCV for Secret Agents an online PDF/ePUB?
Yes, you can access OpenCV for Secret Agents by Joseph Howse in PDF and/or ePUB format, as well as other popular books in Informatica & Programmazione open source. We have over one million books available in our catalogue for you to explore.

Information

Year
2015
ISBN
9781783287376

OpenCV for Secret Agents


Table of Contents

OpenCV for Secret Agents
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Preparing for the Mission
Setting up a development machine
Windows
OpenCV on Windows with binary installers
OpenCV on Windows with CMake and compilers
Mac
Mac with MacPorts
Mac with Homebrew
Debian Wheezy and its derivatives, including Raspbian, Ubuntu, and Linux Mint
Fedora and its derivatives, including RHEL and CentOS
openSUSE and its derivatives
Tegra Android Development Pack
Building OpenCV Android sample projects with Eclipse
Unity
Setting up Raspberry Pi
Setting up the Raspberry Pi Camera Module
Finding OpenCV documentation, help, and updates
Alternatives to Raspberry Pi
Summary
2. Searching for Luxury Accommodations Worldwide
Planning the Luxocator app
Creating, comparing, and storing histograms
Training the classifier with reference images
Acquiring images from the Web
Acquiring images from Bing image search
Preparing images and resources for the app
Integrating everything into the GUI
Building Luxocator for distribution
Summary
3. Training a Smart Alarm to Recognize the Villain and His Cat
Understanding machine learning in general
Planning the Interactive Recognizer app
Understanding Haar cascades and LBPH
Implementing the Interactive Recognizer app
Planning the cat detection model
Implementing the training script for the cat detection model
Planning the Angora Blue app
Implementing the Angora Blue app
Building Angora Blue for distribution
Further fun with finding felines
Summary
4. Controlling a Phone App with Your Suave Gestures
Planning the Goldgesture app
Understanding optical flow
Setting up the Eclipse Workspace
Getting a cascade file and audio files
Specifying the app's requirements
Laying out a camera preview as the main view
Tracking back and forth gestures
Playing audio clips as questions and answers
Capturing images and tracking faces in an activity
Summary
5. Equipping Your Car with a Rearview Camera and Hazard Detection
Planning The Living Headlights app
Detecting lights as blobs
Estimating distances (a cheap approach)
Implementing The Living Headlights app
Testing The Living Headlights app at home
Testing The Living Headlights app in a car
Summary
6. Seeing a Heartbeat with a Motion Amplifying Camera
Planning the Lazy Eyes app
Understanding what Eulerian video magnification can do
Extracting repeating signals from video using the Fast Fourier Transform (FFT)
Choosing and setting up an FFT library
Compositing two images using image pyramids
Implementing the Lazy Eyes app
Configuring and testing the app for various motions
Seeing things in another light
Summary
7. Creating a Physics Simulation Based on a Pen and Paper Sketch
Planning the Rollingball app
Detecting circles and lines
Setting up OpenCV for Unity
Configuring and building the Unity project
Creating the Rollingball scene in Unity
Creating Unity assets and adding them to the scene
Writing shaders and creating materials
Creating physics materials
Creating prefabs
Writing our first Unity script
Writing the main Rollingball script
Tidying up and testing
Summary
Index

OpenCV for Secret Agents

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: January 2015
Production reference: 1230115
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78328-737-6
www.packtpub.com
Cover image by Jeremy Segal ()

Credits

Author
Joseph Howse
Reviewers
Karan Kedar Balkar
Michael Beyeler
Demetris Gerogiannis
Kevin Hughes
Ganesh Iyer
Andrew Colin Kissa
Lihang Li
Ryohei Tanaka
Commissioning Editor
Sam Birch
Acquisition Editors
Sam Birch
Richard Brookes-Bland
Content Development Editor
Arwa Manasawala
Technical Editor
Aman Preet Singh
Copy Editor
Neha Vyas
Project Coordinator
Sageer Parkar
Proofreaders
Simran Bhogal
Ameesha Green
Paul Hindle
Clyde Jenkins
Indexer
Monica Ajmera Mehta
Graphics
Sheetal Aute
Abhinash Sahu
Production Coordinator
Arvindkumar Gupta
Cover Work
Arvindkumar Gupta

About the Author

Joseph Howse has four first-rate cats; yet, if his books sell well, he could build a menagerie fit for a pharaoh.
OpenCV for Secret Agents is Joseph's third book, following OpenCV Computer Vision with Python and Android Application Programming with OpenCV. When not writing books or grooming cats, Joseph is working to grow the augmented reality industry by providing software development and training services through his company, Nummist Media (http://nummist.com).

Acknowledgments

Many people, near and far, have guided this book to completion.
My parents, Jan and Bob, have given me nine full lives or so it seems. My four cats, Plasma Tigerlily Zoya, Sanibel Delphinium Andromeda, Lambda Catculus Puddingcat, and Josephine Antoinette Puddingcat, have provided constant supervision and contributed to testing the cat recognition software in Chapter 3, Training a Smart Alarm to Recognize the Villain and His Cat.
My readers and listeners have taken time to provide valuable feedback and ask questions about my previous books and presentations. Thanks to their loyalty and dedication to discovery, our shared exploration of OpenCV goes on!
My clients at Market Beat, in El Salvador, have inspired several of the book's topics, including detection, recognition, tracking, and the use of Raspberry Pi.
Thanks, Steven Puttemans, for the helpful discussion on Haar features. Thanks, Tanya Suhodolska, for icons used in the application bundles.
My editors at Packt Publishing have once again given me all the benefit of their skill, experience, and professionalism in the planning, polishing, and marketing of this book. Writing one of Packt's "Secret Agent" books has been a uniquely fun project! Thanks, Sam Birch, for suggesting Eulerian video magnification as the topic of Chapter 6, Seeing a Heartbeat with a Motion Amplifying Camera.
My technical reviewers have once again saved me from sundry errors and omissions. Read their biographies here! They are fine members of the OpenCV community.
Sam Howse, Bunny Moir, and dear old cats—you are remembered for the love, laughter, learning, and long journeys home.

About the Reviewers

Karan Kedar Balkar has been working as an independent Android application developer since the past 4 years. Born and brought up in Mumbai, he holds a bachelor's degree in computer engineering. He has written over 50 programming tutorials on his perso...

Table of contents