How to remove this known background for better ocr?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
davidng
Posts: 2
Joined: 2015-05-08T18:16:41-07:00
Authentication code: 6789

How to remove this known background for better ocr?

Post by davidng »

original image
Image

known background
Image

question:
how to separate them without the hole inside the character for better ocr? (can use multiple command)

convert img0.png bg.png -compose ChangeMask -composite img1.png
Image
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to remove this known background for better ocr?

Post by fmw42 »

Are you are trying to break a captcha? Most people here will not help you do that.
davidng
Posts: 2
Joined: 2015-05-08T18:16:41-07:00
Authentication code: 6789

Re: How to remove this known background for better ocr?

Post by davidng »

well this is more like a imagemagick question, then a captcha question.
don't you find this question challenging?
Post Reply