Skip to content

Commit 91ebbb6

Browse files
committed
๐ŸŽ‰ Release v2.0.0: Complete professional refactor
โœจ Features: - Modular architecture (src/core, src/ui, src/utils) - Multi-model emotion detection (DeepFace + Custom CNN) - Professional cyberpunk UI with real-time HUD - Video recording capability (press 'r') - Kaggle FER2013 dataset integration - Fallback face detection (MediaPipe โ†’ OpenCV) ๐Ÿ“š Documentation: - 8 comprehensive markdown guides - Installation, quickstart, and dataset tutorials - Release checklist for production deployment ๐Ÿ”ง Technical: - Thread-safe emotion analysis - 60+ FPS performance optimization - Frame throttling for efficiency - Cross-platform compatibility (Win/Linux/Mac) - Python 3.8-3.13 support ๐Ÿ“Š Stats: - 764 lines of production code - 15 Python modules - Full test suite included
1 parent 62be813 commit 91ebbb6

26 files changed

Lines changed: 2371 additions & 520 deletions

โ€Ž.gitignoreโ€Ž

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
# Python byte-compiled files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
*.so
6+
7+
# Virtual environments
8+
venv/
9+
env/
10+
ENV/
11+
.venv
12+
13+
# IDE settings
14+
.vscode/
15+
.idea/
16+
*.swp
17+
*.swo
18+
*~
19+
20+
# Dataset files
21+
data/
22+
*.csv
23+
*.h5
24+
*.hdf5
25+
*.zip
26+
*.tar.gz
27+
28+
# Model files (except specific ones in root)
29+
models/
30+
checkpoints/
31+
32+
# Recordings
33+
*.avi
34+
*.mp4
35+
*.mov
36+
recording_*.avi
37+
38+
# Kaggle credentials
39+
.kaggle/
40+
kaggle.json
41+
42+
# OS files
43+
.DS_Store
44+
Thumbs.db
45+
desktop.ini
46+
47+
# Logs
48+
logs/
49+
*.log
50+
51+
# Jupyter Notebooks
52+
.ipynb_checkpoints/
53+
*.ipynb
54+
55+
# TensorFlow
56+
*.pb
57+
saved_model/
58+
59+
# Temporary files
60+
tmp/
61+
temp/
62+
*.tmp

โ€ŽCHANGELOG.mdโ€Ž

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
# ๐ŸŽฏ Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
## [2.0.0] - 2025-12-06
6+
7+
### โœจ Added
8+
- **Modular Architecture**: Restructured entire codebase into organized modules (`src/core`, `src/ui`, `src/utils`)
9+
- **Kaggle Integration**: Automatic dataset download from Kaggle FER2013
10+
- **Professional UI**: Cyberpunk-style HUD with emotion probability bars and FPS counter
11+
- **Video Recording**: Built-in recording feature (press 'r' to toggle)
12+
- **FPS Counter Utility**: Accurate FPS calculation with rolling average
13+
- **Fallback Face Detection**: OpenCV Haar Cascade fallback when MediaPipe is unavailable
14+
- **Configuration System**: Centralized configuration in `src/config.py`
15+
- **Environment Checker**: Script to validate system compatibility
16+
- **Test Suite**: Comprehensive testing scripts
17+
- **Documentation**: Complete README, INSTALLATION guide, and KAGGLE_SETUP guide
18+
19+
### ๐Ÿ”ง Improved
20+
- **Performance**: Frame throttling for better FPS (analyze every N frames)
21+
- **Thread Safety**: Proper locking mechanisms for emotion analysis
22+
- **Error Handling**: Robust error handling with fallback mechanisms
23+
- **Code Quality**: Type hints, docstrings, and consistent formatting
24+
- **Compatibility**: Support for Python 3.8-3.13 with compatibility warnings
25+
26+
### ๐Ÿ› Fixed
27+
- Fixed DeepFace result parsing with proper type checking
28+
- Fixed path resolution issues across different operating systems
29+
- Fixed camera release on exit
30+
- Fixed emotion probability normalization
31+
32+
### ๐Ÿ“ฆ Dependencies
33+
- Added ml-dtypes for TensorFlow compatibility
34+
- Updated all dependencies with version constraints
35+
- Created comprehensive requirements.txt
36+
37+
### ๐Ÿ—‚๏ธ Project Structure
38+
```
39+
Real-Time-Emotion-Detection/
40+
โ”œโ”€โ”€ main.py
41+
โ”œโ”€โ”€ requirements.txt
42+
โ”œโ”€โ”€ README.md
43+
โ”œโ”€โ”€ INSTALLATION.md
44+
โ”œโ”€โ”€ KAGGLE_SETUP.md
45+
โ”œโ”€โ”€ CHANGELOG.md
46+
โ”œโ”€โ”€ .gitignore
47+
โ”œโ”€โ”€ src/
48+
โ”‚ โ”œโ”€โ”€ config.py
49+
โ”‚ โ”œโ”€โ”€ core/
50+
โ”‚ โ”‚ โ”œโ”€โ”€ analyzer.py
51+
โ”‚ โ”‚ โ”œโ”€โ”€ camera.py
52+
โ”‚ โ”‚ โ””โ”€โ”€ face_detector.py
53+
โ”‚ โ”œโ”€โ”€ ui/
54+
โ”‚ โ”‚ โ””โ”€โ”€ visualizer.py
55+
โ”‚ โ””โ”€โ”€ utils/
56+
โ”‚ โ”œโ”€โ”€ fps_counter.py
57+
โ”‚ โ””โ”€โ”€ logger.py
58+
โ””โ”€โ”€ scripts/
59+
โ”œโ”€โ”€ download_dataset.py
60+
โ”œโ”€โ”€ test_system.py
61+
โ””โ”€โ”€ check_environment.py
62+
```
63+
64+
---
65+
66+
## [1.0.0] - Previous Version
67+
68+
### Features
69+
- Basic emotion detection using DeepFace
70+
- Single-file implementation
71+
- Real-time webcam processing
72+
73+
---
74+
75+
## ๐Ÿ”ฎ Planned Features
76+
77+
### [2.1.0] - Upcoming
78+
- [ ] Multi-face support
79+
- [ ] Emotion history graph
80+
- [ ] Export data to CSV/JSON
81+
- [ ] Custom model training scripts
82+
- [ ] Performance profiling tools
83+
84+
### [3.0.0] - Future
85+
- [ ] Web dashboard
86+
- [ ] REST API
87+
- [ ] Mobile app support
88+
- [ ] Cloud deployment templates
89+
- [ ] Docker containerization
90+
91+
---
92+
93+
<p align="center">
94+
Maintained by <a href="https://shayantaherkhani.ir">Shayan Taherkhani</a>
95+
</p>

0 commit comments

Comments
ย (0)