Python: remove everything but text - based on size logic

Job ID: 33922601

Budget: $10 – $30 USD

0


i have some images and want to clean them and show only the text,

-they are black and white( RGB 0,0,0 and 255,255,255 )

and the only logic i think can work is to identify objects that are bigger than text and with same uninterrupted color and remove them or find small lines that are thinner

1.png 1.png 2.png enter image description here 3.png enter image description here 4.png enter image description here

you can use python or any other linux tool , openCV, PIL etc...
Related categories: Python OpenCV