Kinect / PyKinect2

Wrapper to expose Kinect for Windows v2 API in Python
MIT License
496 stars 236 forks source link

Fixing frame access time logic, also adding relative_time #25

Closed sjlevine closed 8 years ago

sjlevine commented 8 years ago

Hello,

Thank you for your work on this very useful project! It's a pleasure accessing the Kinect 2 from Python.

I'd like to submit this pull request, which makes the following additions:

  1. Fixes frame access time logic
  2. Addes a relative_time field to body frame data (which was previously inaccessible from the Python API).

As for the first point above, variables like _last_body_frame_access were used instead of self._last_body_frame_access, which caused functions such as get_last_body_frame() to always incorrectly return that there is new data (even if there isn't).

Thank you very much again!

All the best, Steve