12
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Jupyter上においてplt.imshowで画像が表示されないときは

Posted at

はまった時の状況

Jupyter notebookでPython3を動かしていて,cv2.imread()で読み込んだ画像がplt.imshow()(matplotlib.pyplot)で表示されなかった

image.png

解決策

その時は調べても解決策が見つからなかったが,
これはPythonの書き方自体に問題があるわけではなく,
%matplotlib inlineの忘れが原因らしい

image.png

12
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
7

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?