matplotlib changes jpg image color
问题 I'm reading images from filesystem using matplotlib imread function. However, it changes jpg image color when it displays those images. [Python 3.5, Anaconda3 4.3, matplotlib2.0] # reading 5 color images of size 32x32 imgs_path = 'test_images' test_imgs = np.empty((5,32,32,3), dtype=float) img_names = os.listdir('test_images'+'/') for i, img_name in enumerate(img_names): #reading in an image image = mpimg.imread(imgs_path+'/'+img_name) test_imgs[i] = image #Visualize new raw images plt.figure