From 642df5b927eaec5894befd3a5c11bdcb8b947f76 Mon Sep 17 00:00:00 2001 From: Cyrille Nofficial Date: Wed, 9 Nov 2022 21:04:32 +0100 Subject: [PATCH] add debug logs --- camera/depthai.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/camera/depthai.py b/camera/depthai.py index 58706e6..8e9411e 100644 --- a/camera/depthai.py +++ b/camera/depthai.py @@ -346,13 +346,19 @@ class PipelineController: # Wait for frame in_rgb: dai.ImgFrame = q_rgb.get() # type: ignore # blocking call, will wait until a new data has arrived try: + logger.debug("process frame") frame_ref = self._frame_processor.process(in_rgb) except FrameProcessError as ex: logger.error("unable to process frame: %s", str(ex)) return + logger.debug("frame processed") + + logger.debug("wait for nn response") # Read NN result in_nn: dai.NNData = q_nn.get() # type: ignore + logger.debug("process objects") self._object_processor.process(in_nn, frame_ref) + logger.debug("objects processed") def stop(self) -> None: """