openfoodfacts / hunger-games

One click Mini-Games for Open Food Facts
https://hunger.openfoodfacts.org
23 stars 39 forks source link

Start a packaging dashboard #314

Open teolemon opened 2 years ago

teolemon commented 2 years ago

Who for

raphael0202 commented 2 years ago

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

alexfauquette commented 2 years ago

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

teolemon commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

alexfauquette commented 2 years ago

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 commented 2 years ago

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

image
teolemon commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

teolemon commented 2 years ago

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

teolemon commented 2 years ago

From @alexfauquette

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

image

teolemon commented 2 years ago

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

teolemon commented 1 year ago
alexfauquette commented 1 year ago

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

teolemon commented 1 year ago

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 commented 1 year ago
alexfauquette commented 1 year ago

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

teolemon commented 1 year ago

@alexgarel mentionned he'd look into the CORS issue