- Clone this code
$ git clone https://github.com/lgrateau/face-mask-detection-for-pi $ cd face-mask-detection-for-pi
- Go to the cloned directory
$ cd face-mask-detection-for-pi
- Create a virtual environment
$ python3 -m venv ./ $ source bin/activate
4. a Install python package on Mac OSx
$ pip3 install -r requirements.txt
4. b Install python package on Windows
$ pip3 install -r requirements.txt
4. c Install python package on Rapsberry
$ pip3 install -r requirements_for_pi.txt
$ cd face-mask-detection-for-pi $ source bin/activate
$ python3 detect_mask_video.py
Open a browser to this url : http://localhost:5000