how to cat .tr files of tesseract training data of same font

108 views
Skip to first unread message

Tanmay Kolay

unread,
Jun 8, 2010, 8:46:56 AM6/8/10
to tesseract-ocr
Hi,
I'm working with tesseract 2.04.I know at least 20 examples of
each character must be taken for training.But in bengali there are
almost 290 characters.so for each font i need at least 10 images.so i
have to cat together the .tr files for each image into a single .tr
file.I don't know how to do it.can any one help me with this and
remaining training process.
Thanks & regards
Tanmay Kolay

Jimmy O'Regan

unread,
Jun 9, 2010, 6:23:20 AM6/9/10
to tesser...@googlegroups.com

You can just specify multiple filenames at the command line.


--
<Leftmost> jimregan, that's because deep inside you, you are evil.
<Leftmost> Also not-so-deep inside you.

Tanmay Kolay

unread,
Jun 9, 2010, 6:41:15 AM6/9/10
to tesser...@googlegroups.com
but it is written in "how to train tesseract ocr-wiki pages" that all the characters of a single font must be there within a single tr file.
I've done what you are saying but after training it is not recognizing characters well.


--
You received this message because you are subscribed to the Google Groups "tesseract-ocr" group.
To post to this group, send email to tesser...@googlegroups.com.
To unsubscribe from this group, send email to tesseract-oc...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tesseract-ocr?hl=en.


Jimmy O'Regan

unread,
Jun 9, 2010, 11:01:35 AM6/9/10
to tesser...@googlegroups.com
On 9 June 2010 11:41, Tanmay Kolay <tk.mc...@gmail.com> wrote:
> but it is written in "how to train tesseract ocr-wiki pages" that all the
> characters of a single font must be there within a single tr file.
> I've done what you are saying but after training it is not recognizing
> characters well.
>

So it does. The answer was in your original message

"cat together the .tr files for each image into a single .tr file"

->

cat file1 file2 .. filen > combined.tr

Reply all
Reply to author
Forward
0 new messages