Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,6 +48,5 @@ if st.button("开始摄像头"):
|
|
| 48 |
stframe.image(frame_rgb, caption="检测到的物体", channels="RGB")
|
| 49 |
|
| 50 |
video_capture.release()
|
| 51 |
-
cv2.destroyAllWindows()
|
| 52 |
else:
|
| 53 |
st.write("点击上方按钮以启动摄像头")
|
|
|
|
| 48 |
stframe.image(frame_rgb, caption="检测到的物体", channels="RGB")
|
| 49 |
|
| 50 |
video_capture.release()
|
|
|
|
| 51 |
else:
|
| 52 |
st.write("点击上方按钮以启动摄像头")
|