I am using the detector of Viola and Jones tracking for signs of transit, but now I'm trying to use some filters HSV color space, I was wondering how do I get it to know if a certain color in this my ROI, I studied a little inRange () function, but do not get it right, anybody know something about? Thank you.