Answers for "how to plot grayscale image in python"

3

imshow grayscale

plt.imshow(im, cmap='gray')
Posted by: Guest on July-31-2020
2

python image to grayscale

from PIL import Image
img = Image.open("image.jpg")
img.convert("L").save("result.jpg")
Posted by: Guest on March-18-2021

Code answers related to "how to plot grayscale image in python"

Python Answers by Framework

Browse Popular Code Answers by Language