質問編集履歴
1
追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -21,3 +21,9 @@
|
|
21
21
|
hの値が60〜70でsが40から60vが30から60のときに
|
22
22
|
|
23
23
|
マスクを生成したいのですが良い方法が思いつきません。どのように複雑な条件のマスクを生成できますでしょうか?
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
(((30 <= h and h <= 50) and (40 <= s and s <= 60) and (70 <= v and v <= 80) and (60 <= h and h <= 70) and (40 <= s and s <= 60) and (30 <= v and v <= 60)))の場合
|
28
|
+
|
29
|
+
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()というエラーがでました。
|