Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,21 @@
|
|
1 |
import cv2
|
2 |
import streamlit as st
|
3 |
|
4 |
-
cap = cv2.VideoCapture(
|
5 |
|
6 |
st.title("Sign Language App")
|
7 |
|
8 |
frame_placeholder = st.empty()
|
9 |
|
10 |
stop_button_pressed = st.button("Stop")
|
11 |
-
|
12 |
while cap.isOpened() and not stop_button_pressed:
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
ret, frame = cap.read()
|
14 |
|
15 |
if not ret:
|
|
|
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()
|
9 |
|
10 |
stop_button_pressed = st.button("Stop")
|
11 |
+
start_button_pressed = st.button("Start")
|
12 |
while cap.isOpened() and not stop_button_pressed:
|
13 |
+
|
14 |
+
while start_button_pressed:
|
15 |
+
if start_button_pressed:
|
16 |
+
break
|
17 |
+
continue
|
18 |
+
|
19 |
ret, frame = cap.read()
|
20 |
|
21 |
if not ret:
|