This web application allows users to upload an image of an animal and get it classified into one of several classes from a broader set of categories. The classification model is trained on a diverse dataset of animal images, covering various species and breeds.
Before running the application, you need to have the following installed:
- Python 3.x
- Django web framework
- TensorFlow library
- Chart.js library
- Keras library
-
Clone this repository to your local machine.
-
Install the required Python packages using the following command:
pip install -r requirements.txt
-
Navigate to the project directory in the terminal.
-
Start the Django development server using the following command:
python manage.py runserver
-
Open your web browser and go to
http://localhost:8000/
to access the home page.
- On the home page, you will find instructions on how to use the application.
- Click the "Choose an image" button to select an image of an animal from your local device.
- In this step, you will need to choose an appropriate photograph that clearly shows the animal you want to classify.
- Browse through your local files and select the most suitable image.
- After the image is classified, you will be redirected to the result page, which displays the predicted class for the uploaded animal image.
- Additionally, a bar chart will be shown, indicating the probabilities of the top classes the model considered.
- To classify another image, click the "Return to Home" button at the bottom of the result page. This will take you back to the home page, and you can repeat the process.
- The animal classification model used in this application was trained using the TensorFlow library.
- The animal images dataset was obtained from source.
Please note that the dataset used for training the model is not included in this repository due to privacy and space-saving reasons. However, you can download the dataset from the link above if you need it for training or further analysis.