user1549912
user1549912

Reputation: 113

K4W Python Problems in OpenKinect Libfreenect

I have installed the K4W branch of the open kinect project on Linux 11.10 from https://github.com/renewagner/libfreenect/tree/k4w-wip . I can navigate to the directory libfreenect/build and run the command:

sudo bin/glview

and the output works correctly.

I have also installed the Python wrappers from libfreenect/wrappers/python and I can import the libraries successfully. However if I run a simple code such as

import freenect
freenect.sync_get_depth() 

Which I saved as kinect1.py and then ran using the command sudo kinect1.py

I get the following error:

Error: Invalid Index[0]

Error: Can't open device 1.) Is it plugged in? 2.) Read README

However, I can go straight back to running the glview example and it still work find. So I must be missing something with the Python wrapper implementation. I hope someone can help.

Upvotes: 2

Views: 1086

Answers (0)

Related Questions