Deploying vision.PeopleDetector into Raspberry PI as standalone device.

1 次查看(过去 30 天)
I have read this documentation:
Section "Inputs Arguments" mentions:
-Input image - I have one.
-ROI - I don't use that.
- Classification model - I specified one.
However, when I try to deploy an algorithim into RPI the Matlab Coder returns this error: "The library method 'vision.internal.buildable.HOGDescriptorBuildable.updateBuildInfo' failed. Caused by: Not enough input arguments.".
vision.People.Detector is supported for code generation.
How can I deploy vision.People.Detector into RPI?
What am I doing wrong?
My code:
function raspi() %#codegen
mypi = raspi();
cam = cameraboard(mypi,'Resolution','640x480');
peopledetector = vision.PeopleDetector;
peopledetector.ClassificationModel = ('UprightPeople_128x64');
peopledetector.ClassificationThreshold = 1;
peopledetector.MinSize = [];
peopledetector.MaxSize = [];
peopledetector.ScaleFactor = 1.05;
peopledetector.WindowStride = [8 8];
peopledetector.MergeDetections = 1;
peopledetector.UseROI = 0;
for f = 1:500
I = snapshot(cam);
[bboxes,scores] = peopledetector(I);
if bboxes ~= 0
% Insert boxes into image
I = insertObjectAnnotation(I,'rectangle', bboxes, scores);
end
% Display image
displayImage(mypi,I,'Title','Detector')
end

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by