Reverse color blob detection

Not quite sure how to describe this, but I’m looking for a way to do color blob detection on objects that are not a specific color. To put it more directly, if I have a green wall, is there a way to detect anything in view that is not green? I know how to get the camera to find green objects, but I want it in this case to find everything that is not green.

This will eventually be used for robotic object avoidance; my idea is to look at the floor and find anything that is a different color than the floor. I just figure that a green (or white, or gray) wall is a good way to test things before I move on to the floor.

Thanks in advance!

Pass invert=True to find blobs. It’s right in the docs. :grinning: