
๐ง Intelligent AI Calorie Estimator
A smart, image-based food calorie and nutrition estimator built using Gemini 1.5 Pro. Upload a photo of your meal, and the AI will analyze it, identify food items, estimate quantities, and ask only the most essential questions before delivering a personalized calorie and macronutrient breakdown.
๐ธ Demo
๐ Features
โ
Upload a photo of any meal
โ
Gemini 1.5 Pro performs visual analysis + inference
โ
Chain-of-thought reasoning with follow-up questioning
โ
Fat-smart estimation logic (pan-frying, deep-frying attribution)
โ
Clean, interactive Streamlit interface
โ
Final JSON-based macro breakdown per item
โ
Total meal calories, protein, carbs, and fat
โ
Optimized prompt engineering for Gemini's strengths
๐ง Tech Stack
Frontend: Streamlit
AI Backend: Google Gemini 1.5 Pro API
Language: Python 3.11
Model Prompting: Chain-of-Thought + Few-shot examples
Deployment Ready: Streamlit Sharing
๐งช How It Works
Upload Meal Photo:
The app uses Streamlit to capture an image.
Visual Analysis (Gemini 1.5 Pro):
The AI:
Identifies food components
Estimates portions using visual scale cues
Assigns confidence scores
Generates clarifying questions only when needed
User Answers Questions:
You provide additional context (e.g., how much chicken was used, type of oil, etc.).
Final Nutritional Breakdown:
The AI calculates:
Calories
Protein
Carbohydrates
Fat
for each item and totals them.
0 likes ยท 11 views ยท Aug 10, 2025
Developed an AI-based food calorie estimator using Gemini 1.5 Pro and Streamlit.