tune(shim): gain back to X3.2/Y2.6 (3.7/3.0 overshot). revert(mapping): remove redundant core L/R swap (shim does it; avoids double-swap on a clean core rebuild) + restore golden/occlusion tests.

This commit is contained in:
kinect-bot committed 2026-11-27 00:44:56 -05:00
1 parent 61025ed3f9
commit 03f7b01f9a
53 files changed
+38115 -41

No files matched your search

+19 -24
View File
@@ -74,30 +74,25 @@ std::array<MediaPipeLandmark, contract::kJointCount> make_joint_landmarks(
? interpolate(joints[2], ears, 1.3f)
: landmarks[0];
// L/R are SWAPPED relative to MediaPipe's landmark labels because the tracker
// mirrors the camera (selfie view, matching a real Kinect's mirrored depth
// image). On a mirrored frame MediaPipe's RIGHT_* landmarks sit on the
// player's LEFT and vice-versa, so NUI LEFT joints take MediaPipe's right
// indices and NUI RIGHT joints take MediaPipe's left indices. This makes the
// player's right hand land in HAND_RIGHT (joint 11) with +x relative to
// SHOULDER_CENTER, matching real Kinect recordings (HAND_R-SHC.x in
// [-0.35,+0.86]); verified against the live log's moving hand.
joints[4] = landmarks[12];
joints[5] = landmarks[14];
joints[6] = landmarks[16];
joints[7] = hand_landmark(landmarks, 20, 18, 22, 16);
joints[8] = landmarks[11];
joints[9] = landmarks[13];
joints[10] = landmarks[15];
joints[11] = hand_landmark(landmarks, 19, 17, 21, 15);
joints[12] = landmarks[24];
joints[13] = landmarks[26];
joints[14] = landmarks[28];
joints[15] = landmarks[32];
joints[16] = landmarks[23];
joints[17] = landmarks[25];
joints[18] = landmarks[27];
joints[19] = landmarks[31];
// Straight MediaPipe->NUI assignment (no L/R swap here). The L/R swap that the
// mirrored camera requires is applied shim-side in BuildSkeletonFrame
// (fallback/windows-nui), so doing it here as well would double-swap.
joints[4] = landmarks[11];
joints[5] = landmarks[13];
joints[6] = landmarks[15];
joints[7] = hand_landmark(landmarks, 19, 17, 21, 15);
joints[8] = landmarks[12];
joints[9] = landmarks[14];
joints[10] = landmarks[16];
joints[11] = hand_landmark(landmarks, 20, 18, 22, 16);
joints[12] = landmarks[23];
joints[13] = landmarks[25];
joints[14] = landmarks[27];
joints[15] = landmarks[31];
joints[16] = landmarks[24];
joints[17] = landmarks[26];
joints[18] = landmarks[28];
joints[19] = landmarks[32];
return joints;
}