Skip to content

salimdotpy/Face_mask_dection_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

😷 Face Mask Detection App (Tkinter Version)

A real-time face mask detection desktop application built with Python, TensorFlow, OpenCV, and Tkinter.
The app can detect whether a person is wearing a mask using your webcam or uploaded images, with a simple graphical interface.


🚀 Features

  • 🎥 Real-time face detection via webcam
  • 🖼️ Option to test detection using image files
  • 🧠 Deep learning model (CNN) trained on masked/unmasked face datasets
  • 💻 Simple and interactive Tkinter GUI
  • 🧩 Model built with TensorFlow/Keras for accurate classification

🧠 Model Overview

The deep learning model is trained using a Convolutional Neural Network (CNN) that classifies faces as either:

  • Mask 😷
  • No Mask 🚫

The model can be further improved or retrained using your own dataset.


🧩 Tech Stack

  • Python 3.10+
  • Tkinter (GUI)
  • TensorFlow / Keras
  • OpenCV
  • NumPy
  • Pillow
  • Imutils
  • Rich (for styled console output)

⚙️ Installation & Setup

  1. Clone the repository

    git clone https://github.com/salimdotpy/Face_mask_dection_app.git
    cd Face_mask_detection_app
  2. Create and activate a virtual environment (recommended)

    python -m venv venv
    source venv/bin/activate   # On Windows: venv\Scripts\activate
  3. Install dependencies

    pip install -r requirements.txt
  4. Run the application

    python app.py
  5. (Optional) Build a standalone executable To package your app into an .exe file:

    pyinstaller --onefile --noconsole app.py

🧩 Example Output Mode Output Webcam Detects and labels "Mask" or "No Mask" in real-time Image Displays prediction on uploaded photo

🤝 Contributing Contributions, suggestions, and improvements are welcome! Feel free to open an issue or submit a pull request.

👨‍💻 Author

Selim Adekola 📧 salimdotpy@gmail.com 📞 +2348076738293

About

A real-time face mask detection application using computer vision and deep learning to identify whether a person is wearing a mask or not via webcam or image input.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages