Open dmthvlngm opened 8 years ago
Thank you so much @dtheva ! You saved my time !
Hi @dtheva.. I removed the initDevice function from the code but now I met the error: " There no Kinect devices, returning null. Could not open camera: -12 Failed to open camera subdevice or it is not disabled.Failed to open motor subdevice or it is not disabled.Failed to open audio subdevice or it is not disabled. " I use v1473 and Windows10. Can you help me to solve this problem?
@candanerim i'm facing same issue.. plz if u solved this issue plz guide me. Thanks
If you can't init the device using initDevice() (v1), then initVideo() or initDepth() instead, depending on which one you want. If you want the IR video image, this becomes:
initVideo(); enableIR(true);
@candanerim try use Zadig to install the libusbK driver for each device you wish to use. This includes installing the libusbK for all the kinect v1 drivers listed on Zadig GUI.
@TheGuardiaan I'm pretty new to all this including using Zadig, so following your suggestion took some experimentation. For the sake of exposition, here's the steps I took after having the same issue as @candanerim and following your instructions:
Once complete, your computer should now recognize the Kinect device and display the depth data. Thanks!
This video by programafacil is very useful to use Zadig, and even though it's in spanish you will be able to understand what you need to do. It worked for me and started using my Kinect v1 right away. Hope it works.
https://www.youtube.com/watch?v=o5K3boj8bVw&feature=emb_title
@candanerim try use Zadig to install the libusbK driver for each device you wish to use. This includes installing the libusbK for all the kinect v1 drivers listed on Zadig GUI.
Posting this issue as well as possible resolution.
Running Processing 3.1.1 on fresh install of OS X El Capitan (10.11.6) Kinect V1
The following code was obtained from: Youtube Link from Daniel Shiffman's Coding Rainbow channel
If you are using a KinectV1 device, the line:
kinect.initDevice();
will throw a "The function "initDevice()" does not exist" error.I suspect this is due to the fact that initDevice() starts up the IR, depth, and video acquisition. Since KinectV1 cannot receive both video and IR simultaneously (something KinectV2 is able to do however), this function call is not applicable to the KinectV1 device. The line can be omitted (or commented out) and the code should run without any errors.
Hope this reasoning makes sense (and is correct).
I was struggling with this all afternoon and finally made some progress.