aliciiavs commited on
Commit
02b04f0
·
verified ·
1 Parent(s): a877524

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -1,15 +1,21 @@
1
  import cv2
2
  import streamlit as st
3
 
4
- cap = cv2.VideoCapture(1)
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: