😊 Emotion Detection AI
An advanced emotion detection system powered by deep learning that analyzes facial expressions in real-time.
- Real-time Detection: Instant emotion analysis from images
- 3 Emotions: Angry 😠, Happy 😊, Sad 😢
- Multiple Input Methods: Upload, webcam, or sample images
- High Accuracy: Based on Vision Transformer architecture
- Easy to Use: Simple, intuitive interface
- Upload an Image: Click the upload area or drag & drop
- Use Webcam: Click webcam icon for live capture
- Try Samples: Click sample buttons for demo images
- Detect: Click "Detect Emotion" button
- View Results: See detected emotion with confidence scores
- Architecture: Vision Transformer (ViT)
- Face Detection: MTCNN
- Framework: PyTorch
- Model Size: ~344MB
- Inference Time: 1-2 seconds
- Optimized for clear, frontal face images
- Works with various lighting conditions
- Supports JPG, PNG, WEBP formats
- Customer sentiment analysis
- Mental health monitoring
- User experience research
- Interactive entertainment
- Educational tools
- Requires visible face in image
- Best with frontal face poses
- Performance depends on image quality
- Currently supports 3 basic emotions
- Gradio: Web interface
- PyTorch: Deep learning framework
- MTCNN: Face detection
- Hugging Face: Deployment platform
MIT License - Feel free to use for your projects!
Created with ❤️ for facial emotion recognition
Try it now! Upload an image and see the magic happen ✨
---
### 4. **Create `.gitignore`**
pycache/ *.py[cod] *$py.class *.so .Python venv/ env/ *.egg-info/ .ipynb_checkpoints
*.pt *.pth *.onnx emotion_vit_model.pt
---