Coders Packet

Mask Detection using OpenCV and TensorFlow

By Shreoshree Adhikari

The project detects whether a person in the video/image is wearing a mask or not using OpenCV and Tensorflow Python module.

Mask Detection is a code used to detect whether a person in the input image or video is wearing a mask or not. This packet is to detect whether a person in the video/image is wearing a mask or not using OpenCV and Tensorflow Python module.

Firstly we will load the dataset. The data used here is available in the Github repository of "Prajna Bhandary"(dataset).

The dataset is divided as follows:

Data 

1. with_mask

2. with_mask

I have divided the data into test and train folders. I have arranged the data as follows:

1. train : 1.1 with_mask , 1.2 without_mask

2. test : 2.1 with_mask , 2.2 without_mask

This project is implemented on Jupyter notebook of Anaconda. For face tetection, i've used the haarcascade_frontalface_default.xml file from the haarcascade repository on Github.

The Python libraries used are :

1. NumPy

2. Os

3. Tensorflow

4. OpenCV

 

 

Download Complete Code

Comments

No comments yet

Download Packet

Reviews Report

Submitted by Shreoshree Adhikari (sashreoshreeadhikari)

Download packets of source code on Coders Packet