calib-targets-aruco

Crates.iocalib-targets-aruco
lib.rscalib-targets-aruco
version0.2.2
created_at2025-12-28 10:09:41.85123+00
updated_at2026-01-03 17:59:44.072072+00
descriptionEmbedded ArUco/AprilTag dictionaries and fast marker decoding on rectified grids
homepagehttps://vitalyvorobyev.github.io/calib-targets-rs/
repositoryhttps://github.com/VitalyVorobyev/calib-targets-rs
max_upload_size
id2008544
size259,950
Vitaly Vorobyev (VitalyVorobyev)

documentation

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

README

calib-targets-aruco

Mesh-rectified grid

Embedded ArUco/AprilTag dictionaries and marker decoding utilities.

Quickstart

use calib_targets_aruco::{builtins, scan_decode_markers, Matcher, ScanDecodeConfig};
use calib_targets_core::GrayImageView;

fn main() {
    let dict = builtins::builtin_dictionary("DICT_4X4_50").expect("dict");
    let matcher = Matcher::new(dict, 1);

    let pixels = vec![0u8; 16 * 16];
    let view = GrayImageView {
        width: 16,
        height: 16,
        data: &pixels,
    };

    let scan_cfg = ScanDecodeConfig::default();
    let markers = scan_decode_markers(&view, 4, 4, 4.0, &scan_cfg, &matcher);
    println!("markers: {}", markers.len());
}

Notes

  • Built-in dictionaries are compiled in; see builtins::BUILTIN_DICTIONARY_NAMES.
  • Decoding expects rectified grids or per-cell quads.

Features

  • tracing: enables tracing output for decoding steps.

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.

Links

Commit count: 0

cargo fmt