Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ import cv2
|
|
| 10 |
|
| 11 |
st.set_page_config(page_title="Streamlit WebCam App")
|
| 12 |
st.title("Webcam Display Steamlit App")
|
| 13 |
-
cap = cv2.VideoCapture(0)
|
| 14 |
frame_placeholder = st.empty()
|
| 15 |
#st_frame = st.empty()
|
| 16 |
stop_button_pressed = st.button("Stop")
|
|
|
|
| 10 |
|
| 11 |
st.set_page_config(page_title="Streamlit WebCam App")
|
| 12 |
st.title("Webcam Display Steamlit App")
|
| 13 |
+
cap = cv2.VideoCapture(0, cv2.CAP_DSHOW)
|
| 14 |
frame_placeholder = st.empty()
|
| 15 |
#st_frame = st.empty()
|
| 16 |
stop_button_pressed = st.button("Stop")
|