add debug logs

This commit is contained in:
Cyrille Nofficial 2022-11-09 21:04:32 +01:00
parent c755d019e8
commit 642df5b927

View File

@ -346,13 +346,19 @@ class PipelineController:
# Wait for frame # Wait for frame
in_rgb: dai.ImgFrame = q_rgb.get() # type: ignore # blocking call, will wait until a new data has arrived in_rgb: dai.ImgFrame = q_rgb.get() # type: ignore # blocking call, will wait until a new data has arrived
try: try:
logger.debug("process frame")
frame_ref = self._frame_processor.process(in_rgb) frame_ref = self._frame_processor.process(in_rgb)
except FrameProcessError as ex: except FrameProcessError as ex:
logger.error("unable to process frame: %s", str(ex)) logger.error("unable to process frame: %s", str(ex))
return return
logger.debug("frame processed")
logger.debug("wait for nn response")
# Read NN result # Read NN result
in_nn: dai.NNData = q_nn.get() # type: ignore in_nn: dai.NNData = q_nn.get() # type: ignore
logger.debug("process objects")
self._object_processor.process(in_nn, frame_ref) self._object_processor.process(in_nn, frame_ref)
logger.debug("objects processed")
def stop(self) -> None: def stop(self) -> None:
""" """