AndrewLam489 commited on
Commit
a0c3230
·
verified ·
1 Parent(s): a3696e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,7 +68,7 @@ def main():
68
  st.set_page_config(page_title="Streamlit WebCam App")
69
  st.title("Webcam Display Steamlit App")
70
  st.caption("Powered by OpenCV, Streamlit")
71
- cap = cv2.VideoCapture(0)
72
  frame_placeholder = st.empty()
73
  stop_button_pressed = st.button("Stop")
74
  while cap.isOpened() and not stop_button_pressed:
 
68
  st.set_page_config(page_title="Streamlit WebCam App")
69
  st.title("Webcam Display Steamlit App")
70
  st.caption("Powered by OpenCV, Streamlit")
71
+ cap = cv2.VideoCapture(1)
72
  frame_placeholder = st.empty()
73
  stop_button_pressed = st.button("Stop")
74
  while cap.isOpened() and not stop_button_pressed: