Project Documentation
Project Documentation
## Project Overview
## Project Structure
```
face_recognition_web/
├── face_app/
│ ├── migrations/
│ ├── templates/
│ │ └── face_app/
│ │ ├── base.html
│ │ ├── home.html
│ │ ├── register.html
│ │ ├── train.html
│ │ ├── predict.html
│ │ └── predict_result.html
│ ├── __init__.py
│ ├── admin.py
│ ├── apps.py
│ ├── consumers.py
│ ├── face_model.py
│ ├── facePredictor.py
│ ├── face_preprocess.py
│ ├── faces_embedding.py
│ ├── forms.py
│ ├── get_faces_from_camera.py
│ ├── helper.py
│ ├── models.py
│ ├── mtcnn_detector.py
│ ├── routing.py
│ ├── softmax.py
│ ├── train_softmax.py
│ ├── urls.py
│ └── views.py
├── face_recognition_web/
│ ├── __init__.py
│ ├── asgi.py
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
├── media/
│ ├── uploads/
│ └── temp/
├── static/
└── manage.py
```
## Key Components
1. `views.py`: Contains the main logic for handling HTTP requests.
2. `facePredictor.py`: Implements face detection and recognition.
3. `get_faces_from_camera.py`: Collects face images for registration.
4. `faces_embedding.py`: Generates face embeddings for training.
5. `train_softmax.py`: Trains the face recognition model.
6. `consumers.py`: Handles WebSocket connections for real-time predictions.
## Usage
## API Endpoints
## WebSocket
## Future Improvements