We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent abf0ff9 commit 3561abeCopy full SHA for 3561abe
1 file changed
main.py
@@ -9,8 +9,8 @@
9
CHANNELS = 2
10
11
# Device indices from query_devices()
12
-blackhole_input_device = 0
13
-headphones_output_device = 1
+blackhole_input_device = 1
+headphones_output_device = 6
14
15
# Mediapipe setup
16
mp_face_mesh = mp.solutions.face_mesh
@@ -20,7 +20,10 @@
20
hands = mp_hands.Hands(max_num_hands=1, min_detection_confidence=0.7)
21
22
# Webcam
23
-cap = cv2.VideoCapture(1)
+cap = cv2.VideoCapture(0)
24
+
25
+if not cap.isOpened():
26
+ print("Error: Could not open video capture device. Check the index (0, 1, etc.)")
27
28
# Shared panning, distance values, and master volume
29
pan = 0.0
0 commit comments