OpenKinect / libfreenect

Drivers and libraries for the Xbox Kinect device on Windows, Linux, and OS X
http://openkinect.org
3.55k stars 1.15k forks source link

Unable to use both a kinect and a regular webcam at the same time #682

Open Sequential-circuits opened 4 months ago

Sequential-circuits commented 4 months ago

I have to unplug one otherwise I either get the error when the kinect works cv2.error: OpenCV(4.9.0) /io/opencv/modules/highgui/src/window.cpp:971: error: (-215:Assertion failed) size.width>0 && size.height>0 in function 'imshow'

or this when the webcam works: Failed to claim camera interface: LIBUSB_ERROR_NOT_FOUND Failed to open camera subdevice or it is not disabled.Failed to open motor subddevice or it is not disabled.Failed to open audio subdevice or it is not disabled.Error: Invalid index [0] Error: Can't open device. 1.) is it plugged in? 2.) Read the README

Sequential-circuits commented 4 months ago

I believe this must be because freenect seems to grab the entire USB stack not allowing it to be used for anything else. I read that somewhere, that you cannot use the cameras and the led/motor at the same time because of this