質問編集履歴
2
現状を追記しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -9,6 +9,12 @@
|
|
9
9
|
Anaconda
|
10
10
|
|
11
11
|
jupyter notebookを使っています。
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
追記
|
16
|
+
|
17
|
+
最初の1回は起動するのですが、一度終了すると2回目以降同様のエラーが出ます。
|
12
18
|
|
13
19
|
|
14
20
|
|
1
エラーが起きている行を追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,7 +18,25 @@
|
|
18
18
|
|
19
19
|
```
|
20
20
|
|
21
|
+
error Traceback (most recent call last)
|
22
|
+
|
23
|
+
<ipython-input-16-a92487635c85> in <module>
|
24
|
+
|
25
|
+
6 while(True):
|
26
|
+
|
27
|
+
7 ret, frame = capture.read()
|
28
|
+
|
29
|
+
----> 8 cv2.imshow('frame',frame)
|
30
|
+
|
31
|
+
9 if cv2.waitKey(1) & 0xFF == ord('q'):
|
32
|
+
|
33
|
+
10 break
|
34
|
+
|
35
|
+
|
36
|
+
|
21
|
-
OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:376: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow'
|
37
|
+
error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\highgui\src\window.cpp:376: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'cv::imshow'
|
38
|
+
|
39
|
+
|
22
40
|
|
23
41
|
```
|
24
42
|
|