I'm writing an application for my undergrad dissertation which, at the fundamental level allows tracking of multiple objects from a video feed using the OpenCV library. To develop this idea a bit more, I'd like to be able to draw a line on the screen displaying the history of where the bounding box has been around the object I'm tracking. I've noticed there's no sort of inbuilt function for doing this, so any pointers towards crafting something...
Originally asked by Interpolation on Stack Exchange (stackoverflow) (CC BY-SA 4.0).