mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-19 00:41:41 +00:00
Don't add bad corners to multi-tag solution (#817)
Closes #837 --------- Co-authored-by: Chris Gerth <gerth2@users.noreply.github.com>
This commit is contained in:
@@ -391,8 +391,9 @@ std::optional<EstimatedRobotPose> PhotonPoseEstimator::MultiTagPnpStrategy(
|
||||
}
|
||||
}
|
||||
|
||||
if (imagePoints.empty()) {
|
||||
return std::nullopt;
|
||||
// We should only do multi-tag if at least 2 tags (* 4 corners/tag)
|
||||
if (imagePoints.size() < 8) {
|
||||
return Update(result, camMat, distCoeffs, this->multiTagFallbackStrategy);
|
||||
}
|
||||
|
||||
// Use OpenCV ITERATIVE solver
|
||||
|
||||
Reference in New Issue
Block a user