-
-
Notifications
You must be signed in to change notification settings - Fork 288
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
Price tags input from picture #6043
Comments
It depends if you want the intelligence to be in the mobile or in the backend :) Following discussions here - openfoodfacts/open-prices#526 (comment) - and quite a lot of work by @raphael0202 , we're very close to having actual price predictions from proof images stored in the backend. So uploading good quality proofs (with location & date) is key. AI & crowdsourcing can do the rest for the price extraction, no need to ask the initial contributor :) |
@raphodn I get your point, but if you go this way scanning is AI and could be done in the backend too. That said, my first move would be to see how many barcodes our scanner would detect with a picture like in the OP. |
We won't do full price addition without human validation (yet), so someone will check the extracted value anyway. It can be a random user, or the user who uploaded the proof in a subsequent screen. |
@raphael0202 I've just tested the contribution assistant:
I may sound negative, but here I'm talking as a user. I believe that the most pain-in-the-neck step is scanning barcodes, so this is where I'd expect some improvements. And if the picture is good enough for prices, I assume that prices are readable too. |
You can select an existing proof (either from your device gallery or from the already uploaded proof), so it doesn't have to be an online tool! Personally I upload bunches of pictures using the multiple image uploader (https://prices.openfoodfacts.org/prices/add/multiple), then process the prices later using the contribution assistant.
Was it a product with barcode? Gemini should detects whether it's a raw product (without barcode), and select the "category" or "barcode" type accordingly, but it can fails of course.
Well, if the barcode can be read from the price tag, you don't have to scan barcodes. That's the magic of this tool: if you take pictures that are qualitative enough, you can add 100 prices in 5 minutes in the shop, ~20 minutes on your desktop. And we're working on automating the extraction flow further. |
Fair enough, but in that case you must be confident that the images are "good enough" a priori, right? |
@raphael0202 About the "price per kg" bug: |
Indeed, it depends on the quality of the input image: the contributor should not take a picture too far away from the shelf, and should not shake.
Price tag cropping will be done automatically, we already integrated a ML model to do this, that will be integrated in the contribution assistant soon :) |
For the record I've just coded a small flutter app with ML Kit (barcode scanner and text recognition):
As a suggestion, a typical process for the Smoothie user would be to:
|
Problem
Entering price tags is a bit tedious.
Proposed solution
What if, in "Add price tags", we were able to extract as much data as possible from the proof picture.
The easy part would be automatically detecting the barcodes, and we may have already something coded for that.
The cherry on top would be finding the shop from the GPS, and reading the prices from the picture.
cc @raphodn @raphael0202
Intended typical proof picture
cf. #4588
The text was updated successfully, but these errors were encountered: