openfoodfacts / openfoodfacts-dart

Open Food Facts API Wrapper
https://pub.dev/packages/openfoodfacts
Apache License 2.0
167 stars 67 forks source link

Implement Robotoff nutrition prediction route #738

Open teolemon opened 1 year ago

teolemon commented 1 year ago

What

monsieurtanuki commented 1 year ago

@teolemon @raphael0202 Not really sure what we try to achieve here, but maybe I'm mislead by my unsuccessful tests.

I get the following result with https://robotoff.openfoodfacts.org/api/v1/predict/nutrition?barcode=7300400481588&image_ids=55:

{"predictions":[],"image_ids":["55"]}

While the image 55 is something like that: Capture d’écran 2023-07-30 à 18 12 00

Other points:

raphael0202 commented 1 year ago

The current endpoint only works well on "text" nutrition tables. I would be in favor of waiting for a proper generic model for nutrition information extraction to be developed before its integration in Smoothie.

teolemon commented 3 weeks ago