Skip to Content
OpenCV with Python Blueprints
book

OpenCV with Python Blueprints

by Michael Beyeler, Michael Beyeler (USD)
October 2015
Intermediate to advanced
230 pages
5h 10m
English
Packt Publishing
Content preview from OpenCV with Python Blueprints

Facial expression recognition

The facial expression recognition pipeline is encapsulated by chapter7.py. This file consists of an interactive GUI that operates in two modes (training and testing), as described earlier.

In order to arrive at our end-to-end app, we need to cover the following three steps:

  1. Load the chapter7.py GUI in the training mode to assemble a training set.
  2. Train an MLP classifier on the training set via train_test_mlp.py. Because this step can take a long time, the process takes place in its own script. After successful training, store the trained weights in a file, so that we can load the pre-trained MLP in the next step.
  3. Load the chapter7.py GUI in the testing mode to classify facial expressions on a live video stream in real-time. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

OpenCV 4 with Python Blueprints - Second Edition

OpenCV 4 with Python Blueprints - Second Edition

Dr. Menua Gevorgyan, Michael Beyeler (USD), Arsen Mamikonyan, Michael Beyeler
OpenCV 3 Computer Vision with Python Cookbook

OpenCV 3 Computer Vision with Python Cookbook

Aleksei Spizhevoi, Aleksandr Rybnikov
OpenCV By Example

OpenCV By Example

Prateek Joshi, David Millán Escrivá, Vinícius G. Mendonça

Publisher Resources

ISBN: 9781785282690Supplemental Content