From 66c50bbaca78905b263dd7950f8513d107d53eaa Mon Sep 17 00:00:00 2001 From: ShyAssassin <49711232+ShyAssassin@users.noreply.github.com> Date: Sun, 12 Nov 2023 19:58:52 +0200 Subject: [PATCH] fix: y axis flipping --- TrackingBackend/app/processes/camera.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TrackingBackend/app/processes/camera.py b/TrackingBackend/app/processes/camera.py index 03fb9af..ab194c8 100644 --- a/TrackingBackend/app/processes/camera.py +++ b/TrackingBackend/app/processes/camera.py @@ -101,7 +101,7 @@ def preprocess_frame(self, frame: MatLike) -> MatLike: # flip the frame if needed if self.config.flip_x_axis: frame = cv2.flip(frame, 0) - elif self.config.flip_y_axis: + if self.config.flip_y_axis: frame = cv2.flip(frame, 1) # TODO: send frame to frontend before cropping, so the user can more easily adjust the roi