MATLAB Answers

Tracking Pedestrians from a Moving Car

11 views (last 30 days)
I am using the example code for tracking pedestrian from a moving car (https://www.mathworks.com/help/vision/examples/tracking-pedestrians-from-a-moving-car.html) with different video. In this code an auxiliary file named "pedScaleTable.mat" is used that helps to determine the size of the pedestrian. I want to create this file for my own video. How can I create this file?

  0 Comments

Sign in to comment.

Accepted Answer

MathReallyWorks
MathReallyWorks on 31 May 2017
Hello Pallavi,
Do you have a reference video with no pedestrians in it?
If yes, then it will be easy to find the size of pedestrians.
Try using this approach:
Get all the frames in real time and subtract each of them from their respective reference frame from reference video.
function frame = readFrame()
frame = step(obj.reader);
end
From the difference, You will get some blobs. Use regionprops() to detect the area of those blobs. It will give the idea of their size.
I hope it will be useful.

  3 Comments

PALLAVI MITRA
PALLAVI MITRA on 31 May 2017
Thank you very much for this prompt reply. I have a doubt in your answer. Are you asking for the video same as my example video without pedestrian?
MathReallyWorks
MathReallyWorks on 31 May 2017
Yes. That is the reference video.

Sign in to comment.

More Answers (0)

Sign in to answer this question.