Detect food, count calories, and track your daily intake in one place – powered by YOLOv8.
📸 Upload image → get instant calorie estimation
📹 Real-time webcam detection
📊 Daily & weekly calorie dashboard
📄 Export clean PDF report
-
Clone repo
git clone https://github.com/VincentiusJacob/FoodCaloriesTracker.git cd FoodCaloriesTracker -
Install dependencies
python -m venv venv source venv/bin/activate pip install -r requirements.txt -
Run app
streamlit run app.py
FoodCaloriesTracker/
├── app.py
├── home.py # landing page
├── track_calories.py # upload & detect
├── track_calories_realtime.py # webcam live
├── reports.py # daily / weekly summary
├── pdf_report.py # export PDF
├── model/final_model_nano.pt # YOLOv8n weights
├── history/ # calorie logs
└── exports/ # PDF output folder
Ayam Goreng, Capcay, Nasi, Sayur Bayam, Sayur Kangkung, Sayur Sop, Tahu, Telur Dadar, Telur Mata Sapi, Telur Rebus, Tempe, Tumis Buncis, food-z7P4
- Upload or real-time webcam
- Confirm “Are you eating this?” → saved to history
- View daily & weekly calorie trend
- Export PDF for sharing / archiving
Webcam only works on HTTPS domains – allow camera permission when prompted.