A stationary planar marker can produce a pose estimate whose orientation jumps even while the detected corners remain stable and the reported reprojection error stays small. Before filtering the output more heavily, check whether the solver is choosing between competing pose hypotheses.

This is not the same as a quaternion sign change. Opposite signs of one unit quaternion describe the same physical rotation; competing planar-pose solutions can describe genuinely different orientations that explain nearly the same image evidence.

### A low residual does not always identify a unique pose

When the perspective cues of a plane are weak, different candidate orientations can project its known points to very similar image locations. Corner noise can change which candidate has the slightly smaller reprojection error from one frame to the next.

The primary [Infinitesimal Plane-Based Pose Estimation paper](https://encov.ip.uca.fr/publications/pubfiles/2014_Collins_etal_IJCV_plane.pdf) discusses the rotational ambiguity under weak-perspective conditions. The official [OpenCV PnP documentation](https://docs.opencv.org/4.x/d5/d1f/calib3d_solvePnP.html) documents planar IPPE methods and the generic interface for retrieving multiple solutions. A single returned solution should not be mistaken for proof that the image uniquely determined it.

This does not excuse every pose flip as unavoidable ambiguity. Wrong corner ordering, marker dimensions, distortion parameters or transform direction can produce their own failures and should be checked separately.

### Retain the evidence needed to distinguish the hypotheses

For a controlled offline sequence, record:

- Detected corner locations and their ordering before pose estimation.
- Camera intrinsics, distortion model, image resolution and marker geometry.
- All returned candidate poses and their individual reprojection residuals.
- The normal and depth implied by each candidate in a named frame.
- The selection rule, any temporal prior and the reason a candidate was rejected.

Reproject every candidate onto the saved image. Compare the residual separation with observed corner variability rather than importing a universal error-ratio threshold. A small difference in residual is weak evidence if it is below the variability of the input measurements.

Positive-depth checks are useful, but they do not necessarily distinguish every ambiguous pair. Likewise, a recognised marker ID establishes correspondence identity, not that all rotational ambiguity has disappeared.

### Smoothing can hide the decision rather than improve it

A temporal continuity rule may reduce switching, but it can also preserve the wrong hypothesis after initialisation or occlusion. Averaging substantially different orientations can create an intermediate estimate that neither candidate's image evidence supports well.

One option is to retain an ambiguity flag or multiple hypotheses until additional evidence separates them. Another is to change the sensing geometry: obtain an additional view, improve the marker's image scale where appropriate, or use genuinely non-coplanar reference geometry. More points on the same plane can improve noise robustness without guaranteeing that weak perspective cues become decisive.

Additional sensing and hypothesis management increase latency and implementation complexity. Asking the robot to move for a better view also requires an independently permitted, collision-checked motion; a perception ambiguity is not permission to explore blindly.

The downstream acceptance rule should reflect the task. A coarse approach may tolerate uncertainty that makes a tight insertion or orientation-sensitive placement unacceptable.

**Open engineering question:** when a marker pose jumps, can your logs show both the image evidence and the rejected hypothesis? What additional observation would make you trust one physical orientation instead of merely selecting the smoother output?