MCPcopy Create free account
hub / github.com/OpenGVLab/UniFormerV2 / clean

Method clean

slowfast/visualization/demo_loader.py:353–366  ·  view source on GitHub ↗

Clean up open video files and windows.

(self)

Source from the content-addressed store, hash-verified

351 self.get_thread.join()
352
353 def clean(self):
354 """
355 Clean up open video files and windows.
356 """
357 self.stopped = True
358 self.input_lock.acquire()
359 self.cap.release()
360 self.input_lock.release()
361 self.output_lock.acquire()
362 if self.output_file is None:
363 cv2.destroyAllWindows()
364 else:
365 self.output_file.release()
366 self.output_lock.release()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected