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 want to extract the frame from the camera as a np array to use in other areas of my class. I tried making on_value_changed a self.methood to update frame but it didn't work and i don't know how to return the frame.
Any idea how i can get it all to be in one class?
class get_footage():
frame = np.array(None)
out = Image()
def on_value_changed(_):
im = Soruce.open(io.BytesIO(image_recorder.image.value))
frame = np.array(im)
return frame
def get_frame(self):
camera = CameraStream.facing_user(audio=False)
image_recorder = ImageRecorder(stream=camera)
print(image_recorder.image.observe(get_footage.on_value_changed,'value'))
image_recorder.recording = True
The text was updated successfully, but these errors were encountered:
I want to extract the frame from the camera as a np array to use in other areas of my class. I tried making on_value_changed a self.methood to update frame but it didn't work and i don't know how to return the frame.
Any idea how i can get it all to be in one class?
The text was updated successfully, but these errors were encountered: