How elaattia/facedetectionsystem works
This repository is a Streamlit facial-analysis application for detecting face masks and classifying seven emotions from an uploaded image. The principal workflow loads the two model systems, analyzes an image with each available detector, and presents per-model predictions and confidence. The backend modules also contain separate dataset, training, evaluation, and confusion-matrix visualization capabilities. The README is empty; connections below are grounded in the shown excerpts and SOURCE INDEX, so unsampled UI details are not expanded.
Main entry points: streamlit_app.py Analysis interface · face_mask_detector.py Mask models · emotion_detector.py Emotion models
Components 10
User interface
- Analysis interface
app/streamlit_app.py
Mask detection
- Preprocessing
backend/face_mask_detector.py - Feature extraction
backend/face_mask_detector.py - Mask models
backend/face_mask_detector.py - Dataset loading
backend/face_mask_detector.py
Emotion detection
- Preprocessing
backend/emotion_detector.py - Feature extraction
backend/emotion_detector.py - Emotion models
backend/emotion_detector.py - Dataset loading
backend/emotion_detector.py
Other components
- Image uploader
Connections 13
- Image uploader → Analysis interface: uploads image
app/streamlit_app.py - Analysis interface → Mask models: loads and predicts
app/streamlit_app.py - Analysis interface → Emotion models: loads and predicts
app/streamlit_app.py - Mask models → Preprocessing: preprocesses image
backend/face_mask_detector.py - Mask models → Feature extraction: extracts features
backend/face_mask_detector.py - Preprocessing → Feature extraction: provides image
backend/face_mask_detector.py - Dataset loading → Preprocessing: preprocesses samples
backend/face_mask_detector.py - Dataset loading → Feature extraction: extracts sample features
backend/face_mask_detector.py - Emotion models → Preprocessing: preprocesses image
backend/emotion_detector.py - Emotion models → Feature extraction: extracts features
backend/emotion_detector.py - Preprocessing → Feature extraction: provides image
backend/emotion_detector.py - Dataset loading → Preprocessing: preprocesses samples
backend/emotion_detector.py - Dataset loading → Feature extraction: extracts sample features
backend/emotion_detector.py