From 17b08e35a5f03cb972e7ea1e4580b10f0f1df500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pl=C3=BCss=20Roland?= Date: Sun, 19 Jan 2025 21:49:45 +0100 Subject: [PATCH] clean up comments and log lines to be more correct --- BabbleApp/vivefacialtracker/camera.py | 2 +- BabbleApp/vivefacialtracker/camera_controller.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/BabbleApp/vivefacialtracker/camera.py b/BabbleApp/vivefacialtracker/camera.py index 28035cb..32b341e 100644 --- a/BabbleApp/vivefacialtracker/camera.py +++ b/BabbleApp/vivefacialtracker/camera.py @@ -448,7 +448,7 @@ class FTCamera: FTCamera._logger.info("FTCamera.read: EXIT") else: def read(self: 'FTCamera') -> None: - """Read next frame.""" + """Read frames until requested to exit.""" while not self.terminator.terminate_requested: self._filter_graph.grab_frame() time.sleep(0.001) diff --git a/BabbleApp/vivefacialtracker/camera_controller.py b/BabbleApp/vivefacialtracker/camera_controller.py index 4694dc0..d4e8502 100644 --- a/BabbleApp/vivefacialtracker/camera_controller.py +++ b/BabbleApp/vivefacialtracker/camera_controller.py @@ -98,20 +98,20 @@ class FTCameraController: """Stop capturing frames if capturing.""" if self._proc_read is None: return - FTCameraController._logger.info("FTCameraController._stop_read: Linux: stop process") + FTCameraController._logger.info("FTCameraController._stop_read: stop process") self._proc_read.terminate() # sends a SIGTERM self._proc_read.join(1) if self._proc_read.exitcode is not None: FTCameraController._logger.info( - "FTCameraController.stop_read: Linux: process terminated") + "FTCameraController.stop_read: process terminated") else: FTCameraController._logger.info( - "FTCameraController._stop_read: Linux: process not responding, killing it") + "FTCameraController._stop_read: process not responding, killing it") self._proc_read.kill() # sends a SIGKILL self._proc_read.join(1) FTCameraController._logger.info( - "FTCameraController._stop_read: Linux: process killed") + "FTCameraController._stop_read: process killed") self._proc_read = None def _read_process(self: 'FTCameraController',