A real-time computer vision project that detects human faces from a live webcam feed and automatically blurs them using OpenCV's Deep Neural Network (DNN) module. This project demonstrates privacy-preserving video processing using a pre-trained SSD face detection model.
- 🎯 Real-time face detection
- 👤 Automatic Gaussian blur for detected faces
- 📹 Live webcam video processing
- ⚡ Fast inference using OpenCV DNN
- 🚫 Displays "No Face Detected!" when no faces are found
- 🧠 Uses a pre-trained SSD Caffe face detection model
- Python
- OpenCV
- NumPy
- OpenCV DNN Module
- Jupyter Notebook
Face_Blur_Realtime/
│
├── main1.ipynb
├── deploy.prototxt
├── res10_300x300_ssd_iter_140000_fp16.caffemodel
README.md
requirements.txt
The project uses OpenCV's pre-trained SSD face detector.
Model files:
deploy.prototxtres10_300x300_ssd_iter_140000_fp16.caffemodel
git clone https://github.com/Pheonix-1002/Realtime_FaceBlur.git
cd Realtime_FaceBlur/Face_Blur_Realtimepip install opencv-python numpy jupyterStart Jupyter Notebook:
jupyter notebookOpen:
main1.ipynb
Run all cells to start the webcam.
Press q to exit the application.
- Capture frames from the webcam.
- Convert each frame into a blob.
- Perform face detection using OpenCV's DNN model.
- Extract the detected face region.
- Apply Gaussian Blur.
- Display the processed video stream.
- Face pixelation mode
- Blur intensity adjustment
- Video file support
- Face tracking
- YOLO-based face detection
- GPU acceleration using CUDA
Pheonix-1002