From 632471b90c6ff83c170f81991b44ab462cab5264 Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 11 Nov 2024 21:13:04 +0100 Subject: [PATCH] add test output. --- wigglecam/services/backends/cameras/picamera2.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wigglecam/services/backends/cameras/picamera2.py b/wigglecam/services/backends/cameras/picamera2.py index 73db663..ba21d33 100644 --- a/wigglecam/services/backends/cameras/picamera2.py +++ b/wigglecam/services/backends/cameras/picamera2.py @@ -171,6 +171,8 @@ def encode_frame_to_image(self, frame, format: Formats) -> bytes: tms = time.time() if self._config.optimize_memoryconsumption: + logger.info("enabled memory optimization so frame is in YUV420 and converted to RGB now") + print(frame.shape) # need to convert from YUV420 to RGB before processing jpg because PIL accepts only RGB # currently this is the only place cv2 is used, maybe there is another way to save cv2 from being used on nodes. frame = cv2.cvtColor(frame, cv2.COLOR_YUV420p2RGB)