How do I speed down on video stream?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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
0 Kommentare
Akzeptierte Antwort
Chunru
am 22 Aug. 2022
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
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Tracking and Motion Estimation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!