aliciiavs commited on
Commit
9d66c0a
1 Parent(s): 174eb48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -1,8 +1,13 @@
1
  import cv2
2
  import streamlit as st
3
 
4
- cap = cv2.VideoCapture(0)
5
-
 
 
 
 
 
6
  st.title("Sign Language App")
7
 
8
  frame_placeholder = st.empty()
 
1
  import cv2
2
  import streamlit as st
3
 
4
+ for i in range(-1, 10): # Try indices from 0 to 9
5
+ cap = cv2.VideoCapture(i)
6
+ if cap.isOpened():
7
+ print(f"Camera index {i} is open.")
8
+ cap.release()
9
+ else:
10
+ print(f"Camera index {i} is not open.")
11
  st.title("Sign Language App")
12
 
13
  frame_placeholder = st.empty()