From photo to calories. How the AI does it.
Three stages: a vision model identifies the foods, a portion estimator sizes each one, and a nutrition database returns calories and macros. About two seconds in total, with a within-8% dietitian benchmark target.
Three stages. About two seconds.



- 01
Detect
A vision model identifies each food, with a confidence score.
- 02
Estimate the portion
Plate scale, utensil cues and visual volume become grams.
- 03
Look up nutrition
Grams times USDA FoodData Central values equals calories.
What is on this plate?
A vision model takes the photo and returns a structured list of foods detected, with bounding regions and confidence scores. It recognizes both individual foods (“grilled chicken,” “white rice”) and composed dishes (“Chipotle chicken bowl,” “Big Mac”).
For composed dishes from common chains, the model identifies the dish as a unit, then pulls posted nutrition data instead of summing the components. Detection is usually accurate; it's not where most error lives.
The hardest stage.
The portion estimator looks at each detected food and estimates how much is there in grams. It uses plate scale (standard plate sizes are known), utensil scale (forks and spoons are secondary references), and visual volume (depth cues from shadows and color gradient).
Once volume is estimated, the model multiplies by the known density of each food (rice is about 0.7 g/cm³, beef about 1.0 g/cm³) to get grams. Portion estimation is where most of the error in any AI picture calorie counter lives. The interface compensates with a confidence range and one-tap adjust.

Plain arithmetic, not a guess.
Calorie values are not guessed by the AI. Each detected food maps to a public nutrition database, and calories are calculated from the estimated grams.
Primary database: USDA FoodData Central. Open Food Facts for international packaged products. Restaurant chain menus stored as a curated dataset, refreshed quarterly.
× 1.30 kcal/g (USDA FDC ID 169757)
= 260 kcal

Where the error lives.
Against our within-8% dietitian target, most of the remaining error comes from one stage: sizing the portion.
| Stage | Typical error contribution |
|---|---|
| Food detectionRight or wrong food | Low on common foods. |
| Portion estimationRight food, wrong amount | Dominant: the main source of error. |
| Nutrition lookupRight food, right amount | Small: database values are standard. |
Single-call AI is a black box.
A simpler design would be: feed the photo to a multimodal model, ask “how many calories is this?”, return the answer. We don't do this. Single-call calorie estimation can hallucinate confidently, and there's no way to debug a wrong answer or correct one stage.
The three-stage pipeline is slightly slower but transparent. If detection is wrong, one tap fixes it. If the portion is wrong, a nudge fixes it. You see what the AI saw and correct each stage independently.
Six ways in. One pipeline.
- 01PhotosThe default. Top-down or 45° angle is best.
- 02Recipe screenshotsIngredient lists are parsed from screenshot text.
- 03Menu screenshotsRestaurant menu item names are recognized as food entities.
- 04Nutrition label photosRead directly. Most accurate input because lookup is exact.
- 05Text only"I had a chicken sandwich and a small fries" works without a photo.
- 06VoiceVoice transcription feeds the same text pipeline (in the Onmode app).
Quick answers.
Keep reading.
- 02How accurate is the AI calorie counter?Per-meal breakdown, peer-reviewed comparison, and the error budget.
- 03How the AI calorie counter worksThe 3-stage pipeline: detect, estimate portion, look up nutrition.
- 01How to get the most accurate read10 tricks for sharper estimates: 45° angle, the scale trick, and what to type.
- 02The free AI calorie trackerSnap, speak, or type a meal and get calories and macros in about 2 seconds. Try 3 meals with no account.
- 03Is the AI calorie counter accurate?Close enough to steer real decisions. Our benchmark target: within 8% of a dietitian.
- 04The free AI calorie counterNo signup, no card. 3 free tries, then a free account gives you 2 a day.
- 05Most accurate AI calorie counterHead-to-head: calorietrack vs Cal AI vs SnapCalorie vs Bite AI.
- 06Cal AI vs calorietrackSide-by-side on accuracy, price, and the free tier.