Matplotlib - Image Display
You have a color image loaded as a NumPy array in BGR format. How do you correctly display it in
matplotlib?matplotlib?matplotlib expects RGB for correct colors.img_rgb = img[:,:,::-1].plt.imshow()plt.imshow(img_rgb) to show the image with correct colors.plt.imshow() -> Option A15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions