Help with filtering an image
Posted: 2010-05-29T13:10:40-07:00
Hi,
This is my first post. Sorry about it but I never used ImageMagick command line before so I'm not very used to the different options and possibilities.
Basically, I need to clean up an image to pass it through an OCR. This image has a gray background at the top that it's causing problems so I want to get rid of it. I need to get the text within the rectangles so hopefully filtering somehow the gray background will make the task easier. I tried different ways using the convert command with monochrome and threshold options but with no luck.
This is a sample image: http://img687.imageshack.us/img687/4535/facturam.png You can find at the very top the data I want to extract. "Factura" and date.
Any hints?
This is my first post. Sorry about it but I never used ImageMagick command line before so I'm not very used to the different options and possibilities.
Basically, I need to clean up an image to pass it through an OCR. This image has a gray background at the top that it's causing problems so I want to get rid of it. I need to get the text within the rectangles so hopefully filtering somehow the gray background will make the task easier. I tried different ways using the convert command with monochrome and threshold options but with no luck.
This is a sample image: http://img687.imageshack.us/img687/4535/facturam.png You can find at the very top the data I want to extract. "Factura" and date.
Any hints?