Tracking Pedestrians from a Moving Car

조회 수: 2 (최근 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