A skeleton that follows the wrong arm does not automatically mean the pose model misidentified the person. The frame sent to a detector and the mirrored selfie preview are different surfaces. If their coordinate transforms are mixed, a correct left-wrist point can draw over the right side of the screen. Treat this as a geometry and labelling problem first.
Name each coordinate space
Write down frame width and height, detector coordinate origin, device rotation, camera facing, preview crop and preview mirror setting. Keep anatomical left/right labels independent from display left/right. For a point normalized into a unit square, a horizontal preview mirror maps display x to 1 − x. That equation is only one step; crop and rotation may still be required.
| Frame | Preview | Expected check |
|---|---|---|
| Rear camera, portrait | Unmirrored | Raised left wrist stays at the correct anatomical side |
| Front camera, portrait | Mirrored | Overlay follows the visible wrist after one display mirror |
| Rear camera, landscape | Rotated | Shoulder and hip landmarks retain vertical relationship |
| Front camera, landscape | Rotated and mirrored | One mirror and one rotation; no second accidental flip |
Keep detector mapping and preview mapping separate
UltraFit360’s form-check code routes frames through a native plugin that maps Apple Vision or Android ML Kit landmarks and applies orientation handling. Its React Native screen then draws the live overlay. That source-level design gives us a place to instrument each transform, but it is not a published accuracy benchmark. Log normalized landmark positions at the detector boundary and transformed positions at the overlay boundary for one synthetic frame. Avoid logging identifiable camera images in normal analytics.
Use an asymmetric test person
A symmetric standing pose is a poor fixture: swapped left and right points can look plausible. Use a consented test recording with only the left arm raised and an obvious marker on one shoe, or a synthetic landmark set with unequal left/right coordinates. Replay that same input through front and rear cameras, portrait and landscape. Check wrist, elbow, shoulder and hip; a single correct wrist can conceal a rotated torso.
Verify the failure mode on devices
Android ML Kit documents landmark confidence and real-time image handling. Apple Vision exposes body-pose points in its own normalized coordinate contract. Capture the native orientation metadata, preview dimensions and detector version when a failure occurs. Test at least one actual iOS and Android device, including a device rotation while recording. A development simulator or static screenshot cannot establish live overlay timing or camera behavior.
Separate visual alignment from coaching claims
A correctly aligned skeleton is necessary for understandable feedback, but it is not proof that exercise-form guidance is safe or clinically valid. The supported exercise and camera-view list must remain explicit, and low-confidence landmarks should suppress confident cues. A partner evaluating camera coaching should ask for this geometry fixture and a supported-exercise matrix before discussing a broad integration.
Apple Vision body-pose documentation
ML Kit pose detection on Android
Related: building pose estimation for fitness apps
Discuss a camera-coaching integration
Why is a camera pose skeleton mirrored or shifted?
The camera buffer, pose detector output and on-screen preview can use different rotations, origins and mirror settings. Test those transforms with a known left-right landmark fixture before replacing the model.
Does a mirrored preview mean the pose model is wrong?
No. Check the camera frame, detector output and preview transforms separately with an asymmetric fixture.
Can one transform work for front and rear cameras?
Only if rotation, crop and mirroring are parameterized correctly. Verify each camera and orientation on real devices.
