drawing trajectory of detected people in video

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

Antworten (2)

Dima Lisin
Dima Lisin am 1 Jul. 2014

0 Stimmen

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 Kommentare

i don't get it. is it insertShape(input , 'Line', [red] );
something like this?
insertShape(input , 'Line', [xstart, ystart, xend, yend], 'Color', 'r' );
for appropriate xstart, ystart, xend, yend values.

Melden Sie sich an, um zu kommentieren.

Katie Doggett
Katie Doggett am 11 Jun. 2017

0 Stimmen

Did you ever figure this out? I'm trying to do something similar

1 Kommentar

Image Analyst
Image Analyst am 11 Jun. 2017
Once you have the trajectory coordinates, you can simply use plot() to draw line/curve into the overlay above the image.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Image Processing and Computer Vision finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 20 Mai 2014

Kommentiert:

am 2 Jan. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by