Tracking Pedestrians from a Moving Car

1 回表示 (過去 30 日間)
PALLAVI MITRA
PALLAVI MITRA 2017 年 5 月 31 日
コメント済み: PALLAVI MITRA 2017 年 5 月 31 日
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?

採用された回答

MathReallyWorks
MathReallyWorks 2017 年 5 月 31 日
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 件のコメント
MathReallyWorks
MathReallyWorks 2017 年 5 月 31 日
Yes. That is the reference video.
PALLAVI MITRA
PALLAVI MITRA 2017 年 5 月 31 日
Okay. Thanks a lot.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by