Snake Classification AI is a machine learning project designed to classify snakes as either venomous or non-venomous using image analysis. The model is trained using TensorFlow and Keras, and is wrapped in a simple web application for user interaction. This project is intended for educational and recreational purposes.
- Trained ML model for snake classification (venomous vs non-venomous)
- Built with TensorFlow and Keras libraries
- Interactive web frontend with image upload and prediction functionality
- User-friendly interface for submitting images and viewing classification results
- Error handling for invalid or unsupported image file types
- Python 3.x
- TensorFlow
- Keras
- Flask
- Pillow (PIL)
-
Clone the repository:
git clone https://github.com/adhikari-pratik/snake_classification_AI.git cd snake_classification_AI -
Install required packages:
pip install -r requirements.txt
(If
requirements.txtis missing, install packages manually:pip install flask tensorflow keras pillow) -
Ensure the trained model file (
mobilenetmodel.h5) is present in the project root.
python app.pyOpen a browser and navigate to http://localhost:5000 to access the web interface.
- Upload an image of a snake.
- Click "Predict" to see whether the snake is classified as venomous or non-venomous.
app.py– Flask web server and ML inference logictemplates/– HTML templates for web UIstatic/– CSS and JavaScript for styling and interactivitymobilenetmodel.h5– Pre-trained TensorFlow/Keras model
- Upload image button
- Display of uploaded image
- Predict button for classification
- Result page showing the prediction
This project is developed for learning and recreation. Please credit the author if you reuse code.