This project allows users to classify images using a pretrained Convolutional Neural Network (CNN) directly in their browser. With just one line of code, you can deploy and test this mask detection app effortlessly.
- Browser-Based: The app runs directly in your browser—no additional setup required.
- Simple to Use: Just upload a photo, and the app will quickly determine if a face is wearing a mask or not.
- Customizable: Leverage the pretrained model to classify your own content.
To get started:
- Ensure you have the latest stable version of Python installed on your system.
- Clone this repository and install the required dependencies:
pip install -r requirements.txt
The pretrained model was trained on Kaggle resources and offers excellent accuracy. For those interested, you can retrain or modify the model by following this Kaggle Notebook. It’s fast and easy to use!
- Create directory models and save your model in that folder using name mask_model.h5.
- Run the app with the following command:
python app.py
- Open the link displayed in your Python console (e.g., http://127.0.0.1:5000/).
- Upload any photo to the app interface.
- View the classification result in seconds!
For questions, support, or feedback, please refer to the contact information in my GitHub profile description.