Quote:
Originally Posted by demosthenes2k8
What's the red goggle thing it's picking up on the right of the red image?
|
The algorithm is pretty simple, just checking the red and green channels, normalized by intensity. The code runs quickly enough for processing live video, but is sensitive to lighting changes and prone to some false positives. There are a number of functions which could be used to reduce or remove noise and false positives, the posted code however just outputs anything falling into the correct color range.