You can try this:
https://stackoverflow.com/questions/58317647/how-to-find-the-font-size-in-python-from-an-image

But first read this:

https://graphicdesign.stackexchange.com/questions/12684/how-to-work-out-font-size-setting-by-counting-pixels

https://graphicdesign.stackexchange.com/questions/4035/what-does-the-size-of-the-font-translate-to-exactly

Zdenko


ut 11. 1. 2022 o 13:47 Kehinde Adeoya <[email protected]> napĂ­sal(a):

> I want to get the font size of text on an image. I can return the
> pointsize, so my question is, how do I convert the point size to fontsize?
> As an example, if the point size is 84, how do i convert it to font size in
> pixels?
> When I typed this into google "pointsize convert to fontsize" it retuned
> the unit converter calculator, though it seems close but  not accurate. I
> don't know what to do. Please help.
>
> --
> 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/fa901634-c380-4296-abf4-710d7e2ba681n%40googlegroups.com
> <https://groups.google.com/d/msgid/tesseract-ocr/fa901634-c380-4296-abf4-710d7e2ba681n%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/CAJbzG8xDzPetw7ctH%2BJbWRfxTWjMnNoO2bXVbmgiCV921Y%3DjbQ%40mail.gmail.com.

Reply via email to