This is a Flask web application that allows users to upload images and uses a trained model to make predictions.
- Image upload functionality
- Image prediction using a trained TensorFlow/Keras model
- Flask
- Flask-Uploads
- TensorFlow
- Keras
- OpenCV
- numpy
- Navigate to the root URL of the web application.
- Use the upload form to upload an image.
- The application will save the image and use a trained model to make a prediction.
The application uses a trained model stored in a file named model.h5
. Make sure this file is in the same directory as app.py
.
Uploaded images are stored in the static/img
directory. Make sure this directory exists and the application has write permissions to it.