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

Start a packaging dashboard #314

Open
teolemon opened this issue Oct 23, 2022 · 19 comments
Open

Start a packaging dashboard #314

teolemon opened this issue Oct 23, 2022 · 19 comments

Comments

@teolemon
Copy link
Member

teolemon commented Oct 23, 2022

Who for

  • People who want to help with the packaging operation

What

Part of

@raphael0202
Copy link
Contributor

Currently annotating packaging doesn't have any effect (no prediction/insight creation), except the improvement of the logo dataset of course.

@alexfauquette
Copy link
Member

When the data structure will be fixed, will we be able to apply all those annotated logos to the products?

@teolemon
Copy link
Member Author

Added the standards shape to a test product, so that it's easier to find more: https://hunger.openfoodfacts.org/logos/search/?count=100&barcode=1234567890123

@alexfauquette
Copy link
Member

alexfauquette commented Oct 31, 2022

If you point me to the taxonomy to use, we might start the annotation thanks to this new tool:

https://hunger.openfoodfacts.org/logos/deep-search?type=label&value=en%3Apgi

The basic idea is:

  1. fetch 25 logos already annotated with the searched value
  2. for each logo we fetch the 50 nearest neighbors
  3. repeat to fill the buffer with not yet annotated images
  4. When the user annotates some logos, we fetch their neighbors and add them to the buffer.

It's slow to start

@teolemon
Copy link
Member Author

teolemon commented Nov 1, 2022

Here it is: https://static.openfoodfacts.org/data/taxonomies/packaging.json

@alexfauquette
Copy link
Member

In theory, we could use this interface; https://hunger.openfoodfacts.org/logos/search/?type=packaging&value=en%3Acanned

But I looked for canned packaging: https://hunger.openfoodfacts.org/logos/product-search?tagtype=packaging&tag=en%3Acanned

The only relevant logo I found is the one with written: "Boite et couvercle metal à recycler" for a such I assume the OCR is already doing the job

@teolemon
Copy link
Member Author

teolemon commented Nov 2, 2022

We probably need to be more flexible for annotation
cc @raphael0202 @alexfauquette
image

@teolemon
Copy link
Member Author

teolemon commented Nov 3, 2022

https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/jeter.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/pot-1.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/pot-2.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/pot-3.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/pot-4.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/pot-5.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/cintre.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/fleche.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/housse.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/lien-1.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/lien-2.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/tube-1.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/tube-2.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/aerosol.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/ampoule.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/canette.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/malette.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/stick-1.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/stick-2.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/terrine.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/ailettes.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/batonnet.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/brique-1.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/brique-2.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/brique-3.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/opercule.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/recycler.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/seringue.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/aerosol-2.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/bouchon-1.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/bouchon-2.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/bouchon-3.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/cartouche.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/etiquette.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/gobelet-1.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/gobelet-2.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/seau-metal.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/bocal-verre.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/bouteille-1.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/bouteille-2.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/bouteille-3.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/bouteille-4.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/bouteille-5.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/bouteille-6.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/bouteille-7.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/bouteille-8.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/bouteille-9.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/couvercle-1.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/couvercle-2.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/couvercle-3.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/enveloppage.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/filet-metal.svg
https://world.openfoodfacts.org/images/icons/packaging-shapes/light-mode/moule-autre.svg

@teolemon
Copy link
Member Author

teolemon commented Nov 3, 2022

https://world.openfoodfacts.org/images/lang/en/packaging/abs.73x90.svg
https://world.openfoodfacts.org/images/lang/en/packaging/fsc.90x90.svg
https://world.openfoodfacts.org/images/lang/en/packaging/07-o.73x90.svg
https://world.openfoodfacts.org/images/lang/en/packaging/05-pp.73x90.svg
https://world.openfoodfacts.org/images/lang/en/packaging/06-ps.73x90.svg
https://world.openfoodfacts.org/images/lang/en/packaging/40-fe.73x90.svg
https://world.openfoodfacts.org/images/lang/en/packaging/70-gl.73x90.svg
https://world.openfoodfacts.org/images/lang/en/packaging/71-gl.73x90.svg
https://world.openfoodfacts.org/images/lang/en/packaging/72-gl.73x90.svg
https://world.openfoodfacts.org/images/lang/en/packaging/01-pet.73x90.svg
https://world.openfoodfacts.org/images/lang/en/packaging/03-pvc.73x90.svg
https://world.openfoodfacts.org/images/lang/en/packaging/20-pap.73x90.svg
https://world.openfoodfacts.org/images/lang/en/packaging/21-pap.73x90.svg
https://world.openfoodfacts.org/images/lang/en/packaging/22-pap.73x90.svg
https://world.openfoodfacts.org/images/lang/en/packaging/50-for.73x90.svg
https://world.openfoodfacts.org/images/lang/en/packaging/51-for.73x90.svg
https://world.openfoodfacts.org/images/lang/en/packaging/60-tex.73x90.svg
https://world.openfoodfacts.org/images/lang/en/packaging/61-tex.73x90.svg
https://world.openfoodfacts.org/images/lang/en/packaging/02-pe-hd.73x90.svg
https://world.openfoodfacts.org/images/lang/en/packaging/84-c-pap.73x90.svg
https://world.openfoodfacts.org/images/lang/en/packaging/green-dot.90x90.svg

@teolemon
Copy link
Member Author

TODO add Terracycle to taxo: https://hunger.openfoodfacts.org/logos?logo_id=1476313&count=50

@teolemon
Copy link
Member Author

We need to add shapes to autosuggestions (eg: muselet et plaque)

@teolemon
Copy link
Member Author

From @alexfauquette

Not sure if we should go to an text field interface, or is a table as follow would be better

image

@teolemon
Copy link
Member Author

We potentially have weight and packaging label (FSC, 23% from recycled plastic…)

@teolemon
Copy link
Member Author

teolemon commented Dec 2, 2022

  • Unlegible values in responsive mode
  • Allow inputing untaxonomized values and values in other languages

@alexfauquette
Copy link
Member

Please don't use the Submit button. It's still a bit buggy. For now it does not seems to send accepter request

@teolemon
Copy link
Member Author

teolemon commented Dec 6, 2022

It would be helpful if we could view an arbitrary barcode in this game (as in type it it, or pass it through the URL)

@teolemon
Copy link
Member Author

@alexfauquette
Copy link
Member

I don't know if it solves the CORS issue. I'm still unable to read Perl 🫣
openfoodfacts/openfoodfacts-server#7796

@teolemon
Copy link
Member Author

@alexgarel mentionned he'd look into the CORS issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: To Discuss & Validate
Status: No status
Development

No branches or pull requests

3 participants