How does photo calorie counting work?

A photo calorie counter separates the foods in the picture, recognises each one, estimates its portion and converts that portion into calories, protein, fats and carbs. The portion is the hard step, because a single flat photo carries little depth. Treat the result as an estimate: fix the grams when you know them and add what the camera cannot see.

Four steps from photo to calories

A 2022 systematic review of 78 studies describes this chain in systems that recognise food from photos:

[1]

  1. Segmentation: the system separates the foods on the plate from each other.
  2. Recognition: each separated region gets a food name.
  3. Portion: the system estimates the volume of each food.
  4. Values: volume times density gives mass, and a nutrition database turns that into calories, protein, fats and carbs.

[1]

The best system in the review named the food correctly 90.27% of the time on the Food-101 photo set. That is a research system on a test set, not a measurement of any app, and it is about naming the food, not weighing it.

[1]

Why the portion is the hard part

The review's authors call volume and calorie estimation the least addressed stage of these systems. One photo is easy for the user but does not carry enough depth information, and assuming every food has the same height can cause large volume errors.

[1]

The systems they reviewed work around it in three ways: an object of known size in the frame, two photos from different angles, or a depth camera.

[1]

Check both the food name and the grams; the grams go wrong more often, because a photo shows no depth.

Where a photo gets it wrong

  • Mixed dishes: the parts of a salad, a soup or a burger cannot be told apart by eye.
  • Side-on photos: one food hides another.
  • Low light and unrelated objects in the frame.

[1]

Then there is what the camera cannot see: oil soaked into the food, butter stirred into rice, sauce under the meat. They have no visible shape or volume, so the app can at best guess them.

What to fix before you log the meal
SituationWhat to do
You know the weightCorrect the portion to the weighed amount instead of keeping the estimate.
You fried it or added sauceCheck whether the fat or sauce is already listed. If not, add it; if it is, correct the amount instead of adding it twice.
Mixed dishCheck the list of recognised ingredients and correct what is wrong.
Food with a barcodeScan the barcode instead of taking a photo and compare it with the label.

How to take a photo that is easier to estimate

  1. Fit the whole meal in the frame and shoot from above so nothing is hidden.
  2. Use good light and move your phone, keys and packaging out of the shot.
  3. Shoot before you eat. If you leave some, correct the portion afterwards.

[1]

How CalXd does it

In CalXd you take a photo of your meal. The AI estimates the ingredients and portion sizes and returns calories, protein, fats and carbs. AI results are estimates, marked with "≈" in the app: correct the portion with one tap, or edit the numbers by hand.

When a photo leaves the portion unclear, CalXd can ask you one short question before it saves the meal. Scan a barcode and CalXd looks the product up in Open Food Facts; you pick the portion, including your own grams. You can also log a meal by text or voice.

Questions

Is photo calorie counting accurate?

By 2022, systems had become better at naming the food, but the portion stays an estimate, because one photo carries little depth. The 2022 review compares systems tested on different photo sets, so there is no single accuracy figure. Correct the grams when you know them.

For packaged food, is a photo or a barcode better?

The barcode. The values then come from a product database rather than from reading the image. Open Food Facts is an open database that volunteers fill in from photos of packaging and labels, so when precision matters, compare the result with the label.

Can the app see oil and sauce?

Not directly. Oil soaked into the food and sauce under the meat have no visible shape or volume in a photo, so the app can at best guess them. Check the ingredient list: add fat or sauce that is missing, and correct the amount of any that is already there instead of adding it twice.

Sources

  1. Dalakleidi K. V., Papadelli M., Kapolos I., Papadimitriou K., Applying Image-Based Food-Recognition Systems on Dietary Assessment: A Systematic Review, Advances in Nutrition 13(6), 2022
  2. Open Food Facts, Discover Open Food Facts

Related guides

Get CalXd on the App Store