Skip to content

fmendezc98/calorie-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calorie Tracker

A web app that estimates calories and macros from food photos using Claude AI vision.

What it does

Upload a photo of any meal or food item and get an instant breakdown of:

  • Calories
  • Protein, carbs, fat, fiber, sugar, sodium
  • Detected ingredients
  • Serving size estimate
  • Confidence level

Setup

1. Clone and install dependencies

cd "Calorie Tracker"
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

2. Add your API key

cp .env.example .env
# Edit .env and add your Anthropic API key
# Get one at console.anthropic.com

3. Run the app

python app.py

Open http://localhost:5000 in your browser.

Usage

  1. Drag and drop a food photo onto the page (or click to browse)
  2. Click Analyze Nutrition
  3. View the calorie and macro breakdown

Supports JPEG, PNG, WebP, and GIF images.

Notes

  • Nutritional values are AI estimates — accuracy varies by food type and photo clarity
  • Works best with clear, well-lit photos where ingredients are visible
  • Results are per the portion shown in the image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors