Replies: 1 comment
-
Please see https://discuss.streamlit.io/t/new-component-streamlit-webrtc-a-new-way-to-deal-with-real-time-media-streams/8669/23?u=whitphx. The point is that you cannot use This is because
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Here's part of my code:
I hoped that the
frame
converted tondarray
would be stored incapture_img
since I've already started the camera.But even though
capture_img = frame.to_ndarray(format='bgr24')
gets executed,capture_img
staysNone
. Because when a button is pressedcapture_img
is directly assigned to some and value it raises something likeAttributeError: 'NoneType' object has no attribute 'shape'
.Why is it so? Is there another way to capture a frame/image?
Beta Was this translation helpful? Give feedback.
All reactions