mirror of
https://github.com/hacksider/Deep-Live-Cam.git
synced 2026-09-04 14:56:36 +02:00
fix: no cam detected on Arch Linux, use string path for camera capture instead
This commit is contained in:
+1
-1
@@ -417,7 +417,7 @@ def get_available_cameras() -> Tuple[List[int], List[str]]:
|
||||
indices: List[int] = []
|
||||
names: List[str] = []
|
||||
for i in range(10):
|
||||
cap = cv2.VideoCapture(i)
|
||||
cap = cv2.VideoCapture(f"/dev/video{i}")
|
||||
if cap.isOpened():
|
||||
indices.append(i)
|
||||
names.append(f"Camera {i}")
|
||||
|
||||
Reference in New Issue
Block a user