calib_targets_charuco/detector/error.rs
1use calib_targets_chessboard::MeshWarpError;
2
3/// Errors returned by the ChArUco detector.
4#[derive(thiserror::Error, Debug)]
5pub enum CharucoDetectError {
6 #[error("chessboard not detected")]
7 ChessboardNotDetected,
8 #[error(transparent)]
9 MeshWarp(#[from] MeshWarpError),
10 #[error("no markers decoded")]
11 NoMarkers,
12 #[error("marker-to-board alignment failed (inliers={inliers})")]
13 AlignmentFailed { inliers: usize },
14}