python code for checking if an image is black and white or coloured code example
Example: python image black and white
from PIL import Image
img = Image.open("image.jpg")
img.convert("1").save("result.jpg")
from PIL import Image
img = Image.open("image.jpg")
img.convert("1").save("result.jpg")