최성환

Delete README.md

1 -<h1 align="center">Face Mask Detection</h1>
2 -
3 -<div align= "center">
4 - <h4>Face Mask Detection system built with OpenCV, Keras/TensorFlow using Deep Learning and Computer Vision concepts in order to detect face masks in static images as well as in real-time video streams.</h4>
5 -</div>
6 -
7 -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
8 -![Python](https://img.shields.io/badge/python-v3.6+-blue.svg)
9 -[![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/chandrikadeb7/Face-Mask-Detection/issues)
10 -[![Forks](https://img.shields.io/github/forks/chandrikadeb7/Face-Mask-Detection.svg?logo=github)](https://github.com/chandrikadeb7/Face-Mask-Detection/network/members)
11 -[![Stargazers](https://img.shields.io/github/stars/chandrikadeb7/Face-Mask-Detection.svg?logo=github)](https://github.com/chandrikadeb7/Face-Mask-Detection/stargazers)
12 -[![Issues](https://img.shields.io/github/issues/chandrikadeb7/Face-Mask-Detection.svg?logo=github)](https://github.com/chandrikadeb7/Face-Mask-Detection/issues)
13 -[![MIT License](https://img.shields.io/github/license/chandrikadeb7/Face-Mask-Detection.svg?style=flat-square)](https://github.com/chandrikadeb7/Face-Mask-Detection/blob/master/LICENSE)
14 -[![LinkedIn](https://img.shields.io/badge/-LinkedIn-black.svg?style=flat-square&logo=linkedin&colorB=555)](https://www.linkedin.com/in/chandrika-deb/)
15 -
16 -
17 -&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
18 -![Live Demo](https://github.com/chandrikadeb7/Face-Mask-Detection/blob/master/Readme_images/Demo.gif)
19 -
20 -
21 -
22 -## :innocent: Motivation
23 -In the present scenario due to Covid-19, there is no efficient face mask detection applications which are now in high demand for transportation means, densely populated areas, residential districts, large-scale manufacturers and other enterprises to ensure safety. Also, the absence of large datasets of __‘with_mask’__ images has made this task more cumbersome and challenging.
24 -
25 -
26 -## :hourglass: Project Demo
27 -:movie_camera: [YouTube Demo Link](https://www.youtube.com/watch?v=AAkNyZlUae0)
28 -
29 -:computer: [Dev Link](https://dev.to/chandrikadeb7/face-mask-detection-my-major-project-3fj3)
30 -
31 -[![Already deployed version](https://raw.githubusercontent.com/vasantvohra/TrashNet/master/hr.svg)](https://face-mask--detection-app.herokuapp.com/)
32 -
33 -
34 -
35 -<p align="center"><img src="https://github.com/chandrikadeb7/Face-Mask-Detection/blob/master/Readme_images/Screen%20Shot%202020-05-14%20at%208.49.06%20PM.png" width="700" height="400"></p>
36 -
37 -
38 -## :warning: TechStack/framework used
39 -
40 -- [OpenCV](https://opencv.org/)
41 -- [Caffe-based face detector](https://caffe.berkeleyvision.org/)
42 -- [Keras](https://keras.io/)
43 -- [TensorFlow](https://www.tensorflow.org/)
44 -- [MobileNetV2](https://arxiv.org/abs/1801.04381)
45 -
46 -## :star: Features
47 -Our face mask detector didn't use any morphed masked images dataset. The model is accurate, and since we used the MobileNetV2 architecture, it’s also computationally efficient and thus making it easier to deploy the model to embedded systems (Raspberry Pi, Google Coral, etc.).
48 -
49 -This system can therefore be used in real-time applications which require face-mask detection for safety purposes due to the outbreak of Covid-19. This project can be integrated with embedded systems for application in airports, railway stations, offices, schools, and public places to ensure that public safety guidelines are followed.
50 -
51 -## :file_folder: Dataset
52 -The dataset used can be downloaded here - [Click to Download](https://drive.google.com/drive/folders/1XDte2DL2Mf_hw4NsmGst7QtYoU7sMBVG?usp=sharing)
53 -
54 -This dataset consists of __3835 images__ belonging to two classes:
55 -* __with_mask: 1916 images__
56 -* __without_mask: 1919 images__
57 -
58 -The images used were real images of faces wearing masks. The images were collected from the following sources:
59 -
60 -* __Bing Search API__ ([See Python script](https://github.com/chandrikadeb7/Face-Mask-Detection/blob/master/search.py))
61 -* __Kaggle datasets__
62 -* __RMFD dataset__ ([See here](https://github.com/X-zhangyang/Real-World-Masked-Face-Dataset))
63 -
64 -## :key: Prerequisites
65 -
66 -All the dependencies and required libraries are included in the file <code>requirements.txt</code> [See here](https://github.com/chandrikadeb7/Face-Mask-Detection/blob/master/requirements.txt)
67 -
68 -## 🚀&nbsp; Installation
69 -1. Clone the repo
70 -```
71 -$ git clone https://github.com/chandrikadeb7/Face-Mask-Detection.git
72 -```
73 -
74 -2. Change your directory to the cloned repo and create a Python virtual environment named 'test'
75 -```
76 -$ mkvirtualenv test
77 -```
78 -
79 -3. Now, run the following command in your Terminal/Command Prompt to install the libraries required
80 -```
81 -$ pip3 install -r requirements.txt
82 -```
83 -
84 -## :bulb: Working
85 -
86 -1. Open terminal. Go into the cloned project directory and type the following command:
87 -```
88 -$ python3 train_mask_detector.py --dataset dataset
89 -```
90 -
91 -2. To detect face masks in an image type the following command:
92 -```
93 -$ python3 detect_mask_image.py --image images/pic1.jpeg
94 -```
95 -
96 -3. To detect face masks in real-time video streams type the following command:
97 -```
98 -$ python3 detect_mask_video.py
99 -```
100 -## :key: Results
101 -
102 -#### Our model gave 93% accuracy for Face Mask Detection after training via <code>tensorflow-gpu==2.0.0</code>
103 -
104 -![](https://github.com/chandrikadeb7/Face-Mask-Detection/blob/master/Readme_images/Screenshot%202020-06-01%20at%209.48.27%20PM.png)
105 -
106 -#### We got the following accuracy/loss training curve plot
107 -![](https://github.com/chandrikadeb7/Face-Mask-Detection/blob/master/plot.png)
108 -
109 -## Streamlit app
110 -
111 -Face Mask Detector webapp using Tensorflow & Streamlit
112 -
113 -command
114 -```
115 -$ streamlit run app.py
116 -```
117 -## Images
118 -
119 -<p align="center">
120 - <img src="Readme_images/1.PNG">
121 -</p>
122 -<p align="center">Upload Images</p>
123 -
124 -<p align="center">
125 - <img src="Readme_images/2.PNG">
126 -</p>
127 -<p align="center">Results</p>
128 -
129 -## :clap: And it's done!
130 -Feel free to mail me for any doubts/query
131 -:email: chandrikadeb7@gmail.com
132 -
133 -## :handshake: Contribution
134 -Feel free to **file a new issue** with a respective title and description on the the [Face-Mask-Detection](https://github.com/chandrikadeb7/Face-Mask-Detection/issues) repository. If you already found a solution to your problem, **I would love to review your pull request**!
135 -
136 -## :heart: Owner
137 -Made with :heart:&nbsp; by [Chandrika Deb](https://github.com/chandrikadeb7)
138 -
139 -## :+1: Credits
140 -* [https://www.pyimagesearch.com/](https://www.pyimagesearch.com/)
141 -* [https://www.tensorflow.org/tutorials/images/transfer_learning](https://www.tensorflow.org/tutorials/images/transfer_learning)
142 -
143 -## :eyes: License
144 -MIT © [Chandrika Deb](https://github.com/chandrikadeb7/Face-Mask-Detection/blob/master/LICENSE)