Removing diagonal Text that intersect with the horizontal text I want to read.

42 views
Skip to first unread message

Mark Heere

unread,
Feb 7, 2020, 11:11:17 AM2/7/20
to tesseract-ocr
Is there a way to remove the diagonal letters from this page? I'm trying to send it through tesseract but I'm getting a  bunch of garbage where the watermark is meeting the letters in the image. I used GhostScript to convert the original PDF image into the PNG file.

Thanks in advance for your help!



DocuOut.png

Lakshay Saini

unread,
Feb 7, 2020, 11:38:12 AM2/7/20
to tesseract-ocr
Hi Mark,

That's a very difficult task to do, and I don't think it can be done with a code. Instead, you can try removing the background using imagemagick. It increases the transparency of the background. For more information: http://www.imagemagick.org/discourse-server/viewtopic.php?t=24959

Regards
Lakshay

Zdenko Podobny

unread,
Feb 8, 2020, 5:18:51 AM2/8/20
to tesser...@googlegroups.com
Can you share original pdf to investigate if the problem could not be solved on pdf level (e.g. extract image from pdf without watermark) ?

Your problem is not related to tesseract (or other way - tesseract is not tool that helps you remove watermark), so better option would be to post in on stackoverflow.
I found several examples how remove watermark, but unfortunately non of them works with your image. 

Just for inspiration what is possible:

pi 7. 2. 2020 o 17:11 Mark Heere <mark....@gmail.com> napísal(a):
Is there a way to remove the diagonal letters from this page? I'm trying to send it through tesseract but I'm getting a  bunch of garbage where the watermark is meeting the letters in the image. I used GhostScript to convert the original PDF image into the PNG file.

Thanks in advance for your 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 tesseract-oc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/e275c83b-0d38-4d0a-9dc6-e514d46b1216%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages