A web-based image classifier built using Flask and TensorFlow Keras that allows users to upload an image and get real-time predictions using a pre-trained VGG19 model.
- Upload images using drag & drop or file input
- Real-time preview with loading animation
- Predict the object in the image using VGG19
- Displays top prediction using
decode_predictions()
- User uploads or drags an image into the UI.
- JavaScript displays preview and enables the Predict button.
- On clicking Predict, image is sent to Flask backend.
- Flask loads the image, preprocesses it to 224x224, and runs prediction using VGG19.
- Top prediction is returned and shown to the user.
- Python 3.7+
- TensorFlow
- Flask
- NumPy
- Pillow
git clone https://github.com/yourusername/image-classifier-vgg19.git
cd image-classifier-vgg19
# Install dependencies
pip install -r requirements.txtpython app.pyThen open your browser and go to:
http://127.0.0.1:5000/
If you want to fine-tune or use a custom model, replace vgg19.h5 with your own .h5 model file.
Make sure to update the preprocessing accordingly in model_predict().
- VGG19 model via TensorFlow Keras Applications
- Frontend styled with Bootstrap and FontAwesome

