Commit Graph

4 Commits (d7139d5c6edfd1baf79a8470c5d9d3a08bf06d64)

Author SHA1 Message Date
google-labs-jules[bot] 4f05fa29da fix: Force AVFoundation for macOS camera, improve error clarity
Modifies modules/video_capture.py to exclusively attempt using
cv2.CAP_AVFOUNDATION for camera initialization on macOS.
The fallback to the default backend for macOS within this specific
initialization block has been removed.

If AVFoundation fails to open the camera, an error is logged, and
the subsequent standard check in the function will raise a
RuntimeError, making it clearer that AVFoundation was the point of
failure.

This change aims to provide better diagnostics for macOS camera
issues and ensure the intended AVFoundation backend is prioritized
without immediate fallback to potentially problematic default backends
like OBSENSOR.
2025-06-16 17:37:29 +00:00
google-labs-jules[bot] d2794038f7 Okay, I've made a change to prioritize AVFoundation for macOS camera access.
I modified `modules/video_capture.py` so that it will explicitly try using `cv2.CAP_AVFOUNDATION` when initializing `cv2.VideoCapture` on macOS. If AVFoundation fails to open the camera, it will then fall back to the default OpenCV backend.

This adjustment should improve camera compatibility and stability on macOS, especially in situations where the default backend might not be working as expected.
2025-05-25 18:26:15 +00:00
KRSHH a9e8f27360 Pygrabber only for Windows 2024-12-16 18:41:39 +05:30
KRSHH c72582506d Adding Pygrabber as Cam manager 2024-12-13 19:49:11 +05:30