aliciiavs commited on
Commit
c644742
·
verified ·
1 Parent(s): 88ac291

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -8
app.py CHANGED
@@ -1,21 +1,14 @@
1
  import cv2
2
  import streamlit as st
3
 
4
- cap = cv2.VideoCapture(2)
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:
 
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
  while cap.isOpened() and not stop_button_pressed:
 
 
 
 
 
 
12
  ret, frame = cap.read()
13
 
14
  if not ret: