Kinect Connector

class kinectconnector.KinectConnector(device_number=0)[source]

Wrapper for the Freenect python libraries you can get_image() and get_depth() for separate channel images

get_depth()[source]

Get the next available depth frame from the kinect, as a numpy array. Low bits in this depth are stripped so it fits in an 8-bit image channel

Returns:A numpy array, shape:(640, 480)
Return type:np.uint8
get_depth_matrix()[source]

Get the next available depth frame from the kinect, as a numpy array.

Returns:A numpy array, shape:(640, 480)
Return type:np.uint16
get_image()[source]

Get the next available rgb frame from the kinect, as a numpy array.

Returns:A numpy array, shape:(640, 480, 3)
Return type:np.uint8