Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement logos & labels crops fetch and annotate routes #957

Open
teolemon opened this issue Jul 30, 2024 · 2 comments
Open

Implement logos & labels crops fetch and annotate routes #957

teolemon opened this issue Jul 30, 2024 · 2 comments

Comments

@teolemon
Copy link
Member

Why - Problem description

  • We are now able to predict labels 300ms after image upload
  • Sometimes it's applied automatically, sometimes we have a prediction that needs to be validated
  • We'd like to let the user validate that in edit mode or product addition mode, beyond the classic Yes/No Robotoff questions
  • The route allows to filter on a given barcode, and get all crops for it

What - Proposed solution

  • Implement logos & labels crops fetch and annotate routes

Alternatives you've considered

Additional context

@monsieurtanuki
Copy link
Contributor

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?

@raphael0202
Copy link

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

For the moment yes, we do..

Sometimes it's applied automatically, sometimes we have a prediction that needs to be validated

For information insights derived from logos KNN are never applied automatically! Only when the logo was manually annotated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants