Skip to content

Commit 99eb24e

Browse files
committed
Stop streaming reorganisation
1 parent a097d82 commit 99eb24e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

DeepLabStream.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,10 +437,12 @@ def start_experiment(self):
437437
def stop_recording(self):
438438
# finishing with the videos
439439
if self._recording_running:
440+
print("Saving the video")
440441
for file in self._video_files.values():
441442
file.release()
442443
self._recording_running = False
443444
self._video_files = None
445+
print("Video saved")
444446

445447
def stop_dlc(self):
446448
# cleaning up the dlc processes
@@ -469,9 +471,9 @@ def finish_streaming(self):
469471
"""
470472
Clean up after ourselves
471473
"""
472-
self.stop_recording()
473-
self.stop_dlc()
474474
self.stop_experiment()
475+
self.stop_dlc()
476+
self.stop_recording()
475477
cv2.destroyAllWindows()
476478

477479
#####################

0 commit comments

Comments
 (0)