I have a black and white bmp image that I need to access 1 pixel at a time. I've found the following code online, but instead of each bit having a value of 1 or 0, its 255 or 0.
import Image
img = Image.open(filename)
img = img.convert('1')
pix = img.load()
Doing the conversion myself, pixel by pixel, is extremely slow.
can someone tell my why the above methods aren't working?