Hello Zdenko,

Thank you for the advice.   I ended up being able to tweak the tesseract
parameters and was able to improve performance so that it was good enough
without having to train.

And I do appreciate the hard work and cleverness that has gone into
creating and improving tesseract.  It's a beautiful piece of work.

Regards,
...John

[image: width=]
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Virus-free.www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Wed, Aug 31, 2022 at 10:04 AM Zdenko Podobny <[email protected]> wrote:

> Trained data from tesseract 5 are compatible with 4, so definitely I would
> suggest using the latest tesseract version for training - there was a lot
> of bug fixing and speed improvements.
>
> IMO tesseract training has never been easy. I always suggest focusing on
> image preprocessing rather than training.
> Following an easy looking training tutorial could also mean you are on the
> wrong path (=> you waste your time and it increases your frustration). For
> example:Tesseract 4 has 2 engines LSTM and legacy engine. In this
> particular video, for which engine is that training? For hints see[1]. Did
> you plan to train that engine or other one?
>
> [1]
> https://tesseract-ocr.github.io/tessdoc/tess5/TrainingTesseract-5.html#overview-of-training-process
>
> Zdenko
>
>
> st 31. 8. 2022 o 15:40 John Alway <[email protected]> napísal(a):
>
>> "First of all: if you follow any tutorial on internet - report the
>> problem to the author of the tutorial."
>> Next: use official documentation for training. I see there are a bunch of
>> folks just "generating content" - to gain an audience. Without insight and
>> therefore also without support, using old/outdated information..."
>>
>>   People are trying to find a nice, easy tutorial to help them get
>> through the forest.   I think that's the bottom line.   Thanks for the link.
>>
>> 'Tesseract 4 was released 29 Oct 2018. Almost 4 year ago! The recent
>> tesseract version is 5.2 and training process was also improved:
>> https://github.com/tesseract-ocr/tesstrain";
>>
>>   I understand this, but I'm using C# .Net, and I don't think version 5
>> is available in C#.  Unless I'm mistaken?  There are costly packages, such
>> as IronOcr which uses tesseract 5, but there is no way I can take that
>> route.
>>
>>   Regards,
>>  ...John
>>
>>
>>
>> [image: width=]
>> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>> Virus-free.www.avg.com
>> <http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
>> <#m_-846021221202202543_m_6502694561301915279_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>
>> On Wed, Aug 31, 2022 at 3:27 AM Zdenko Podobny <[email protected]> wrote:
>>
>>> First of all: if you follow any tutorial on internet - report the
>>> problem to the author of the tutorial.
>>> Next: use official documentation for training. I see there are a bunch
>>> of folks just "generating content" - to gain an audience. Without insight
>>> and therefore also without support, using old/outdated information...
>>> Tesseract 4 was released 29 Oct 2018. Almost 4 year ago! The recent
>>> tesseract version is 5.2 and training process was also improved:
>>> https://github.com/tesseract-ocr/tesstrain
>>>
>>> Zdenko
>>>
>>>
>>> st 31. 8. 2022 o 0:18 John Alway <[email protected]> napísal(a):
>>>
>>>> Hello,
>>>>
>>>> I've been following a tutorial on youtube titled "Tesseract OCR -
>>>> Lesson 2: Training Tesseract for new font" here:
>>>> https://www.youtube.com/watch?v=1v8BPw0Dn0I&ab_channel=TheCode
>>>>
>>>> I'm using tesseract 4.0 on Window 10.
>>>>
>>>> I went through the steps he used, and everything seems to go smoothly
>>>> until I get to the actual training.    When I run "mftraining" the program
>>>> hangs. It seems to get stuck and doesn't indicate why are what it's doing.
>>>>
>>>> I'm using a set of fonts in an image. I have the full alphabet upper
>>>> and lower case and the numbers 0 to 9 on the png image.   I've attached the
>>>> image.  Unlike him, I'm using the English.  I don't know the font, so I'm
>>>> just calling it tiktok to give it a name.    My training file is called 
>>>> *eng.tiktok.exp0.tr
>>>> <http://eng.tiktok.exp0.tr>  *
>>>>
>>>> I used* jTessBoxEditor* to correct mistakes and set the box sizes and
>>>> positions precisely.
>>>>
>>>>
>>>> When I run this command:
>>>>  *mftraining -F font_properties -U unicharset -O eng.unicharset
>>>> eng.tiktok.exp0.tr <http://eng.tiktok.exp0.tr>*
>>>>
>>>> The program just hangs. I've waited over twenty minutes.
>>>>
>>>> Should I wait longer?   What could cause it to hang?
>>>>
>>>>
>>>>
>>>> Thanks!
>>>> ...John
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "tesseract-ocr" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/tesseract-ocr/534c3f74-420b-4c96-83dd-609bcb002f81n%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/tesseract-ocr/534c3f74-420b-4c96-83dd-609bcb002f81n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "tesseract-ocr" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8w5MX1XchQp6jfu2Vz06zWp82HxbDHrgp7%2BQ_Neh%2BDeug%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8w5MX1XchQp6jfu2Vz06zWp82HxbDHrgp7%2BQ_Neh%2BDeug%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "tesseract-ocr" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/tesseract-ocr/CAN7TTkEYLexQwmN9y3qO6cwqGoW72HoaEj8XksAgTwb3qVSNPA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/tesseract-ocr/CAN7TTkEYLexQwmN9y3qO6cwqGoW72HoaEj8XksAgTwb3qVSNPA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "tesseract-ocr" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tesseract-ocr/GkntrKGFqu0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8wt1fjKy66uZ9-sEAqUkEwagLAZhFxcDV_8QLuPgk%3DnvQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8wt1fjKy66uZ9-sEAqUkEwagLAZhFxcDV_8QLuPgk%3DnvQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/CAN7TTkG7-foR9g7YkBT8f%2BwU3P9Qf4s00V%3DMEazgkBboztzYsg%40mail.gmail.com.

Reply via email to