np.sum gives a value that is higher than possible
np.sum gives a value that is higher than possible Question: I am trying to find the average red value of pixels in an image. The code I have written is as follows: path = "C:\Users\Ariana\Pictures\img.jpg" img = PIL.Image.open(path) imgarray = np.array(img) reds = imgarray[:, 0] avered = np.sum(reds)/len(reds) print(avered) The output should be at most …