OpenCV for Secret Agents
eBook - ePub

OpenCV for Secret Agents

Joseph Howse

Condividi libro
  1. 302 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

OpenCV for Secret Agents

Joseph Howse

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
OpenCV for Secret Agents è disponibile online in formato PDF/ePub?
Sì, puoi accedere a OpenCV for Secret Agents di Joseph Howse in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Informatica e Programmazione open source. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

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

Indice dei contenuti