313 points · by hectormalot · 3y ago · 86 comments
I think the traditional approach to scanning and classifying without AI/ML is the way to go, for the next 5 years at very least.
For my use cases, this already beats all "traditional approaches" for at least a few month now. That's just inferring from when I first stumbled across it. No clue for how long it's been a thing.
Google Vision: 95.62% HW - 99.4% Typed
Amazon Texttract: 95.63% HW - 99.3% Typed
Azure: 95.9% HW - 98.1% Typed
Then if curious, TrOCR was the best FOSS solution at 79.5% HW and 97.4% Typed. (However it took roughly 200x longer than Tesseract which was 43% HW and 97.0% Typed)
Leaking sensitive data of enterprise customers as training material for public recaptchas falls in that category.
Which it used OCR to produce digital text.
So one source of training data at least.
But this isn’t much help if you must classify images.
It uses Tesseract under the hood. Results tend to just be OK in my experience.
This seems like exactly the kind of problem that will see rapid improvements as people point more LLMs at multimodal input.
Right now making predictions for ML capabilities on a five year timeframe seems foolhardy.
Smaller graph models could get away with using less data. The problem that the "traditional" approach had is the the quality of the OCR was the bottleneck for overall model performance. It amazes me how this problem shifted from a node classification problem to a image to text problem.
Training on CPU was possible with GCN but not with Donut.
Author: phew! I'm glad there's an 'n' in there somewhere
https://chat.openai.com/share/25124525-0bad-4c13-ae5a-ae4bea...
3.5 doesn't really get it, 4 does. There are some that aren't great but the context is pretty small and it can be a decent launching point.
It reminds me of the microwave cookery books that came out after consumer microwaves became available: there are things a microwave is good at, but those books used it for everything, just like we're using GPT-4 today. We'll calm down eventually.
https://cloud.typingmind.com/share/b49794e0-4b2b-4213-ae2e-8...
I'll grant one thing: the paper must go well with cheese.
If you want to do it, using “plant based” is probably better than “vegan”, and it’s always good to make sure your users are aware that the mark can be wrong and they should double-check with the waiter.
As for your question - I didn’t play with Donut, but ocr+gpt or multimodal gpt4 once released should handle this smoothly.
You could combine ingredient search, looking for symbols the actually designate vegan as some places do, along with long/lat data to determine what the restaurant actually is and then check it with a database you maintain.
So I could scan a menu, and then ask the owner or server about certain dishes, and then crowdsource an updated
It would be great if there was a standard API for all restaurants that included all menu items, prices, ingredients, preparation and sourcing information. I could be maintained like a wiki I suppose, and restaurants could be incentivized by including their restaurants.
Trying to solve the problem of scanning through menus for multiple restaurants to find something a vegan or vegetarian can eat, and instead just showing all the individual menu options in the area as a list.
The training process is not hard, but the data gathering / cleaning / labelling can be a little long.
The only problem is that the data is closely walled by Google and you can only access it through their api.
What I want to create is a tiny search engine that collects all menus (somehow collected from images) and let users find and filter what they like, and even get recommendations nearby!
I'm curious as to why this appears in your ToS, as this is quite a deterrent for many.
Some users have expected it to "unwarp" bad scans, it also doesn't do that unfortunately. But that's a much harder problem to solve...
Feels like someone trying to throw a stake in the ground rather than releasing a quality product, honestly.
It's surprisingly accurate although you have to write your own program to segment the image into lines. I think with some fine tuning I could have the machine read my notebook with minimal corrections.