A Python-based application utilizing OpenCV and deep learning techniques to perform real-time face detection and recognition. This project demonstrates the implementation of computer vision algorithms to identify and verify individuals from live video feeds or static images.
- π₯ Real-time Face Detection β Using Haar cascades and deep models
- π§ Face Recognition β Verifies identities by comparing faces against a known database
- πΌοΈ Image and Video Support β Works on static files and live webcam streams
- π±οΈ Graphical Interface β Tkinter-based UI for interaction
- π Scalable Face Database β Organize new identities easily
- π§© Modular Codebase β Clean, organized Python scripts for detection, recognition, and GUI
| Component | Technology |
|---|---|
| Programming Language | Python 3.x |
| Computer Vision Library | OpenCV |
| Deep Learning Framework | TensorFlow/Keras |
| GUI Framework | Tkinter |
| Data Storage | Local filesystem (for images), SQLite (optional) |
| Version Control | Git & GitHub (if used for sharing) |
Follow these steps to run the project via the provided Jupyter Notebook.
- Python 3.x
- Jupyter Notebook (Install:
pip install notebook) - Required libraries: OpenCV, TensorFlow, Keras, Pillow
pip install opencv-python tensorflow keras pillow
Clone the repository or download the ZIP file and extract it.
Before running notebook cells, organize your data directory as follows:
data/
βββ Alice/
β βββ 1.jpg
β βββ 2.jpg
βββ Bob/
βββ 1.jpg
βββ 2.jpg
- Each folder (
Alice,Bob, etc.) should contain clear, front-facing images (2β5 images per person).
- Open your terminal and navigate to the project directory.
- Launch Jupyter Notebook:
jupyter notebook- In your browser, open the notebook file (
faceDetection.ipynb) and run cells sequentially.
- Module Not Found? Ensure you've installed dependencies:
pip install opencv-python tensorflow keras pillow notebook- Notebook not opening? Ensure Jupyter is correctly installed and running.
- OpenCV β For providing an incredibly powerful open-source computer vision library.
- TensorFlow & Keras β For simplifying deep learning model development and training.
- Stack Overflow & GitHub Community β For helpful discussions and code references during development.
- Tutorial Authors & Online Resources β For inspiration and foundational guidance in face recognition techniques.
- Everyone Testing the System β For helping refine the interface and improve accuracy with real-world feedback.