Note
This is the helper repo for the Indian Bovine Breeds Kaggle dataset.
Minimal Quick Start: Clone, Install, and Run the Keras-Based Identification Script.
git clone https://github.com/pronoym99/Cattle-cloud.git
cd Cattle-cloudpython -m venv .venv
.\.venv\Scripts\Activate.ps1python3 -m venv .venv
source .venv/bin/activatepip install --upgrade pip
pip install tensorflow pillow numpy# Run from the repository root:
python identification.pyThis will:
- Load the Keras model from models/cattle_identification_keras_model.h5
- Use the sample image at assets/Indian_bovine_breeds/Hallikar/Hallikar_4.jpg
- Print the detected class (e.g.,
Class detected: <BreedName>)
Edit the image path in identification.py:
# In identification.py
from PIL import Image
image = Image.open("path/to/your/image.jpg")Keep the preprocessing (224x224) unchanged.