필터 지우기
필터 지우기

How do I speed down on video stream?

조회 수: 3 (최근 30일)
준영
준영 2022년 8월 22일
댓글: 준영 2022년 8월 22일
This is reference
I try to slow down video streaming but I don't know how.....
is it associate with videoreader parameter? please help me

채택된 답변

Chunru
Chunru 2022년 8월 22일
Add pause(0.1) in the code below:
obj = setupSystemObjects();
tracks = initializeTracks(); % Create an empty array of tracks.
nextId = 1; % ID of the next track
% Detect moving objects, and track them across video frames.
while hasFrame(obj.reader)
frame = readFrame(obj.reader);
[centroids, bboxes, mask] = detectObjects(frame);
predictNewLocationsOfTracks();
[assignments, unassignedTracks, unassignedDetections] = ...
detectionToTrackAssignment();
updateAssignedTracks();
updateUnassignedTracks();
deleteLostTracks();
createNewTracks();
displayTrackingResults();
% Slow down the video
pause(0.1) % adjust value here
end

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Tracking and Motion Estimation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by