This dataset consists of 4095 images belonging to two classes:
- with_mask: 2165 images
- without_mask: 1930 images
The images used were real images of faces wearing masks. The images were collected from the following sources:
- Bing Search API
- Kaggle datasets
- RMFD dataset
All the dependencies and required libraries are included in the file requirements.txt
- Clone the repo
$ git clone [email protected]:knowledge-base/mask_det.git
- Change your directory to the cloned repo
$ cd mask_det
- Create a Python virtual environment named 'test' and activate it
$ virtualenv test
$ source test/bin/activate
- Run the following command in your Terminal/Command Prompt to install the libraries required
$ pip3 install -r requirements.txt
- To detect face masks in real-time video streams type the following command:
$ python3 mask_det_video.py