Page 1 of 1

Remove watermark and background

Posted: 2017-03-16T21:44:27-07:00
by spborikar
Hello

What could be efficient method to remove background and watermark in the image below?
I want to make it friendly for OCR to extract maximum text

https://image.yayimages.com/1600/photo/ ... 347125.jpg

Your help is appreciated.

Re: Remove watermark and background

Posted: 2017-03-16T22:01:17-07:00
by snibgo
I don't know what you mean by "background" and "watermark".

But you could easily:

1. Turn pixels that are nearly white into white.

2. Turn pixels that have high saturation (eg blue and cyan) into white.

3. Turn pixels that have low saturation (eg black or gray) into black.

Re: Remove watermark and background

Posted: 2017-03-16T23:18:43-07:00
by fmw42
try

Code: Select all

convert french-national-identity-card-male-8347125.jpg -contrast-stretch 10,0% -fill white +opaque black id_proc.png