0

I'm asking this because both black and white (and all the grays in between) return 0 when their red, green, or blue values are called.

For example:

photo = Image.open("C:\Users\USERNAME\Pictures\ThisImageIsBlackAndWhite.png")
pixelPhoto = photo.load()
redAmount = pixelPhoto[x,y][0]
print(redAmount)

# 0

It always returns a 0 no matter how bright/dark the actual pixel itself is.

7abc778
  • 58
  • 9

0 Answers0