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일

1 개 추천

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

PALLAVI MITRA
PALLAVI MITRA 2017년 5월 31일
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 2017년 5월 31일
Yes. That is the reference video.
PALLAVI MITRA
PALLAVI MITRA 2017년 5월 31일
Okay. Thanks a lot.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Computer Vision Toolbox에 대해 자세히 알아보기

질문:

2017년 5월 31일

댓글:

2017년 5월 31일

Community Treasure Hunt

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

Start Hunting!

Translated by