Open b3ck opened 1 month ago
I did another test with this code and it worked:
import cv2
cap = cv2.VideoCapture(2)
if not (cap.isOpened()):
print("Could not open video device")
while True:
ret, frame = cap.read()
cv2.imshow("Live", frame)
cv2.waitKey(1)
cv2.destroyAllWindows()
cap.release()
But still unable to get 'deep-live-cam' working with it.
got it working, just changed line 322 in ui.py
cap = cv2.VideoCapture(camera_index)
to
cap = cv2.VideoCapture(2)
@b3ck there is no line 322 in ui.py https://github.com/hacksider/Deep-Live-Cam/blob/main/modules/ui.py
@bamjun
checkout the experimental
branch and there will be =)
https://github.com/hacksider/Deep-Live-Cam/tree/experimental
I'm using the
experimental
branch so I could choose the camera I wanted (OBS Virtual Camera) which is (2) but it only shows "Camera 0", so I made a test script and I was able to pull my OBS Virtual Camera using 'matplotlib',It shows up like this:
So I know it's possible, is there a way to force 'deep-live-cam' to use "Camera (2)" ?