How can I apply my faster RCNN Object Detector on the example "Tracking Pedestrians from a Moving Car"

조회 수: 4 (최근 30일)
I trained my faster RCNN Object Detector. I want to apply my detector on a video. So, I found a good example in Matlab. It's the Tracking Pedestrians from a Moving Car Example. I tried to change the ACF detector to the faster RCNN detector in the example. But It couldn't work. Please let me know how to apply the faster RCNN detector on the example. Thank you!
% Create system objects used for reading video, loading prerequisite data file, detecting pedestrians, and displaying the results.
videoFile = 'vippedtracking.mp4';
scaleDataFile = 'pedScaleTable.mat'; % An auxiliary file that helps to determine the size of a pedestrian at different pixel locations.
obj = setupSystemObjects(videoFile, scaleDataFile);
detector = peopleDetectorACF('caltech');
  댓글 수: 2
Birju Patel
Birju Patel 2017년 7월 20일
When you say it's not working, do you mean it doesn't detect anything or are you getting an error?
Jungmoon Kim
Jungmoon Kim 2017년 8월 1일
Thank you for your comment.
The modifications in the code are shown below. I modified the variable named "detector".
The first picture is the pre-modification variable,
and the second picture is the post-modification variable.
What I want is to detect the video with faster R-CNN.
When I posted this question, I got an error in my code. I checked the code again today and made some changes.
if true
[bboxes, scores] = detect(detector, frame, option.ROI); %, ...
'WindowStride', 2,...
'NumScaleLevels', 4, ...
'SelectStrongest', false);
end
In this code we have removed "WindowStride, NumScaleLevels" part because we got an error because of "WindowStride, NumScaleLevels".
When I run the code again, it will just run. But there are some problems. Execution speed is too slow. And detection is not working.
What I have to do?

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Computer Vision Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!