Book Image

OpenCV for Secret Agents

By : Joseph Howse
Book Image

OpenCV for Secret Agents

By: Joseph Howse

Overview of this book

Table of Contents (15 chapters)
OpenCV for Secret Agents
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Getting a cascade file and audio files


Like parts of the last chapter's project, Goldgesture performs human face detection and requires one of the cascade files that comes with OpenCV. Also, Goldgesture uses audio clips. Download the cascade file and audio clips from http://nummist.com/opencv/7376_04_res.zip and extract them to the project's res/raw folder. This folder is a location for files that we want bundled with the Android app in their raw (unmodified) form.

The audio clips are generated using the "Vicki" voice of the standard text-to-speech synthesizer on Mac. For example, one of the clips is created by running the following command in Terminal:

$ say -v Vicki -o win_007.mp4 'You are 007! I win!'

Speech synthesis is hours of fun for the whole family.

Note

The Mac speech synthesizer pronounces "007" as "double-O seven". This is an anomaly. For example, "008" is pronounced as "zero, zero, eight".