pykinect get_next_frame example help

May 24, 2012 at 8:48 PM

Can anyone point me to a sample of how to properly use ImageStream.get_next_frame()?  I'm trying to implement what i THINK is analogous to getting frames by polling, e.g.:

with nui.Runtime() as kinect:

    kinect.video_stream.open(<args>)

    kinect.video_stream.get_next_frame(1000)

 

Based on the sample code (PyGameDemo,etc), i get the impression that it's probably not that simple, what other steps would i need to take to set this up properly?  Thanks!