calib-targets-marker

Crates.iocalib-targets-marker
lib.rscalib-targets-marker
version0.2.2
created_at2025-12-28 10:10:13.475505+00
updated_at2026-01-03 17:59:51.041576+00
descriptionCheckerboard marker target detector (checkerboard + 3 central circles)
homepagehttps://vitalyvorobyev.github.io/calib-targets-rs/
repositoryhttps://github.com/VitalyVorobyev/calib-targets-rs
max_upload_size
id2008546
size120,164
Vitaly Vorobyev (VitalyVorobyev)

documentation

https://vitalyvorobyev.github.io/calib-targets-rs/api

README

calib-targets-marker

Marker-board detection overlay

Checkerboard marker target detector (checkerboard + 3 central circles).

Quickstart

use calib_targets_core::{Corner, GrayImageView};
use calib_targets_marker::{
    CellCoords, CirclePolarity, MarkerBoardDetector, MarkerBoardLayout, MarkerBoardParams,
    MarkerCircleSpec,
};

fn main() {
    let layout = MarkerBoardLayout {
        rows: 6,
        cols: 8,
        cell_size: Some(1.0),
        circles: [
            MarkerCircleSpec {
                cell: CellCoords { i: 2, j: 2 },
                polarity: CirclePolarity::White,
            },
            MarkerCircleSpec {
                cell: CellCoords { i: 3, j: 2 },
                polarity: CirclePolarity::Black,
            },
            MarkerCircleSpec {
                cell: CellCoords { i: 2, j: 3 },
                polarity: CirclePolarity::White,
            },
        ],
    };

    let params = MarkerBoardParams::new(layout);
    let detector = MarkerBoardDetector::new(params);

    let pixels = vec![0u8; 32 * 32];
    let view = GrayImageView {
        width: 32,
        height: 32,
        data: &pixels,
    };
    let corners: Vec<Corner> = Vec::new();

    let _ = detector.detect_from_image_and_corners(&view, &corners);
}

Notes

  • cell_size controls target_position in the output; set it to your square size.

Python bindings

Python bindings are provided via the workspace facade (calib_targets module). See crates/calib-targets-py/README.md in the repo root for setup.

Features

  • tracing: enables tracing output in the detector.

Links

Commit count: 0

cargo fmt