virtualbackground
virtualbackground copied to clipboard
OSError: [Errno 22] Invalid argument
When I run python3 viba.py --background sample_background.jpg
2020-05-10 17:15:19,906|INFO|viba|TensorflowJS model found on disk
2020-05-10 17:15:20,262|INFO|viba|TensorflowJS model mobilenet_quant4_100_stride16 loaded
2020-05-10 17:15:20,509|INFO|viba|Real camera initialized at device /dev/video0, resolution (640, 480) and fps 30
Traceback (most recent call last):
File "viba.py", line 408, in <module>
main()
File "/home/unai/Escritorio/virtualbackground-master/env/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/unai/Escritorio/virtualbackground-master/env/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/unai/Escritorio/virtualbackground-master/env/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/unai/Escritorio/virtualbackground-master/env/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "viba.py", line 396, in main
fake_cam=Cam(
File "viba.py", line 41, in __init__
self.init_fake_cam()
File "viba.py", line 60, in init_fake_cam
self.interface = pyfakewebcam.FakeWebcam(self.device, self.width, self.height)
File "/home/unai/Escritorio/virtualbackground-master/env/lib/python3.8/site-packages/pyfakewebcam/pyfakewebcam.py", line 54, in __init__
fcntl.ioctl(self._video_device, _v4l2.VIDIOC_S_FMT, self._settings)
OSError: [Errno 22] Invalid argument
That's the full output. I've installed all dependencies.