Logo Lanfrica

sharifkiyimba/petcheck

Domain:

healthcare

Record type:

software
Creator:
sha
Host:
AI-powered veterinary care for Uganda pet owners # 🐾 PetCheck β€” AI-Powered Veterinary Web App **UICT Group 46 | Final Year Project | Diploma in Computer Science** --- ## Project Structure ``` petcheck/ β”œβ”€β”€ app.py ← Main Flask application β”œβ”€β”€ schema.sql ← MySQL database setup β”œβ”€β”€ requirements.txt ← Python dependencies β”œβ”€β”€ .env ← Environment variables (edit this!) β”œβ”€β”€ model/ β”‚ β”œβ”€β”€ predict.py ← AI prediction logic β”‚ β”œβ”€β”€ train.py ← Model training script β”‚ └── petcheck_model.pth ← Trained model (generated after training) β”œβ”€β”€ templates/ β”‚ β”œβ”€β”€ base.html ← Base layout β”‚ β”œβ”€β”€ index.html ← Home page β”‚ β”œβ”€β”€ upload.html ← Upload & diagnose page β”‚ β”œβ”€β”€ results.html ← Diagnosis results page β”‚ └── vets.html ← Vet finder page β”œβ”€β”€ static/ β”‚ β”œβ”€β”€ css/style.css ← All styles β”‚ └── js/main.js ← Frontend JavaScript └── uploads/ ← Uploaded pet images (auto-created) ``` --- ## βš™οΈ Setup Instructions ### Step 1 β€” Create & activate virtual environment ```bash python -m venv venv venv\Scripts\Activate.ps1 # Windows PowerShell # OR source venv/bin/activate # Mac/Linux ``` ### Step 2 β€” Install dependencies ```bash pip install -r requirements.txt ``` ### Step 3 β€” Set up MySQL database 1. Open MySQL Workbench or phpMyAdmin 2. Run the contents of `schema.sql` 3. Edit `.env` with your MySQL password ### Step 4 β€” Run the app ```bash python app.py ``` Open your browser at: **http://127.0.0.1:5000** --- ## πŸ€– Training the AI Model ### Step 1 β€” Collect images Create this folder structure and add pet images: ``` dataset/ train/ Healthy/ ← at least 50 images per class Skin Infection/ Eye Infection/ Ear Infection/ Ringworm/ Wounds/ Obesity/ Dental Disease/ val/ Healthy/ ← about 20% of your total images Skin Infection/ ... ``` ### Step 2 β€” Train the model ```bash python model/train.py ``` This will train for 20 epochs and save the best mod …