I mentioned in the Kinect + Swords presentation and in my Kinect Preliminary Analysis that Kinect is capable of determining its location in 3D space relative to the TV, but haven't explicitly stated how it can do this... until now.
![]() |
| Kinect location calibration process as seen by the player (click image to see full-size) |
Assuming...
- the TV's aspect ratio is known and correct,
- the pixels of the TV are roughly square,
- the TV is set up so that the edges of the 360's video signal line up with the edges of the screen, and
- the TV and Kinect are both roughly level and facing the same lateral direction
- Change the width of the centered yellow bar until it's as wide as Kinect is in real life.
- Compare this pixel width to the known real width of Kinect to obtain the approximate pixel-to-inch ratio.
- Use the pixel-to-inch ratio and pixel width of Kinect to determine the real width of the TV.
- Use known TV aspect ratio to obtain the real height of the TV.
- Change the height of the red bar until it it's approximately the same height as the distance from the bottom of the screen to the top of the Kinect sensor (if Kinect is above the TV, this bar is blue, at the top of the screen, and measures distance upward).
- Use this pixel distance to the top of Kinect and the pixel-to-inch ratio to determine the real world vertical offset (how far Kinect is above/below the TV).
- The depth offset of Kinect (away from the TV) is usually trivial, but if it's significant, this can be configured separately with a similar method as step 5.

0 comments:
Post a Comment