Difference between plt.show and cv2.imshow?

后端 未结 2 1637
梦如初夏
梦如初夏 2020-12-16 12:12

Why is there a difference in the output image when calling the same image using plt.show & cv2.imshow()?

Here is my code:



        
2条回答
  •  执念已碎
    2020-12-16 12:47

                                OpenCV - BGR and Matplotlib - RGB
    

    OpenCV:

    https://docs.opencv.org/2.4/doc/tutorials/introduction/display_image/display_image.html

    Matplotlib:

    https://matplotlib.org/api/_as_gen/matplotlib.pyplot.imshow.html

提交回复
热议问题