Same Font with Multible Styles

1,022 views
Skip to first unread message

Ibr

unread,
Jun 1, 2017, 9:06:24 AM6/1/17
to tesseract-ocr
Hi,

If we assume that we have set of fonts files, and all of there fonts files are for the same font, but each one of them is for a different style, for example if we have font "test" there will be file for test regular, and file for test bold and file for test italic, but all of these files or styles have the same font name which is "test", if I installed them all on the machine, and created single LSTM file for the font test, will the tesseract create the LSTM file for all styles or just one of these styles.

Keep in mind I cant train for every style since all styles have the same name "test" and all styles are already installed on the machine

Thanks

ShreeDevi Kumar

unread,
Jun 1, 2017, 10:56:21 AM6/1/17
to tesser...@googlegroups.com
text2image --list_available_fonts --fonts_dir /mnt/c/Windows/Fonts

replace the fonts directory with your fonts location

eg.

633: Times New Roman,
634: Times New Roman, Bold
635: Times New Roman, Bold Italic
636: Times New Roman, Italic
637: Trajan Pro
638: Trajan Pro Bold
639: Trebuchet MS
640: Trebuchet MS Bold
641: Trebuchet MS Bold Italic
642: Trebuchet MS Italic
643: Tungsten
644: Tw Cen MT
645: Tw Cen MT Bold
646: Tw Cen MT Bold Italic
647: Tw Cen MT Condensed Extra Bold,
648: Tw Cen MT Condensed,
649: Tw Cen MT Condensed, Bold
650: Tw Cen MT Italic


See if the font list has the font names such as test regular, test bold and test italic. If so, use those names in your fontlist for training.

If they are all listed as test, then it may not work.

ShreeDevi
____________________________________________________________
भजन - कीर्तन - आरती @ 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 tesseract-ocr+unsubscribe@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/dbcfc0c6-1e29-45bc-b86f-0f2a86a1209a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ibr

unread,
Jun 5, 2017, 7:17:56 AM6/5/17
to tesseract-ocr
Thanks, that was helpful 
To unsubscribe from this group and stop receiving emails from it, send an email to tesseract-oc...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages