Ask Your Question

Revision history [back]

Combine a Haar Cascade with color detection

I am attempting to detect an object with my webcam. I am successfully detecting the object but also detecting a LOT of false positives. Is there any way to filter my detections using a color? The object that I am trying to detect is red - I want to only draw a rectangle around my object if it matches the cascade AND it happens to be red. Any help would be greatly appreciated.