I wanted to read in JPG with Pillow and then show it with imshow from matplotlib, but the image doesn't look like the original file. What's wrong?
img = Image.open("my_pics/cat.jpg")
arr = np.array(img)
plt.imshow(arr)
I wanted to read in JPG with Pillow and then show it with imshow from matplotlib, but the image doesn't look like the original file. What's wrong?
img = Image.open("my_pics/cat.jpg")
arr = np.array(img)
plt.imshow(arr)
The Dark-Mode in Pycharm alters the image (as of Feb. 22nd '22).
Maybe JetBrains will patch this in future updates.