The goal was to create a camera that would be able to follow a face with a simple GUI in order to learn to use OpenCV and Qt using C++.

gui screenshot

A piHAt with an LEDs matrix was showing if the spotted person (in the case there was only one in the camera range) was smiling or not.

Tha application was running on a Raspberry Pi, face captured with a raspicam, and the servo motors were moved using an Arduino. Only smiling faces are followed!

smiling face matrix sad face matrix