Question: please help me!!!! Convert an image to greyscale in python. Add code in the given python code below that converts an (any image) color image
please help me!!!! Convert an image to greyscale in python. Add code in the given python code below that converts an (any image) color image to a greyscale image. Code:-
import matplotlib.pyplot import numpy myImage = matplotlib.pyplot.imread('flower.png') height=myImage.shape[0] width=myImage.shape[1] for x in range(0, height-1): for y in range(0,width-1): INSERT YOUR CODE HERE imgplot = matplotlib.pyplot.imshow(myImage) matplotlib.pyplot.show() Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
