-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
distortion and tilt #90
Comments
I think it corrects for lens distortion, but the tilt of Kinect position is not cosnidered a distortion. You can calculate the Kinect's tilt and Position from the floor using this code: floor_vector = self._bodies.floor_clip_plane Make sure that the kinect is tracking someone first!!!!! |
Thanks for the quick reply @KonstantinosAng learnt alot from reading your mapper library. |
I always had the Kinect at a tilt anlgle but it did not produce any wrong data. Why do you think the position data need to be corrected ? Also keep in mind that the Kinect tracking algorithm works better between the range 0.5 to 4 meters. |
So im sending the xyz position data directly into a 3d program. i'm standing about 2 meters away from the kinect in a well lit room with no sun coming through the window to throw things off. and just by doing a TPose. From the foot to the head the Z position gets pushed back a little bit more as you go up each joint. but also by tilting the camera i got slightly different height results. |
Use this repo i created and see if you get distorted data in 3D. I had no problem when i created it and it could track me very accurately inside the room. https://github.com/KonstantinosAng/PyKinect2-PyQtGraph-PointClouds |
Hi
Has anyone been able to determine if the library corrects for distortion as well as tilt? i'm trying to get the kinect skeleton into a 3D program and i cant tell if the lib corrects for lens distortion. I dont think it does for tilt but im not 100% sure.
If it does, has anyone been able to correctly undistort the 3d coordinate values of the joints?
im getting the skeleton position in this way and from what ive been able to see and from other issue posts, this is indeed outputting in meters.
floorClipPlane = _bodies.floor_clip_plane
floorW = floorClipPlane.w
joints = body.joints
skeleton = _kinect.body_joints_to_color_space(joints)
x = joints[PyKinectV2.JointType_SpineShoulder].Position.x
y = joints[PyKinectV2.JointType_SpineShoulder].Position.y + floorW
z = joints[PyKinectV2.JointType_SpineShoulder].Position.z
The text was updated successfully, but these errors were encountered: