A bit plane is a way of breaking down a digital image into its constituent binary bits.
[ 12, 200, 55, 3 ] [ 255, 128, 0, 77 ] [ 200, 10, 210, 99 ] [ 33, 180, 4, 245 ] 12 = 00001100 200 = 11001000 55 = 00110111 3 = 00000011 … and so on.
from PIL import Image import numpy as np img = Image.open('your_image.jpg').convert('L') # grayscale pixels = np.array(img)