Package pyvision :: Package types :: Module kinect :: Class Kinect
[hide private]
[frames] | no frames]

Class Kinect

source code

object --+
         |
        Kinect


This class provides a simple interface to the kinect sensor.  When operating 
properly the device produces an color RGB video frame (8bit 640x480) and a 
depth image (11-bit, 640x480) at around 20-24 frames per second with low latency.


The kinect drivers to not appear to be robust.  Some trial and error may be
needed to determine how to best interface with the device. Here are some problem 
behaviours that I have seen: #
  * The Kinect does not seem to start properly.
  * Calling some functions in the freenect module results in segmentation
    faults
  * Connecting to the sensor temporarily or perminatly interupts the usb
    bus. (The keyboard and mouse stop working.)
  * The device seems to work better when connected to one of the ports on
    my laptop but not the other.
  * The device sometimes prints out error/warning messages which do not seem
    to interfere with the operation of the device.
    "[Stream 70] Expected 1748 data bytes, but got 948" #
    
After connecting the device to the usb port it may be helpful to initialize 
the device using ipython.  Try running these commands before connecting through
pyvision or attempting to grab frames: 

import freenect
freenect.init() # start the connection
exit

The current implementation initializes the device and returns RGB and depth
frames.  No advanced features such as LED, Audio, or Tilt are supported because
they cause sementation violations.

Instance Methods [hide private]
 
__init__(self)
Initialize a Kinect device.
source code
 
__iter__(self)
Return an iterator for this video
source code
 
next(self)
Get the next frame and depth image from the sensor.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

Initialize a Kinect device.

Overrides: object.__init__