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

Planning the Angora Blue app


Angora Blue reuses the same detection and recognition models that we created earlier. It is a relatively linear and simple app because it has no GUI and does not modify any models. It just loads the detection and recognition models from file and then silently runs a camera until a face is recognized with a certain level of confidence. After recognizing a face, the app sends an e-mail alert and exits. To elaborate, we can say the app has the following flow of execution:

  1. Load face detection and face recognition models from file for both human and feline subjects.

  2. Capture a live video from a camera for each frame of video:

    1. Detect all human faces in the frame. Perform recognition on each human face. If a face is recognized with a certain level of confidence, send an e-mail alert and exit the app.

    2. Detect all cat faces in the frame. Discard any cat faces that intersect with human faces. (We assume that such cat faces are false positives, since our cat detector sometimes...