Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The approach that you need to follow, I think that it is quite easy and obvious:

  1. detect the the laser point
  2. track it through the video frames
  3. keep history of the laser point coordinates from each frame into a buffer (i.e. vector<point>)
  4. draw line between the each point into the vector at the end of the video or as the video is running if you want to have a direct visualization

and that's it.