I have an array image
with BGR values, it has dimensions 11x11x3. I want to select all indices of a specific color using numpy.where
but I get an error message. Why?
indices = np.where( (image[:,:,1] == 55) and (image[:,:,2] == 32))
Error:
"ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()"