Making Photographed Pages appear white
Posted: 2012-09-13T05:24:49-07:00
I have a lot of JPG images created by photographing sheet music on a point and shoot camera.
I've managed to clean them up quite a bit by converting them to PNG8, making them greyscale and doing a -contrast-stretch . The musical notes etc are now looking OK but the paper remains a bit 'grey' looking.
I noticed in http://www.fmwconcepts.com/imagemagick/ ... /index.php that the author "Composites the mask with the corrected image to make the background white". Unfortunately because I'm on Windows I can't use that script directly. Would anyone be able to explain how I could do my own version of that approach please (I don't want the whole of the textcleaner script - just the bit which picks up the text and plonks it on a white background).
While I'm here I'll ask something else. The images have quite a noticeable range of illumination across the page (presumably the result of a desk light etc nearby when no flash was used and the result of the on-camera flash at other times). Is there any way I could 'flatten' the illumination across the page without disturbing the text ?
Thanks
R.
I've managed to clean them up quite a bit by converting them to PNG8, making them greyscale and doing a -contrast-stretch . The musical notes etc are now looking OK but the paper remains a bit 'grey' looking.
I noticed in http://www.fmwconcepts.com/imagemagick/ ... /index.php that the author "Composites the mask with the corrected image to make the background white". Unfortunately because I'm on Windows I can't use that script directly. Would anyone be able to explain how I could do my own version of that approach please (I don't want the whole of the textcleaner script - just the bit which picks up the text and plonks it on a white background).
While I'm here I'll ask something else. The images have quite a noticeable range of illumination across the page (presumably the result of a desk light etc nearby when no flash was used and the result of the on-camera flash at other times). Is there any way I could 'flatten' the illumination across the page without disturbing the text ?
Thanks
R.