I’m a frickin genius.

Context: my kid is mildly allergic to citric acid and citric fruit. Brings out eczema. And citric acid is in SO many things. And it’s painful checking ingredients lists for it.

This morning I wondered: can my phone OCR the ingredients list and check it?

My first thought was to make a little web app. But there doesn’t seem to be a OCR in web browsers yet.

But I KNOW my phone can get text from images.

Then…

Apple Shortcuts!!!

CHECK THIS OUT!!!

Video of iOS Shortcut that checks ingredients for citric acid - see the post above for what this is about.

https://vimeo.com/788324740

Vimeo
@ross Privacy settings don't seem set right on that video?
@ross just curious, how accurate is the ocr? Haven’t used at all but see the value on applications like this.
@edbro Seems good if you can get a clear photo. Small bottles are hard as they have a curve! And reflections on shiny packaging don’t help but it seems good!
@edbro @ross it is not perfect, you could miss a word due to misspelling. But you could make another shortcut to scan and then read the entire result back to you. That Way you might understand a misspelled word anyway.
@ross I love the idea! I just tried the same for my own allergy and it seemed relatively unreliable for me. Maybe the iPhone SE (2022) camera is just crap? Maybe text recognition isn't mature enough?
@freddy Hmm. Don’t know. My results were pretty good if I could get a clean picture!
@ross that's pretty cool!
@ross That's really cool.
@vinceknight Isn't it!!? 🤯
@ross I really need to get in to shortcuts more. That seems incredibly powerful what you've been able to put together there!
@vinceknight It's my first go with shortcuts. Was inspired to try it. And now I want to make ALL the shortcuts!!! 😆

@ross
Lots of food allergy and intolerances in my family. An app for this would be invaluable.

Maybe where you could configure a list of no-go words like

peanut
sucrose
citric

Etc

@syntaxseed No one would build an app like this though. The consequences if you got it wrong would be immense. You'd have your ass sued so fast!

Only use for minor allergies. Not stuff like nuts.

@ross
Would you still get sued if you didn't advertise it as a medical tool? More like an ocr search tool or something that technically has the functionality to search for citric, or other ingredients
@syntaxseed
‎Soosee - Allergy & Vegan Scan

‎Soosee scans ingredient labels instantly to warn you about ingredients you want to avoid. It includes more than 30 categories for common allergies, a vegan lifestyle, pregnant women, high environmental impact, additives, health and more! Point your camera at an ingredient list and words you have en…

App Store
@dxzdb @MrPresidentTom Yeah. This has been recommended several times. 😃
@ross I found a few in the Google Play store. But none let you set custom words to watch for.
@ross @syntaxseed There is an app. It's called Fig and I love it!
https://fig.app.link/share
Source: I am allergic to corn, peanut, tomato, milk, egg, mushroom, and banana
@WillowTSquirrel @syntaxseed Yep, I've had multiple recommendations for Fig and Soosee now. Thank you!

@syntaxseed @ross Absolutely not associated with the app, but I have a heap of food issues (no gluten, no dairy, also need low-histamine) and someone recommend FIG (Food Is Good) and it is invaluable. It's free with a lot of good features, tho scanning a barcode is paid, but you can search their database for products and ingredients and flag ingredients you can't eat. It's done by dietitians etc.

https://foodisgood.com/app/

Food Scanner App - Fig App

Fig is the fastest way to find food that works for you: Gluten Free, Dairy Free, Low FODMAP, Vegan, Food Allergies or just avoiding additives and added sugars. It's free!

Fig App
@alephnaught2tog @syntaxseed @ross Thanks for the information regarding FIG. I'll try it.
@syntaxseed @ross a simple list would be awesome, is this possible in shortcuts?
understanding that its not 100% accurate maybe
Shortcuts

@Mattmaber Nice! Just don’t use for serious allergies. Use at your own risk.

Did I already tell you that?

@Mattmaber Yes, you can do what’s called a “regular expression” pattern match like this…
@ross This, this is worthy of favouriting, bookmarking *and* saving elsewhere. Just in case you didn't know, you are a frickin genius. :)
@bazbt3 Thanks. I wouldn’t normally say such nice things about myself tbh. But this was pretty inspired! 🤯

@ross It's the first time I've started to compile a shortcut by typing instead of laboriously scrolling each section. Thanks, my muse. :)

Oh, I've added a bit to the Otherwise: ' "SAFE", ymmv, objects in the mirror may be closer than they appear. '

You get the idea. :)

@ross @cstross That’s pretty cool ! 👍
@ross open food facts appli Check for allergies
@ross This seems like a game-changer @mikamckinnon
@ross Oh gosh. That would have been a game changer. Our daughter had a severe dairy allergy. I had no idea how many words there are for milk products.
@DonnaG I wouldn’t trust it for a severe allergy. But as a backup for things you might miss it could help!
@ross She was successfully treated about 10 years ago and passed a food challenge so as long she has several servings of dairy a day, it’s no longer something we have to be concerned with. So fortunate to have been at the right allergist at the right time for that program.
@DonnaG Yeah, we've seen a couple of docs and they don't really want to know about it. *sigh* Thanks for sharing your experience!
@ross
In case helpful (and forgive if not) while citrus fruits do contain citric acid, the citric acid in foods does not come from citrus fruits. (https://en.wikipedia.org/wiki/Citric_acid). So very possible to be intolerant to one and not the other. However, pectin does normally come from citrus fruit. You may have been around all this already, but its relevant in my family, so just sharing in case.
Citric acid - Wikipedia

@NickPerks Thanks. It’s both. Do not feed the child a lemon!!😬
@ross Ah, that's rough. In our house, lemons are banned, but citric acid is permitted!
@ross this is amazing! I’ve just made a shortcut, inspired by yours, to check for milk in ingredients 👏
@t1mmyb Use at your own risk (and not for anything severe). We’ll probably use it as a backup for our own manual checks.
@ross yep, just an advisory check as a few of us are dairy-free for health reasons, but not due to an allergy.
@ross I'm glad to hear that even now, people are still coming up with unique and amazing ideas for #SiriShortcuts, as someone who loved messing around with it extensively myself before I started caring about #FOSS. Heck, I was even using it back when it was called Workflows. It really helped me get into the idea of programming a lot more thanks to it's #accessibility.
@RachaelAva1024 It’s my first shortcut! But yeah. Handy stuff. What else can it do? 🤔
@ross dude, you are. I made my own version for wheat. Thanks for this great idea!
@faticake Use at your own risk, and not for anything severe!!
@ross This is amazing. My disabled daughter is severely allergic to “Natural Flavors” (AKA Autolyzed Yeast Extract, a lab grown fungal umami flavor here in the US) It makes her incredibly ill, usually puts her in ER.
But she is also visually impaired and can’t read fine print on food labels. She has missed it in the list many times. She hates that she’s lost her ability to be independant in food shopping because of it.
I’m going to help her try this. Thank you. 🙏🏼

@kimlango I’d be VERY careful with anything severe. This isn’t 100% accurate and it struggles if photo isn’t good.

Use at your own risk!!

@ross great work! I created something similar that used the barcode to get the info from a large database and allowed the user to input specific items that are allergens. These types of shortcuts are so helpful!