From 5e28ee34e58719d30f41b9a70fe94d3f8995dcac Mon Sep 17 00:00:00 2001 From: Prohurtz <48768484+RedHawk989@users.noreply.github.com> Date: Sat, 23 Sep 2023 19:49:41 -0500 Subject: [PATCH] fix: UVC cameras not working --- EyeTrackApp/camera.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/EyeTrackApp/camera.py b/EyeTrackApp/camera.py index 0ee6e9c..1da6d74 100644 --- a/EyeTrackApp/camera.py +++ b/EyeTrackApp/camera.py @@ -111,10 +111,7 @@ class Camera: self.cv2_camera = cv2.VideoCapture() self.cv2_camera.setExceptionMode(True) # https://github.com/opencv/opencv/blob/4.8.0/modules/videoio/include/opencv2/videoio.hpp#L803 - if platform.system() == "Darwin": - self.cv2_camera.open(self.current_capture_source) #MacOS - else: - self.cv2_camera.open(self.current_capture_source, cv2.CAP_FFMPEG, params=OPENCV_PARAMS) + self.cv2_camera.open(self.current_capture_source, cv2.CAP_FFMPEG, params=OPENCV_PARAMS) should_push = False else: # We don't have a capture source to try yet, wait for one to show up in the GUI.