Image is not displaying in Google Colab while using imshow()

前端 未结 5 1739
甜味超标
甜味超标 2020-12-09 11:48

I am working on a project which requires functions from OpenCV to plot images. I am trying to display image using the below code in Google Colab. But nothing shows up in the

5条回答
  •  無奈伤痛
    2020-12-09 12:23

    Instead of using cv2.imshow() try this:

    1. Change the import to from google.colab.patches import cv2_imshow
    2. Replace cv2.imshow() to cv2_imshow()

    I tried it and it worked for me.

提交回复
热议问题