openfoodfacts / openfoodfacts-dart

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

Implement logos & labels crops fetch and annotate routes #957

Open teolemon opened 1 month ago

teolemon commented 1 month ago

Why - Problem description

What - Proposed solution

Alternatives you've considered

Additional context

monsieurtanuki commented 3 weeks ago

For the moment, if you go to https://robotoff.openfoodfacts.org/api/v1/images/logos/search?barcode=3560071232719&annotated=true, you get answers like

"annotation_value": "en:nutriscore-grade-b",
"annotation_value_tag": "en:nutriscore-grade-b",
"taxonomy_value": "en:nutriscore-grade-b",

@teolemon @raphael0202 Does that mean that we need an additional call to the taxonomy API in order to get the localized name instead of the tag?