This project implements a deep learning pipeline using TensorFlow and VGG16 to detect faces and predict bounding boxes from webcam input. It features real-time predictions with custom-trained models using image augmentation and bounding box regression.
- πΈ Real-time face detection from webcam
- π Bounding box prediction (regression)
- π§ VGG16-based feature extraction
- π§ͺ Custom training pipeline with augmentation
- π JSON label handling
- π TensorBoard support
Deep_Face_Detecton_Model/
βββ data/ # Original images and labels
βββ aug_data/ # Augmented training/test/val data
βββ logs/ # TensorBoard logs
βββ tfenv/ # Python virtual environment (ignored)
βββ main.py # Main training, augmentation, and detection script
βββ test.py # Image collection via OpenCV
βββ facetracker.h5 # Saved model file
- Install dependencies:
pip install -r requirements.txt- Collect images via webcam:
python test.py- Train the model:
python main.py- Real-time detection after training:
python main.py # Last section activates webcam- Model is saved as
facetracker.h5 - Uses Albumentations for image augmentation
- Bounding boxes are normalized and rescaled during inference
For research and educational use only.