drawing trajectory of detected people in video

9 次查看(过去 30 天)
Im studying kalman filtering and people detection, and using Matlab example "multiObjectTracking.m" with my own video, my idea is detecting the people in the video but also display the trajectory of the people, drawing it on the video with a line or something, is there a function or method to do that? Something that uses the collected data to draw the trajectory of the detected object like the image below xD

回答(2 个)

Dima Lisin
Dima Lisin 2014-7-1
There is currently no special built-in function to draw the trajectories. But once you have the points, you can use the insertShape(I, 'Line', ...) to draw a polyline, and/or you can use the insertMarker() function to mark the individual points with markers of a consistent color.
  2 个评论
TIMOTHY YIN HONG
TIMOTHY YIN HONG 2019-1-2
i don't get it. is it insertShape(input , 'Line', [red] );
something like this?
Walter Roberson
Walter Roberson 2019-1-2
insertShape(input , 'Line', [xstart, ystart, xend, yend], 'Color', 'r' );
for appropriate xstart, ystart, xend, yend values.

请先登录,再进行评论。


Katie Doggett
Katie Doggett 2017-6-11
Did you ever figure this out? I'm trying to do something similar
  1 个评论
Image Analyst
Image Analyst 2017-6-11
Once you have the trajectory coordinates, you can simply use plot() to draw line/curve into the overlay above the image.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Image Processing and Computer Vision 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by