For English, most of the times, preprocessing your images and using official traineddata will give better results than trying to do training.
For finetuning, ( https://tesseract-ocr.github.io/tessdoc/TrainingTesseract-4.00.html#fine-tuning-for-impact) what is recommended is using the existing training text and a new font, so that there are minimal changes to traineddata. Using your own training data will not give you good results. > train tesseract on my documents Use the Makefile based training from tesstrain repo. On Tue, Oct 20, 2020 at 11:00 PM Kumar Rajwani <[email protected]> wrote: > hey i need small help as i have to train tesseract on my documents. > I have already read some training issues and i have steps that i can > perform. > > 1. > > !tesseract "document.png" "document" -l eng --psm 11 wordstrbox it > will give me line lavel box > correct ocr. copy image file and box file in tessdata folder > 2. > > src/training/tesstrain.sh --fonts_dir /usr/share/fonts --lang eng > --linedata_only > --noextract_font_properties --langdata_dir ../langdata > --tessdata_dir ./tessdata --output_dir ~/tesstutorial/engtrain > > > - > > so this is right thing or i have to do anything else? > - > > It will also finetune detection right? > - > > can i finetune on word level like linedata_only? > - > > i am using tesseract 5 and tessedit_do_invert=0 but it still slow. so > which steps i can perform at time training will improve time. > > -- > 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/3bed1059-dbb4-40e7-97c1-fd0cc4b9a32fn%40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/3bed1059-dbb4-40e7-97c1-fd0cc4b9a32fn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- ____________________________________________________________ भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com -- 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/CAG2NduWAE1r6%2Bgg_ZE%2BTuvVHhQvbrRpTwXQssfrbfV%2B-CPMD5w%40mail.gmail.com.

