Skip to content

Commit

Permalink
add test output.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgineer85 committed Nov 11, 2024
1 parent cbe1f35 commit 632471b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wigglecam/services/backends/cameras/picamera2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 632471b

Please sign in to comment.