Skip to content

Anurag-Varma/Facemask-Detection

Repository files navigation

FaceMaskDetection

It can be used to detect if a person has a mask or not.

Requirements:

opencv
keras
python

Folders:

Folder fer: It has files of fer with small dataset and trained on it.
Folder fer_600000: It has files of fer_600000 which is trained with 600,000 images.Data set found from net.

Any one of these can be used and test them based on accuracy and needs.

Files:

The file FaceMaskDetection with video.py uses a video and detects from it.
The file FaceMaskDetection with webcam.py uses webcam of device to detect.

Cascading:

Any of the below ones can be used, use the best after trying both based on your use: cascadeH5.xml
haarcascade_frontalface_default.xml

Demo:

face.mask.detection.mp4

Note:

Dont forget to change paths of files, according to your pc, mentioned in comments in the code.

For any help or errors, comment on this repositoy

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages