openfoodfacts / openfoodfacts-server

Open Food Facts database, API server and web interface - 🐪🦋 Perl, CSS and JS coders welcome 😊 For helping in Python, see Robotoff or taxonomy-editor
http://openfoodfacts.github.io/openfoodfacts-server/
GNU Affero General Public License v3.0
653 stars 383 forks source link

Quality Facet - Barcodes - Detect any mismatching barcode in pictures associated to a barcode #1020

Open teolemon opened 6 years ago

teolemon commented 6 years ago

Someone added a whisky picture to mineral water. The whisky picture had a different barcode on it than the barcode it was associated with. We could have detected that automatically and flagged it in the quality facet.

Example: Image with 3250391319053 barcode stored on 3250392807269: https://world.openfoodfacts.org/images/products/325/039/280/7269/6.jpg image

Product Opener is able to detect the right barcode using our current library: https://world.openfoodfacts.org/product/3250391319053/confiture-fraise-intermarche

bredowmax commented 4 years ago

There are actually quite a few products that have a different barcode on the picture than the barcode associated with. I found these yesterday:

Barcode on product OFF code URL
20725488 1759 https://world.openfoodfacts.org/product/1759
218359806222 6181459806888 https://world.openfoodfacts.org/product/6181459806888/alaska-cod-fillets-wild-caught-trader-joe-s
4061458044295 52918537 https://world.openfoodfacts.org/product/52918537/cremiger-weichkase-alpenmark
4300175615518 3989951 https://world.openfoodfacts.org/product/03989951
4311501355022 5378547355088 https://world.openfoodfacts.org/product/5378547355088
4311501358405 9314507358405 https://world.openfoodfacts.org/product/9314507358405/ganze-aprikosen-edeka
4311596455706 104311596455706 https://world.openfoodfacts.org/product/0104311596455706/
4337185096273 8337785096273 https://world.openfoodfacts.org/product/8337785096273/mimelli-k-classic
4337185352201 83662201 https://world.openfoodfacts.org/product/83662201
4337226537658 5337226537658 https://world.openfoodfacts.org/product/5337226537658/nougat-pockets-k-classic
00429740 40228388 https://world.openfoodfacts.org/product/40228388/
00453806 90457388 https://world.openfoodfacts.org/product/90457388
teolemon commented 4 years ago

Proposal for a facet: product-has-images-with-a-different-barcode

bredowmax commented 4 years ago

It may be worth noting that I found all these when researching barcode ranges of retailers. Certain retailer brands circulate seemingly exclusively within certain ranges (for example: Trader Joe's, or K-Classic by Kaufland, or Edeka products).

When I investigated exceptions to this rule (say a barcode of a brand where 90% of the other barcodes would look very similar to another, but this one stood out), almost every single exception turned out to be a different barcode on the product than in OFF, and is likely a faulty addition to the database