Mock OpenCVCamera

This commit is contained in:
Remi Cadene
2024-09-01 17:36:58 +02:00
committed by Remi Cadene
parent f17d9a2ba1
commit 96cc2433d6
3 changed files with 63 additions and 16 deletions

View File

@@ -337,6 +337,8 @@ class OpenCVCamera:
return color_image
def read_loop(self):
# TODO(rcadene): implement safe exit for the threads,
# to avoid Segfault when main process finishes
while self.stop_event is None or not self.stop_event.is_set():
self.color_image = self.read()