A web app that estimates calories and macros from food photos using Claude AI vision.
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
1. Clone and install dependencies
cd "Calorie Tracker"
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt2. Add your API key
cp .env.example .env
# Edit .env and add your Anthropic API key
# Get one at console.anthropic.com3. Run the app
python app.pyOpen http://localhost:5000 in your browser.
- Drag and drop a food photo onto the page (or click to browse)
- Click Analyze Nutrition
- View the calorie and macro breakdown
Supports JPEG, PNG, WebP, and GIF images.
- 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