4 ms·
That's a really cool use case — OCR on emulated RPGs for language study! I didn't know Tesseract could handle pixel fonts. How well did it work? I went with Ap
by hcmhcs0 8mo ago
That's a really cool use case — OCR on emulated RPGs for language study! I didn't know Tesseract could handle pixel fonts. How well did it work?
I went with Apple's Vision and Translation frameworks since they were the easiest path for me, but the downside is it requires macOS 15+. I'm thinking about adding Tesseract as an alternative OCR engine to support older versions — sounds like it could work well enough!
- vunderba 8mo agoThanks! Honestly? Initially very poorly. What I ended up doing was generating around a dozen versions of a screenshot in realtime (all with different combinations of thresholding, segmentation parameters, resolution scaling, and denoising) behind the scenes. Then it would fire Tesseract off on all of them in parallel threads and let them “vote” on the result. After I set that up, the accuracy improved significantly. If you're looking for an alternative rather than Tesseract - I'd actually recommend Surya. I've had a lot of success with it out of the box with doing OCR on comics. https://github.com/datalab-to/surya https://github.com/datalab-to/surya
- hcmhcs0 8mo agoThat's a clever approach — running multiple preprocessing variants in parallel and letting them vote. Almost like an ensemble for OCR! Thanks for the Surya recommendation, I hadn't come across it before. Will definitely check it out!