You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a Streamlit app that involves real-time video processing using the VideoTransformerBase class. The app is designed to track hand movements and count repetitions. I've successfully implemented the counting logic within the transform method of the VideoTransformerBase class, and I'm trying to display the updated counter value on the Streamlit app interface.
Problem
The counter value (self.right_counter) is correctly updating within the transform method, but I'm having trouble displaying this updated value on the Streamlit interface. I've tried using various Streamlit display functions like st.text, st.write, and even direct HTML rendering using st.markdown, but none of them seem to work within the transform method.
What I've Tried
Using st.text, st.write, and st.markdown to display the counter value.
Placing the Streamlit display code both inside and outside the transform method.
Using st.session_state to store the counter value and attempting to display it.
I suspect that there might be some limitations when using Streamlit display functions within the transform method of the VideoTransformerBase class. I'm looking for guidance on how to properly display the updated counter value on the Streamlit app interface as the video is being processed.
Any help or suggestions would be greatly appreciated. Thank you!
The text was updated successfully, but these errors were encountered:
Issue Description
I'm working on a Streamlit app that involves real-time video processing using the
VideoTransformerBase
class. The app is designed to track hand movements and count repetitions. I've successfully implemented the counting logic within thetransform
method of theVideoTransformerBase
class, and I'm trying to display the updated counter value on the Streamlit app interface.Problem
The counter value (
self.right_counter
) is correctly updating within thetransform
method, but I'm having trouble displaying this updated value on the Streamlit interface. I've tried using various Streamlit display functions likest.text
,st.write
, and even direct HTML rendering usingst.markdown
, but none of them seem to work within thetransform
method.What I've Tried
st.text
,st.write
, andst.markdown
to display the counter value.transform
method.st.session_state
to store the counter value and attempting to display it.Code Sample
Additional Notes:
I suspect that there might be some limitations when using Streamlit display functions within the
transform
method of theVideoTransformerBase
class. I'm looking for guidance on how to properly display the updated counter value on the Streamlit app interface as the video is being processed.Any help or suggestions would be greatly appreciated. Thank you!
The text was updated successfully, but these errors were encountered: