@yutapuu
Revisions
Report this question
Subscribe question
Help us understand the problem. What is going on with this question?
Q&A
Closed

openCVでの画像表示について

スクリーンショット 2020-09-16 15.26.31.png
ネットの記事を参考に画像をjupiter notebook上に表示しようとしたのですが画像のようなエラーがでました。どうすればよいのでしょうか

0
1
Answer

私の環境で試したところ、また別のエラーが発生しましたので環境に依る部分があるのかも知れませんね。
openCVで画像を表示することに特にこだわりをお持ちでなければ、Jupyterではmatplotlibを使うのが楽だと思います。

import matplotlib.pyplot as plt

%matplotlib notebook
img = plt.imread('ND03001.jpg')
plt.imshow(img)
plt.show()
0
Help us understand the problem. What is going on with this answer?
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした