Skip to content

Repository files navigation

Cattle-cloud

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.

1. Clone the repository

git clone https://github.com/pronoym99/Cattle-cloud.git
cd Cattle-cloud

2. (Optional) Create and activate a virtual environment

Windows (PowerShell):

python -m venv .venv
.\.venv\Scripts\Activate.ps1

macOS/Linux:

python3 -m venv .venv
source .venv/bin/activate

3. Install required packages

pip install --upgrade pip
pip install tensorflow pillow numpy sqlalchemy

4. Run the identification script

# Run from the repository root:
python identification.py

This will:

5. Use your own image

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.


Database ER Diagram

erDiagram
    USER {
        int userid PK
        int phone
        string address
    }

    LIVESTOCK {
        int livestockid PK
        string address
    }

    REGISTRATION {
        int regid PK
        int userid FK
        int livestockid FK
    }

    TRANSACTIONS {
        int txnid PK
        string txntime
        bool txnstatus
        int regid FK
        int seller_id FK
        int customer_id FK
        int livestock_id FK
    }

    TRANSPORTATION {
        int event_id PK
        int livestock_id FK
        int transporter_user_id FK
        string destination_address
        string transported_at
    }

    USER ||--o{ REGISTRATION : "owns"
    LIVESTOCK ||--o{ REGISTRATION : "registered via"
    REGISTRATION ||--o{ TRANSACTIONS : "referenced in"
    USER ||--o{ TRANSACTIONS : "sells"
    USER ||--o{ TRANSACTIONS : "buys"
    LIVESTOCK ||--o{ TRANSACTIONS : "transferred in"
    LIVESTOCK ||--o{ TRANSPORTATION : "transported in"
    USER ||--o{ TRANSPORTATION : "transports"
Loading

About

Quick-start cattle breed identification using Keras and the Indian Bovine Breeds dataset

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages