Spaces:
Sleeping
Sleeping
Update app.py
Browse files123459 unmodified lines15161718192021222324import streamlit as sttitle = st.title("Welcome to Therapute")9 unmodified linesst.write(curr_exer)st.success("Success")import streamlit as stpicture = st.camera_input("Take a picture")if picture:st.image(picture)1234569 unmodified lines1617181920212223242526272829303132333435363738394041import streamlit as stimport numpy as npimport cv2 as cvtitle = st.title("Welcome to Therapute")9 unmodified linesst.write(curr_exer)st.success("Success")cap = cv.VideoCapture(0)if not cap.isOpened():print("Cannot open camera")exit()while True:# Capture frame-by-frameret, frame = cap.read()# if frame is read correctly ret is Trueif not ret:print("Can't receive frame (stream end?). Exiting ...")break# Our operations on the frame come heregray = cv.cvtColor(frame, cv.COLOR_BGR2GRAY)# Display the resulting framecv.imshow('frame', gray)if cv.waitKey(1) == ord('q'):break# When everything done, release the capturecap.release()cv.destroyAllWindows()
app.py+22-5