Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Feedback welcome

A topic by mounika potladurthi created 8 days ago Views: 65 Replies: 5
Viewing posts 1 to 6
Submitted

 Idea: smarter OCR for inline multilingual ingredient lists (feedback welcome)

THE PROBLEM

Many labels list ingredients in several languages on the same line, for example WATER/EAU/WASSER SALT/SEL/SALZ. One example is Elephant Green Jackfruit in Brine (barcode 8851011221265). Horizontal OCR reads this as one line, so the languages run together. This seems to produce "unknown ingredients" and language mismatch flags such as en-contains-fr.

THE IDEA

Add a smarter OCR step that separates the languages before the text reaches the ingredients taxonomy. It could use layout segmentation (word positions) or split the text into pieces and check the language of each piece.

WHY IT MATTERS

- Fewer unknown ingredients and fewer manual corrections.

- Cleaner ingredient data for everything built on it.

- Useful for Canada, where bilingual labels are common, and for any multilingual label.

HOW IT COULD BE TESTED

1. Collect a sample of products with inline multilingual ingredient lists.

2. Try two or three splitting approaches (layout-based and separator-based).

3. Compare unknown ingredients and language flags before and after.

QUESTIONS

1. Has the team already looked at this, on the server side or in the mobile app? Is there an existing issue?

2. Would it fit better as a server-side step or as app-side preprocessing?

3. Is there a list of affected products I could use?

4. Any pitfalls, for example slashes that are not language separators?

Host (3 edits)

It's a good one Mounika, but it would have to be custom made/trained for Canada.

Take a look at this, https://www.canada.ca/en/health-canada/services/food-nutrition/nutrition-labelli...

We often have french and english, with two kind of measures on the same labels.

I don't know how Robotoff can deal with it, but I doubt that he can extract it all correctly.

It should be feasible with today's models. Impact should be very positive.

Submitted

Thank you for the feedback, and for the link!

That makes sense. Canadian labels are bilingual (English and French) and often show two kinds of measures on the same label, so a general approach would not be enough. This should be built and tested on Canadian labels specifically.

I'd widen the idea to cover both the ingredient lists and the nutrition facts table. A first step could be:

1. Collect a small sample of Canadian products with bilingual labels and double units.

2. Check how well the current OCR and Robotoff results match those labels.

3. Try a layout-aware approach with current models, and compare the results on the same sample.

Two questions:

- Is there a list of Canadian products with this problem that I could start from?

- Would you prioritize the ingredient lists or the nutrition table first?

Thanks again!

Host (2 edits)

I would begin by asking on the #robotoff channel (@Pierre or @Raphael) if it's a real problem. I believe that they've updated Robotoff last year and this challenge may be solved. I've just tried with Gemini and it's able to ocr and parse correctly the previous example.

Host (1 edit)

I thought that the nutrition table was a bigger problem, but ingredients are more often missing than nutrition facts in ca.openfoodfacts.org, so it may be the opposite.

Submitted

Thank you! That's a really useful suggestion. I'll check with Pierre and Raphael in the #robotoff channel to understand whether the multilingual OCR issue is already addressed in the latest version.

I'll also compare the missing ingredient data and nutrition facts in Canadian products to identify where the bigger gap exists. Based on that investigation, I'll refine the idea and focus on the area where it can create the most impact.

Thanks for guiding me in the right direction!