OpenCV for Secret Agents
eBook - ePub

OpenCV for Secret Agents

Joseph Howse

Buch teilen
  1. 302 Seiten
  2. English
  3. ePUB (handyfreundlich)
  4. Über iOS und Android verfügbar
eBook - ePub

OpenCV for Secret Agents

Joseph Howse

Angaben zum Buch
Buchvorschau
Inhaltsverzeichnis
Quellenangaben

Häufig gestellte Fragen

Wie kann ich mein Abo kündigen?
Gehe einfach zum Kontobereich in den Einstellungen und klicke auf „Abo kündigen“ – ganz einfach. Nachdem du gekündigt hast, bleibt deine Mitgliedschaft für den verbleibenden Abozeitraum, den du bereits bezahlt hast, aktiv. Mehr Informationen hier.
(Wie) Kann ich Bücher herunterladen?
Derzeit stehen all unsere auf Mobilgeräte reagierenden ePub-Bücher zum Download über die App zur Verfügung. Die meisten unserer PDFs stehen ebenfalls zum Download bereit; wir arbeiten daran, auch die übrigen PDFs zum Download anzubieten, bei denen dies aktuell noch nicht möglich ist. Weitere Informationen hier.
Welcher Unterschied besteht bei den Preisen zwischen den Aboplänen?
Mit beiden Aboplänen erhältst du vollen Zugang zur Bibliothek und allen Funktionen von Perlego. Die einzigen Unterschiede bestehen im Preis und dem Abozeitraum: Mit dem Jahresabo sparst du auf 12 Monate gerechnet im Vergleich zum Monatsabo rund 30 %.
Was ist Perlego?
Wir sind ein Online-Abodienst für Lehrbücher, bei dem du für weniger als den Preis eines einzelnen Buches pro Monat Zugang zu einer ganzen Online-Bibliothek erhältst. Mit über 1 Million Büchern zu über 1.000 verschiedenen Themen haben wir bestimmt alles, was du brauchst! Weitere Informationen hier.
Unterstützt Perlego Text-zu-Sprache?
Achte auf das Symbol zum Vorlesen in deinem nächsten Buch, um zu sehen, ob du es dir auch anhören kannst. Bei diesem Tool wird dir Text laut vorgelesen, wobei der Text beim Vorlesen auch grafisch hervorgehoben wird. Du kannst das Vorlesen jederzeit anhalten, beschleunigen und verlangsamen. Weitere Informationen hier.
Ist OpenCV for Secret Agents als Online-PDF/ePub verfügbar?
Ja, du hast Zugang zu OpenCV for Secret Agents von Joseph Howse im PDF- und/oder ePub-Format sowie zu anderen beliebten Büchern aus Informatica & Programmazione open source. Aus unserem Katalog stehen dir über 1 Million Bücher zur Verfügung.

Information

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...

Inhaltsverzeichnis