3 import matplotlib.pyplot
as mp
19 image_depth.set_data(data)
21 image_depth = mp.imshow(data, interpolation=
'nearest', animated=
True)
29 image_rgb.set_data(data)
31 image_rgb = mp.imshow(data, interpolation=
'nearest', animated=
True)
45 print(
'Press Ctrl-C in terminal to stop')
46 signal.signal(signal.SIGINT, handler)
47 freenect.runloop(depth=display_depth,
def display_depth(dev, data, timestamp)
def display_rgb(dev, data, timestamp)
def handler(signum, frame)