mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-11-04 14:39:42 +08:00
fix: UVC cameras not working
This commit is contained in:
parent
8f2709253c
commit
5e28ee34e5
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user