SimpleCV has this nifty function to filter blobs based on certain criteria.
blobs.filter(numpytrutharray)
Where numpytrutharray is generated by blobs.[property] [operator] [value].
I need to filter out blobs that are close to a certain colour, SimpleCV uses tuples to store the RGB colour value. Any ideas on how to do that?
If you wanted to do something like
then you can immediately stop what were you doing. That's not how Numpy truth array generation works, if you want to filter blobs using that method you need to do this:
Admittedly, a lengthy way to generate the array, but it's probably faster than filtering the color blob by blob manually.