Python Forum
Is there a way to detect the text font, size and color from an image in python?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is there a way to detect the text font, size and color from an image in python?
#1
I've done a lot of research and i cannot find a way to detect the the text font, size and color from an image in python.

Here is an example of an image:
[Image: tZhxy.png]

Is there a way, or a specific function?

Thanks, Rita Maia
Reply
#2
im not sure about font size or font type but there are a few method to extract text from an iamge, one 3rd party lib could be
https://pypi.org/project/pytesseract/
Recommended Tutorials:
Reply
#3
Yes that library am aware. but my point/issue was just if it is possible in python to detect the font size and the color of that text in that image :S
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How can I write formatted (i.e. bold, italic, change font size, etc.) text to a file? JohnJSal 12 27,877 Feb-13-2025, 04:48 AM
Last Post: tomhansky
  Python 3.13 : def setup size HansieB 6 1,321 Dec-02-2024, 11:12 AM
Last Post: buran
Photo image generation with text style Belialhun 0 629 Oct-08-2024, 01:53 PM
Last Post: Belialhun
  Print text with big font and style tomtom 6 20,451 Aug-13-2024, 07:26 AM
Last Post: yazistilleriio
  Python code for alignment and font size 1418 0 922 Jan-14-2024, 03:56 AM
Last Post: 1418
  Turtle Star Fill Color Yellow-White Interchanging Color Effect codelab 9 3,265 Oct-25-2023, 09:09 AM
Last Post: codelab
  When does Python detect Errors? stamp1t 1 2,135 Oct-21-2023, 05:53 PM
Last Post: deanhystad
  howto get size of a ctk image? janeik 2 2,078 Oct-03-2023, 03:49 AM
Last Post: janeik
  Color a table cell based on specific text Creepy 11 5,130 Jul-27-2023, 02:48 PM
Last Post: deanhystad
  How to do "fixed size" (wrapping) math in Python? AlexanderWulf 13 5,274 Jul-19-2023, 04:13 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020