This project detects human emotions from facial expressions using DeepFace, draws facial landmarks on the image using the dlib library, and stores the results in a local SQLite database. Note that the analysis results may contain inaccuracies, as no AI system is perfect.
Face-Analyzer.mp4
- Python 3.10 (with newer versions, it may not work!)
- Django 5.2.4
- OpenCV – for image preprocessing (optional, but useful)
- DeepFace - for facial analysis and emotion detection
- Dlib - for detection landmarks
- SQLite - to store results in real-time
- Clone the repository
- Set up a virtual environment (recommended)
python -m venv env
source env/bin/activate # On Windows: env\Scripts\activate- Install dependencies
pip install -r requirements.txtIf the terminal prompts you to install a library, make sure to install it as well.
- Run Django server
py manage.py runserver- Registration is required! Alternatively, you can log in using the admin credentials (email: admin@gmail.com, password: 123123).
Feel free to fork, modify, and submit a pull request. Happy coding!