質問編集履歴

1

エラーコードが不足してた

2019/10/29 02:50

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -30,7 +30,21 @@
30
30
 
31
31
  mask[((h < 50) | (h > 200)) & (40 < s < 60)] = 255
32
32
 
33
- エラーコード
33
+ 結果(エラーコード
34
+
35
+ Traceback (most recent call last):
36
+
37
+ File "red.py", line 21, in <module>
38
+
39
+ rects = find_rect_of_target_color(frame)
40
+
41
+ File "red.py", line 9, in find_rect_of_target_color
42
+
43
+ mask[((h < 50) | (h > 200)) & (40 < s < 60)] = 255
44
+
45
+ ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
46
+
47
+
34
48
 
35
49
 
36
50