質問編集履歴

2

リサイズは関係なかったです。

2017/09/15 07:56

投稿

TakakiKuwabara
TakakiKuwabara

スコア38

test CHANGED
File without changes
test CHANGED
@@ -64,24 +64,4 @@
64
64
 
65
65
  OpenCV: camera failed to properly initialize!
66
66
 
67
- OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in resize, file /tmp/opencv-20170825-90583-1pdhamg/opencv-3.3.0/modules/imgproc/src/imgwarp.cpp, line 3483
68
-
69
- Exception in thread Thread-8:
70
-
71
- Traceback (most recent call last):
72
-
73
- File "/Users/k_aki86/.pyenv/versions/3.6.1/lib/python3.6/threading.py", line 916, in _bootstrap_inner
74
-
75
- self.run()
76
-
77
- File "/Users/k_aki86/.pyenv/versions/3.6.1/lib/python3.6/threading.py", line 864, in run
78
-
79
- self._target(*self._args, **self._kwargs)
80
-
81
- File "/Users/k_aki86/Project/SimulatedFactory/ccamera/ccamera/camera_procs.py", line 69, in capture
82
-
83
- frame = cv2.resize(frame, (200, 300))
84
-
85
- cv2.error: /tmp/opencv-20170825-90583-1pdhamg/opencv-3.3.0/modules/imgproc/src/imgwarp.cpp:3483: error: (-215) ssize.width > 0 && ssize.height > 0 in function resize
86
-
87
67
  ```

1

エラー内容について

2017/09/15 07:56

投稿

TakakiKuwabara
TakakiKuwabara

スコア38

test CHANGED
File without changes
test CHANGED
@@ -51,3 +51,37 @@
51
51
  cam_num += 1
52
52
 
53
53
  ```
54
+
55
+
56
+
57
+ エラー何用については下記の通りです。
58
+
59
+
60
+
61
+ ```Python3
62
+
63
+ OpenCV: out device of bound (0-0): 1
64
+
65
+ OpenCV: camera failed to properly initialize!
66
+
67
+ OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in resize, file /tmp/opencv-20170825-90583-1pdhamg/opencv-3.3.0/modules/imgproc/src/imgwarp.cpp, line 3483
68
+
69
+ Exception in thread Thread-8:
70
+
71
+ Traceback (most recent call last):
72
+
73
+ File "/Users/k_aki86/.pyenv/versions/3.6.1/lib/python3.6/threading.py", line 916, in _bootstrap_inner
74
+
75
+ self.run()
76
+
77
+ File "/Users/k_aki86/.pyenv/versions/3.6.1/lib/python3.6/threading.py", line 864, in run
78
+
79
+ self._target(*self._args, **self._kwargs)
80
+
81
+ File "/Users/k_aki86/Project/SimulatedFactory/ccamera/ccamera/camera_procs.py", line 69, in capture
82
+
83
+ frame = cv2.resize(frame, (200, 300))
84
+
85
+ cv2.error: /tmp/opencv-20170825-90583-1pdhamg/opencv-3.3.0/modules/imgproc/src/imgwarp.cpp:3483: error: (-215) ssize.width > 0 && ssize.height > 0 in function resize
86
+
87
+ ```