필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

how to fix not enough input arguments?

조회 수: 1 (최근 30일)
Dimuthu Dissanayake
Dimuthu Dissanayake 2018년 3월 20일
마감: Walter Roberson 2018년 3월 20일
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);
end
step(videoPlayer,I);
end
clear cam;
release(videoPlayer);
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.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by