Hi,
I know I need to use PIL, but how would I count all of the red pixels in a given image? The image is simply a vertical red line on a black background.
Something like that maybe but not sure how to get it to count the red pixels.
I know I need to use PIL, but how would I count all of the red pixels in a given image? The image is simply a vertical red line on a black background.
Code:
import PIL im = image.open("mypic.jpg") im.getdata()
Comment