Skip to content

Face and eye detection using the OpenCV library and cascade classifiers. Coded in C++ and QML using Qt Creator.

Notifications You must be signed in to change notification settings

AzizZayed/Face-and-Eye-Detection-for-Android

Repository files navigation

Face-and-Eye-Detection-for-Android

Face and eye detection for Android using the precompiled OpenCV SDK (4.0.1) and Cascade Classifiers. Coded in C++ and Qml using Qt 5.12 and Qt Creator. If you download this project, make sure to change the location of OpenCV and the target architecture (if needed) so the compiler can find OpenCV and the project can work on your android phone. Click here to download OpenCV if needed. You do need to download Qt to run this code since I use the Qml engine. The code is not big at all. Most of the files are Cascade Classifiers I was testing the face feature detector with.

I was quite new to C++ at the time. This project was a great way to learn C++ in addition to such a powerful cross-platform tool like Qt. The Signal and Slot feature offered by Qt is brilliant and I use it in this app.


The code:

  • facefeaturedetector.cpp: This class loads the wanted classifiers and starts the capturing and image processing every frame send by the Qml engine.
  • main.cpp: A short main function that starts the Qml engine and the face feature detector.
  • main.qml: This Qml file contains the Camera and VideoOutput objects used to create what you see below. This file sends every frame to the face feature detector.

And if you toggle visibility:

About

Face and eye detection using the OpenCV library and cascade classifiers. Coded in C++ and QML using Qt Creator.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages