ishinvin / face-mask-opencv

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Face Mask Detection with OpenCV

A simple face mask detection application with OpenCV.

We use 2 pre-trained models of face detection and face-mask classification.

Then, we use OpenCV to run the model inference.

Installing

Download the project

git clone https://github.com/ishin-pie/face-mask-opencv.git

Install requirements.txt

cd face-mask-opencv
pip install -r requirements.txt

Running demo

Image detection

python image.py -i demo/image.jpg 

Camera detection

python camera.py

Web application

python server.py

Result

face-mask-detection

Acknowledgments

About


Languages

Language:Python 68.3%Language:HTML 31.7%