This project demonstrates real-time face mask detection using the YOLOv8 model. The model is trained to classify images into three categories:
- With Mask
- Without Mask
- Incorrect Mask
- Accurate Mask Classification: Identifies whether individuals are wearing masks correctly.
- Streamlit App: User-friendly interface for uploading and predicting mask usage in images.
- MASK Detection: Fast and efficient detection, making it suitable for health monitoring.
- Dataset: Images labeled into three classes:
with mask
,without mask
, andincorrect mask
. - Model Training: YOLOv8 was used for training with custom augmentations.
- Prediction Results: Example predictions can be found below:
- Install dependencies:
pip install -r requirements.txt
- Run the Streamlit app:
streamlit run app.py
- Upload an image to get predictions.
This YOLOv8-powered mask detection app ensures high accuracy and speed, making it ideal for real-world deployment in areas like public safety and health monitoring.
I use the custom function to handle the dataset formats for YOLO. However, I did not upload the custom.py code file due to my code privacy