The photo is sent to Google's Gemini AI to estimate calories and macros. On Google's free tier it may be used to improve their products. It is a rough guess, so check the numbers.
Barcode data comes from Open Food Facts, an open database that can be incomplete. Label reading happens on your device. Meal photos go to Google's Gemini. Always check the numbers before adding.