Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,13 @@
|
|
1 |
import cv2
|
2 |
import streamlit as st
|
3 |
|
4 |
-
|
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()
|