MATLAB Answers


This question is closed. Reopen it to edit or answer.

how to fix not enough input arguments?

1 view (last 30 days)
Dimuthu Dissanayake
Dimuthu Dissanayake on 20 Mar 2018
Closed: Walter Roberson on 20 Mar 2018
I created a faster rcnn called 'detector' and it detect people.I want to give the video feed from webcam and detect people in the video.this is my code.
cam = webcam();
videoFrame = snapshot(cam);
frameSize = size(videoFrame);
videoPlayer = vision.VideoPlayer;
runLoop = true;
frameCount = 0;
while runLoop && frameCount < 400
videoFrame = snapshot(cam);
frameCount = frameCount + 1;
[bbox,scores] = detect(detector,step(videoFrame));
if ~isempty(bbox)
I = insertObjectAnnotation(videoFrame, 'rectangle', bbox, scores);
clear cam;
but I came up withis error.
Error using step
Not enough input arguments.
Error in webcamhumandetector (line 16)
[bbox,scores] = detect(detector,step(videoFrame));
please help.


Answers (0)

Community Treasure Hunt

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

Start Hunting!