A system capable of detecting masks developed using YOLOv3 Darknet. This system can detect mask in image, video or in live webcam.
yolov3-mask-detection-final1.ipynb
-
Install Python 3.8.6 from Python3.8
-
Install all requirements using:
pip install -r requirements.txt
Better make a virtual environment before installing.
-
Download the weight from this link: YOLO Weights
-
To detect in image:
py test_on_photo.py
- To detect in live video:
py test_on_live_video.py
output_on_video.mp4
output_on_live_webcam.mp4
P.S: FPS was a bit low so detections were lagging in live video stream
Special Thanks to Siddhant Sharma, Abhinandan Shrestha, Nitess Kumar Das