Emotion
:smile: Recognizes human faces and their corresponding emotions from a video or webcam feed. Powered by OpenCV and Deep Learning.
Install / Use
/learn @petercunha/EmotionREADME
Emotion
This software recognizes human faces and their corresponding emotions from a video or webcam feed. Powered by OpenCV and Deep Learning.

Installation
Clone the repository:
git clone https://github.com/petercunha/Emotion.git
cd Emotion/
Install these dependencies with pip3 install <module name>
- tensorflow
- numpy
- scipy
- opencv-python
- pillow
- pandas
- matplotlib
- h5py
- keras
Once the dependencies are installed, you can run the project.
python3 emotions.py
To train new models for emotion classification
- Download the fer2013.tar.gz file from here
- Move the downloaded file to the datasets directory inside this repository.
- Untar the file:
tar -xzf fer2013.tar - Download train_emotion_classifier.py from orriaga's repo here
- Run the train_emotion_classification.py file:
python3 train_emotion_classifier.py
Deep Learning Model
The model used is from this research paper written by Octavio Arriaga, Paul G. Plöger, and Matias Valdenegro.

Credit
- Computer vision powered by OpenCV.
- Neural network scaffolding powered by Keras with Tensorflow.
- Convolutional Neural Network (CNN) deep learning architecture is from this research paper.
- Pretrained Keras model and much of the OpenCV code provided by GitHub user oarriaga.
Related Skills
docs-writer
99.2k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
337.1kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
arscontexta
2.9kClaude Code plugin that generates individualized knowledge systems from conversation. You describe how you think and work, have a conversation and get a complete second brain as markdown files you own.
zola-ai
An autonomous Solana wallet agent that executes payments via Twitter mentions and an in-app dashboard, powered by Claude.
