Spaces:
Configuration error
Configuration error
File size: 1,405 Bytes
f8690c6 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
<h1 align="center">Setting up Face Mask Detection project in Windows</h1>
<div align= "center">
<h4>This is a guide to set up the project on Windows.</h4>
</div>
## 🚀 Installation
1. Clone the repo
```
> git clone https://github.com/chandrikadeb7/Face-Mask-Detection.git
```
2. Change your directory to the cloned repo and create a Python virtual environment named 'env', type the following commmand in command prompt
```
> py -m venv env
```
3. Activate the Virtual environment with
```
> .\env\Scripts\activate
```
4. Now, run the following command in your Command Prompt to install the libraries required
```
> pip3 install -r requirements.txt
```
<p align="center">
<img src="Readme_images/win_cmd.png">
</p>
<p align="center">Example</p>
## Running the project
1. Open terminal. Go into the cloned project directory and type the following command:
```
> python3 train_mask_detector.py --dataset dataset
```
2. To detect face masks in an image type the following command:
```
> python3 detect_mask_image.py --image images/pic1.jpeg
```
3. To detect face masks in real-time video streams type the following command:
```
> python3 detect_mask_video.py
```
3. To detect face masks in an image on webapp type the following command:
```
> streamlit run app.py
```
## Readme
You can find our Readme [here](/README.md).
|