Python Code for tesseract font detection

869 views
Skip to first unread message

Ankit Bisht

unread,
Dec 10, 2021, 1:41:14 AM12/10/21
to tesseract-ocr
Hi,

How can I use tesseract into my python code directly to get the font name.
I am able to get the same using below command -

tesseract "timesromanitalic.png" sampleoutput --oem 0 -c tessedit_debug_fonts=1 --tessdata-dir  \tessdata





CMMi Level 5 | ISO 9001:2015 | BSE: KELLTONTECH

CONFIDENTIALITY INFORMATION AND DISCLAIMER

This e-mail message and/or attachments being sent from Kellton Tech is privileged, confidential, and directed to and for the use of the addressee only. If you are not the intended recipient of this message, or if this message has been addressed to you in error, please alert the sender immediately by reply e-mail and then delete this message, including any attachments. We also request you not to use, reproduce, review, copy, disseminate or distribute it. Distribution or use of the contents of this message by anyone other than the intended recipient is strictly prohibited. 

Please don't print this Email unless you really need to. This will preserve trees on planet Earth.

Muneeb Khurram

unread,
Mar 2, 2022, 5:52:05 AM3/2/22
to tesseract-ocr
Might I suggest looking into this GitHub Thread.
Reply all
Reply to author
Forward
0 new messages