Skip to content

Commit 8c5b3c3

Browse files
committed
Flip frames to match user orientation
1 parent 61ddbad commit 8c5b3c3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

coffee_ws/src/coffee_head/coffee_head/camera_node.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,9 @@ def _capture_loop(self):
550550
time.sleep(0.01) # Short sleep to prevent CPU overuse
551551
continue
552552

553+
# Flip the frame horizontally to correct mirror effect
554+
frame = cv2.flip(frame, 1) # 1 means horizontal flip
555+
553556
# Process face detection (only on some frames to maintain performance)
554557
frame_index += 1
555558
if self.enable_face_detection:

0 commit comments

Comments
 (0)