how to I use this syntax for People detection [___] = step(peopleDetector,I,roi)
Show older comments
I have ROI (REGION OF INTERESTEd) and which comes from a function that detects movement in a video and I would like to pass it to the spet detection method, how to do it?
Answers (2)
Image Analyst
on 2 Dec 2017
Pass it in the argument list to your "spet detection" function
output = MySpetDetectionFunction(ROI);
3 Comments
EL BETAR DAOUD AHMED
on 2 Dec 2017
Edited: Walter Roberson
on 2 Dec 2017
Image Analyst
on 2 Dec 2017
I don't know what "the spet detection" method is. Presumably you know and you've already written it or have an algorithm for it and just need to make it into a function, perhaps from a script that it's in now - I don't know. Since you say " the" it's like you already have it. If you don't already have it, then I don't either and can't write it for you.
EL BETAR DAOUD AHMED
on 2 Dec 2017
Walter Roberson
on 2 Dec 2017
Your line
[output] = peopleDetector(Tab_bboxes{54});
is equivalent to
[output] = step(peopleDetector, Tab_bboxes{54});
which is missing the ROI portion.
Your line
Tab_bboxes = multiObjectTracking();
creates a multitracker object from the Automated Driving System Toolbox, https://www.mathworks.com/help/driving/examples/multiple-object-tracking-tutorial.html, the output of which is an object, not a cell array. The tracker needs to be be used with updateTracks() to find tracks.
2 Comments
EL BETAR DAOUD AHMED
on 4 Dec 2017
Walter Roberson
on 4 Dec 2017
[output] = peopleDetector(I, Tab_bboxes{54});
Categories
Find more on Tracking and Motion Estimation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!