Tesseract handwriting with dictionary training
Asked Answered
P

1

19

I have a dictionary of words in a text file, separated by newlines. And I want to recognize the handwriting using Tesseract, and output the nearest matching line in the text file.

This is the first time I'll be using Tesseract, and it's already in my project workspace, I just need the training data.

Is it possible to train Tesseract to do this?

Passe answered 7/9, 2012 at 0:39 Comment(4)
Handwriting is hard to recognize due to the lines that can possibly connect letters, and due to the large variations between instances of letters. Tesseract works well for recognizing text consisting of crisp, clean letters.Halothane
@Halothane But will it be possible with training the possible characters?Passe
Tesseract was never really designed for handwriting recognition or connected scripts (which is why Arabic OCR is so hard for Tesseract to manage). You might be able to do it for very cleanly written individual letters, but not for arbitrary handwriting.Halothane
Ha, too bad I was designing this app for doctor's handwriting. :( @Blender, do you know any API similar to tessaract, but can do handwriting recognition?Passe
R
16

It's possible to train tesseract to recognize handwriting. Here are the instructions: https://tesseract-ocr.github.io/tessdoc/Training-Tesseract

But don't expect very good results. Academics have typically gotten accuracy results topping out about 90%. Here are a couple references for words and numbers. So if your use case can deal with at least 1/10 errors, this might work for you.

Reuben answered 4/11, 2012 at 18:3 Comment(4)
Link is broken. Has the document been migrated to GitHub with the rest of the code? I couldn't find it at a glance.Introject
Thanks for the answer. Could you provide exactly WHERE the instructions to train handwritten text are in that link?Cattleya
This link is gone, and now on the tesseract faq it says to use lipi toolkit, is this right?Imperturbation
Training Tesseract document on Github: github.com/tesseract-ocr/tesseract/wiki/Training-TesseractEcheverria

© 2022 - 2024 — McMap. All rights reserved.