我使用peopleDetect
函數從視頻中檢測人物。我從peopleDetect
方法中得到了分數,但現在我需要每幀處理的時間爲peopleDetect
函數,因爲我需要繪製時間與分數的關係。以下代碼返回每幀的分數:使用人物處理幀的時間戳檢測
frameLeft = readerLeft.step();
% Detect people.
[bboxes,scores] = step(peopleDetector, frameLeft);
if ~isempty(bboxes)
% Find the centroids of detected people.
centroids = [round(bboxes(:, 1) + bboxes(:, 3)/2), ...
round(bboxes(:, 2) + bboxes(:, 4)/2)];
dispFrame = insertObjectAnnotation(frameLeft, 'rectangle' ,bboxes,scores);
else
dispFrame = frameLeft;
end
% Display the frame.
step(player, dispFrame);
問題:如何編輯它以在每一步獲得時間?
@mikkola - 這是非常好的你把這篇文章中的MATLAB中的文章放在這篇文章中供我們閱讀......但你不應該這麼做。 OP告訴我們去一個非現場資源找出問題所在......只是懶惰而已。 OP沒有表現出任何努力,所以你不應該解決這個懶惰。它應該被投票關閉恕我直言。 – rayryeng