mirror of
https://github.com/iperov/DeepFaceLive
synced 2025-07-06 04:52:14 -07:00
fixed bug missing index for OpenCV option
This commit is contained in:
parent
839f08a602
commit
e58ff1e8d5
1 changed files with 1 additions and 0 deletions
|
@ -115,6 +115,7 @@ class CameraSourceWorker(BackendWorker):
|
|||
cv_api = {_DriverType.DSHOW: cv2.CAP_DSHOW,
|
||||
_DriverType.MSMF: cv2.CAP_MSMF,
|
||||
_DriverType.GSTREAMER: cv2.CAP_GSTREAMER,
|
||||
_DriverType.OPENCV: 0,
|
||||
}[state.driver]
|
||||
|
||||
vcap = cv2.VideoCapture(state.device_idx, cv_api)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue