-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TraitError: The 'filename' trait of an ImageRecorder instance must be a unicode string #52
Comments
Which version of ipywebrtc are you using? If not As a workaround, you can try this code: from ipywebrtc import CameraStream, ImageRecorder
camera = CameraStream(constraints=
{'facing_mode': 'user',
'audio': False,
'video': { 'width': 640, 'height': 480 }
})
camera
image_recorder = ImageRecorder(stream=camera, filename='record')
image_recorder |
Hi Martin, I have a conda environment up to date :
The full error message is :
|
Weird, I would have thought it is fixed on the last release. Did you try the workaround I gave you? |
Oh, i'm sorry. Your code works fine ! Thank you Best regards |
If you don't mind I will keep this issue opened until we fix it properly. Thanks a lot for reporting this issue! |
Hello,
I would like to apply visual processing on stream of my camera but...
I get an error by IPython on my jupyter lab :
TraitError: The 'filename' trait of an ImageRecorder instance must be a unicode string, but a value of traitlets.Undefined <class 'traitlets.utils.sentinel.Sentinel'> was specified.
Best,
The text was updated successfully, but these errors were encountered: