简体   繁体   中英

Haar cascade tracking of multiple balls

I created haar cascade which is able to track all balls in the image, then I tried to train it to track only green balls but its not working. Is it even possible to track only balls with certain color?

Haar features are only based on pixels intensity . That's why the input image is converted to a grayscale image before being processed (as shown in this Python tutorial ).

So the answer is no , you can't track only balls of certain color with an Haar Cascade Classifier.

Instead, you could try the approach explained here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM