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

前端 未结 5 1748
甜味超标
甜味超标 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:05

    imshow requires an X server, which isn't available in a web browser.

    Instead, use the IPython.display.Image library. Here's an example: https://colab.research.google.com/drive/1jWHKR6rhhyZtUulttBD6Pxd_AJhgtVaV

提交回复
热议问题