Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nhatthaiquang-agilityio/face-mask-detection
Build face mask detector with OpenCV, Keras/TensorFlow, and Deep Learning.
https://github.com/nhatthaiquang-agilityio/face-mask-detection
keras opencv tensorflow
Last synced: 19 days ago
JSON representation
Build face mask detector with OpenCV, Keras/TensorFlow, and Deep Learning.
- Host: GitHub
- URL: https://github.com/nhatthaiquang-agilityio/face-mask-detection
- Owner: nhatthaiquang-agilityio
- Created: 2021-01-28T01:43:58.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-29T06:52:01.000Z (almost 4 years ago)
- Last Synced: 2024-04-16T07:09:39.293Z (9 months ago)
- Topics: keras, opencv, tensorflow
- Language: Python
- Homepage:
- Size: 82.7 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Face Mask Detection
Build face mask detector with OpenCV, Keras/TensorFlow, and Deep Learning.### Requisites
+ OpenCV
+ TensorFlow
+ Scikit-learn
+ Numpy### Structure
```
|-- devops
|-- scripts
|-- Dockerfile
|-- src
|-- dataset
|-- examples
|-- face_detector
|-- detect_mask_image.py
|-- detect_mask_video.py
|-- mask_detector.model
|-- train_mask_detector.py
```+ The `devops` contains the docker-compose file.
+ The `scripts` contains the `build.sh` file for building docker image.
+ The `dataset` directory contains the data for training model.
+ The `examples` are provided so that you can test the static image face mask detector.
+ The `mask_detector.model` is model which is trained from the dataset.### Usages
#### Using Docker
+ Build image
```
./scripts/build.sh
```+ Train model
```
cd devops
docker-compose up train-mask-detector
```+ Mask detection with image
```
cd devops
docker-compose up detect-mask-image
```### References
+ [Fine-tuning with Keras and Deep Learning](https://www.pyimagesearch.com/2019/06/03/fine-tuning-with-keras-and-deep-learning/)
+ [Face Mask Detector with OpenCV](https://www.pyimagesearch.com/2020/05/04/covid-19-face-mask-detector-with-opencv-keras-tensorflow-and-deep-learning/)