It needn’t be exact. A ballpark calorie/sugar that’s 90% accurate would be sufficient.
There’s some research that suggests that’s possible: https://arxiv.org/pdf/2011.01082.pdf
I think the use case is not people doing potato study but people that want to lose weight and need to know the amount of calories in the piece of cake that’s offered at the office cafeteria.