Laser Pointer Tracking
Laser Pointer Tracking from Saulius Lukauskas on Vimeo.
Tracking a laser pointer is a tricky task.
The naive approach would be applying a fixed threshold on image and therefore finding all the brightest pixels, which, hopefully, are pixels of our laser pointer (or its trail). The number of false positives can also be reduced by including only those points that are red in colour (by applying a threshold on hue).
However, this approach is way too sensitive to ambient light conditions, as the threshold applied may work on one light conditions and completely fail on the other. Also, checking the points hue is completely useless in daylight as the camera simply sees the laser pointer as white dot instead red there.
A more sensible approach was introduced by Evgeny Popovich in the PresenterMouse. You can see it working in the video above.
Read more…


