Difference between plt.imshow and cv2.imshow?

Because OpenCV stores images in BGR order instead of RGB.

Try plt.imshow(cv2.cvtColor(image, cv2.COLOR_BGR2RGB))

See here for an example.

Leave a Comment