Skip to content

face mask detector is an basic app that can detect either a person is with mask or without mask. its built in python with opencv

License

Notifications You must be signed in to change notification settings

Inzimam-Tariq/FaceMaskDetector-PythonAndOpenCV

Repository files navigation

FaceMaskDetector-PythonAndOpenCV

Table of content

  1. Face Mask Detector Demo Video
  2. License
  3. System and version used
  4. Requirements
  5. How to build
  6. Multi-face mask detection proof

Demo Video


System and versions used

I used

  • windows 10 OS
  • Python 3.7 (because tensorflow is not currently available for Python 3.9)
  • Architecture is 64-bit (Windows, Python, OpenCV)
  • For versions of dependencies you can read requirements.txt

How to build on your system

  1. Clone the repo or Download and extract
  2. Open project in any code editor (you can also open the cmd in the folder where you clone or extract code)
  3. Run "pip install -r requirements.txt" command without qoute (it will install all the dependencies)
  4. Open train_mask_detector.py file and change the path of dataset i.e. on my system its "D:\Web\FaceMaskDetector-PythonAndOpenCV\dataset"
  5. If everything goes normal you can proceed to step 7
  6. OpenCV may not be istalled properly if so, download and install OpenCv Here is a good documentation
  7. run "python train_mask_detector.py" to train your model. (It will take quite a long time.)
  8. run the "detect_mask_video.py" to open camera and see the app working. (It will take quite a long time.)

That's it 😄.

Multiple face mask detection proof

Multi-face mask detection

About

face mask detector is an basic app that can detect either a person is with mask or without mask. its built in python with opencv

Topics

Resources

License

Stars

Watchers

Forks

Languages