This project was developed for the Computer Science Project of the Computer Engineering degree at the technology and Management School (ESTG) of the Polytechnic Institute of Leiria by the students Gonçalo Sousa and Élio Martins under the guidance of Professor António Manuel de Jesus Pereira and Professor Luís Alexandre Lopes Frazão.
This project presents a systems integration, where it is possible to determine emotions from human faces, with some optimizations like discarding blurred photos.
With the next simple steps you will have the ability to replicate our integration.
1. Install OpenCV
Warning: be careful with python environments!
- Download file
haarcascade_frontalface_default.xml
pre-trained
2. Install Node-RED
- Create a virtual machine (optional)
- Install Node-RED
3. Install DeepFace
- Create a virtual machine (optional)
- Clone the project Deepface belonging to Sefik Ilkin Serengil, and follow the steps: README
Can be installed on any operating system!
4. Download Blurry Framework
- Clone the project: BlurryFrameRemover
Install it on the same machine that has Node-RED!
5. Files
- Clone the files in: repository
File haarcascade_frontalface_default.xml must be in the same folder as cm.py! Or you need to change this line in the code:
face_cascade = cv2.CascadeClassifier('[Path to haarcascade_frontalface_default.xml]')
6. Node-RED
- Running Node-RED
- Open in your browser and import file
finalFlow.json
Warning: You need to pay attention because in some widgets you will need to change their path!