For this exercise, we take a ROI on a webcam, detect the color, and track all colors that are the same or atleast within its threshold. Also, if the ROI should see black, The tracking is reset.
As its hard, no images are shown as reference.
The algorithm is as such:
1. First, make the ROI.
2. Save the ROI to get the colors on the region. Convert RGB to HSV and get the hue.
3. Compute the range and, using it, apply it to be tracked using inRange() function.
4. For tracking, code given can be used.
That is all.
No comments:
Post a Comment