r/computervision • u/Sean-TU- • 20d ago
Discussion Planar PnP (IPPE) two-solution ambiguity: is inflating Kalman R with the two-solution spread a known approach?
Method: propagate IPPE two-solution ambiguity into Kalman measurement noise
Setup: tracking a planar visual marker (80×80 mm) with OpenCV solvePnPGeneric + SOLVEPNP_IPPE, which returns two pose solutions. Each has a reprojection error (e0 for the nominal/min-error solution, e1 for the other) and a translation (t0, t1). The translations feed a 6D constant-velocity Kalman filter (position + velocity); orientation is kept out of the filter and handled separately (yaw taken raw from the pose per frame).
Instead of hard-picking one solution or discarding the measurement when ambiguous, we take the nominal translation t0 as the measurement and inflate the measurement noise covariance R by adding:
S = [e0² / (e0² + e1²)] · (t1 − t0)(t1 − t0)ᵀ
R_eff = R_profile + Swhere R_profile is a fixed baseline covariance. The weight approaches 1/2 when the two solutions are equally good (most ambiguous → largest inflation) and approaches 0 when the second solution is much worse (unambiguous → no inflation). The idea: when the two solutions disagree, tell the filter to trust this measurement less, rather than pretending we know which solution is correct.
Question: has anyone seen this exact construction (two-solution spread → Kalman R) in the literature or in practice? The closest we found is Fourmy et al. 2019 (factor graph, inflates rotation covariance on error-ratio trigger), but not this. Is there a principled basis for it (e.g., mixture covariance), or a reason it would fail?
Alternatively, if you have a different or better way to handle planar PnP ambiguity in a tracking filter, I'm all ears.


