[SOLVED] Convert non-black pixels to white
Posted: 2010-10-26T07:50:21-07:00
I am trying to process JPEG images that contain two letters that are nearly black, on a background that is nearly white. I have managed to make the letters fully black, and the background fully white by using white-threshold and black-threshold. However, the images also have little "squiggles" in them that are a darker gray color. I am wanting to remove these, and make them just white. Therefore, I was wondering if there is any way to, after fixing the letters and the background, just make all pixels that are not black, white. I have tried setting the white-threshold to 100%, but that does not work. Any other ideas?
And yes, this is a CAPTCHA, but this is just an experimental project. I am not hacking anything.
And yes, this is a CAPTCHA, but this is just an experimental project. I am not hacking anything.