I'm pretty sure someone has just released something like this. A handheld scanner that will tell you the calories/macros for your plate of food.
It was a one off cost of circa £150, then £15 or so a month ongoing.
Apologies but can't be arsed to find the link on mobile.