this post was submitted on 28 Jun 2024
30 points (100.0% liked)
Open Source
31749 readers
167 users here now
All about open source! Feel free to ask questions, and share news, and interesting stuff!
Useful Links
- Open Source Initiative
- Free Software Foundation
- Electronic Frontier Foundation
- Software Freedom Conservancy
- It's FOSS
- Android FOSS Apps Megathread
Rules
- Posts must be relevant to the open source ideology
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
- !libre_culture@lemmy.ml
- !libre_software@lemmy.ml
- !libre_hardware@lemmy.ml
- !linux@lemmy.ml
- !technology@lemmy.ml
Community icon from opensource.org, but we are not affiliated with them.
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
To train an AI to recognize handwriting you need a huge dataset of handwriting examples. That is millions of samples of handwritten text + information about what the written text says in every example).
This is why the best engines only exists as a service in the cloud. The OCR engines you can install lovely that are acceptable, but far from perfect, are commercial. Parascript FormXtra is one of the better commercial ones.
The only OCR Engine that's free and really good is Tesseract OCR but it doesn't handle handwritten text.
Can you fine tune tesseract on a local hand writing dataset ? Or insert it in context like a pre-prompt ?
It wasn't possible a year ago when pos6ted around with tesseract. Things might have changed during the last couple of months though.
I found the following It migth be possible and affordable
https://konfuzio.com/en/tesseract/
https://github.com/Matleo/Tesseract_fine_tuning_training
https://groups.google.com/g/tesseract-ocr/c/ZLOZpW1fD6I/m/B1Ponc0VBAAJ
https://arcruz0.github.io/posts/finetuning-tess/
None of that made Tesseract excel in capturing handwritten text...
I don't really need the locally trained AI to recognize general handwriting, only my own.
I could provide a few pages of my own training data (maybe write out a few pages of "quick brown fox jumps over the lazy dog" and other stuff like that), and then ideally it flags stuff it's unsure about and I clarify some more. Maybe find garbled nonsensical sentences, realize it's probably a mistake, and try and fix it.
I assumed the leaps in AI would have taken care of this by now, since detecting handwritten letters from touch pen-strokes existed in the 90s. But I guess handing it a chunk of text is too different of a problem, instead of feeding it stroke by stroke?
then how can this model be so good? the dadaset is only 350 MB and the results seem insane ... sadly i have no idea how to use it.
How good is good do you say?
We got a pretty good results with CER at 4% and WER at 15%!
This was on a limited dataset used to test and train which most likely means that if you introduced an even larger dataset with greater variations in handwriting style for testing the numbers might be even worse.
Very simplified: A risk of a character wrong every 20th character and a word wrong every 7th word. The SER was around 20%.
There's an reason why no one has released a good model for western letters yet and why companies pay up to 1€ for capturing data from 10 handwritten pages.
It will come but OCR isn't as sexy as developing text2image solutions.