I saw a demo awhile back of an app that would try to estimate calories based on pictures of food. It was wildly inaccurate. For people who are determined to make it work, counting calories requires an obsessive mindset that will weigh a handful of nuts before eating them.
This is one of the few use cases where Soylent ( the pseudo food ) may be superior. Because you can guarantee that you are eating x calories per day and only x calories per day.
But then, you'd be living on soylent...
Another example is a bottle of ice tea might say '4 servings per bottle' and say 30 calories/serving. Missing those small numbers is easy to do and I know of people thinking they're only consuming 30 calories vs. 120 calories.
The cheapest food is also very unhealthy, while in other countries it is opposite. That along with a car and sit in an office culture leads to part of the obesity epidemic today.
A magic automatic calorie counter would decrease the effort to diet significantly and would still be a great educational tool for many people.