How ojasrane/face-recognition works
This is a comparative face-recognition lab centered on Olivetti Faces, with PCA/eigenfaces and LDA/Fisherfaces workflows plus a Streamlit explorer. Users choose a method, select a test subject and image, then inspect a match or class prediction and confusion-matrix view. Training scripts and precomputed assets support those demos; notebooks explain the algorithms. The custom LDA implementation is a reference implementation, distinct from the scikit-learn pipeline used for Fisherfaces training. Relationship evidence is limited to the README and sampled sources; unsampled details are not inferred.
Main entry points: pca.py PCA demo · lda.py Fisherfaces demo · utils.py Dataset constants · train.py PCA training
Components 16
Interactive lab
- Method landing page
web_app/landing_page.py - PCA demo
web_app/pages/pca.py - Fisherfaces demo
web_app/pages/lda.py
Recognition methods
- PCA training
PCA/train.py - PCA matching test
PCA/test.py - Fisherfaces training
LDA/train.py - Fisherfaces test
LDA/test.py - Reference LDA
LDA/linear_discriminant_analysis.py
Data and artifacts
- Dataset constants
utils.py - Olivetti Faces
- Cached face splits
web_app/assets/datasets/olivetti_faces_dataset.npz - PCA model artifact
web_app/assets/models/pca/pca.pkl - Fisherfaces artifact
web_app/assets/models/lda/lda.pkl
Experiments and learning
- PCA walkthrough
analysis/face_recognition_using_PCA.ipynb - LDA walkthrough
analysis/face_recognition_using_LDA.ipynb
Other components
- Lab visitor
Connections 21
- Lab visitor → Method landing page: opens
README.md - Method landing page → PCA demo: routes to
web_app/landing_page.py - Method landing page → Fisherfaces demo: routes to
web_app/landing_page.py - Lab visitor → PCA demo: selects image
web_app/pages/pca.py - Lab visitor → Fisherfaces demo: selects image
web_app/pages/lda.py - PCA training → Olivetti Faces: loads faces
PCA/train.py - Fisherfaces training → Olivetti Faces: loads faces
LDA/train.py - PCA training → Dataset constants: uses constants
PCA/train.py - Fisherfaces training → Dataset constants: uses constants
LDA/train.py - PCA training → PCA model artifact: exports model
README.md - Fisherfaces training → Fisherfaces artifact: exports model
README.md - PCA demo → Dataset constants: uses constants
web_app/pages/pca.py - Fisherfaces demo → Dataset constants: uses constants
web_app/pages/lda.py - PCA demo → PCA model artifact: loads model
web_app/pages/pca.py - PCA demo → Cached face splits: loads splits
web_app/pages/pca.py - Fisherfaces demo → Fisherfaces artifact: loads model
web_app/pages/lda.py - Fisherfaces demo → Cached face splits: loads splits
web_app/pages/lda.py - PCA matching test → PCA model artifact: loads model
README.md - Fisherfaces test → Fisherfaces artifact: loads model
README.md - Lab visitor → PCA walkthrough: explores method
README.md - Lab visitor → LDA walkthrough: explores method
README.md