Crates.io | apriltag |
lib.rs | apriltag |
version | 0.4.0 |
source | src |
created_at | 2020-06-28 20:14:10.903283 |
updated_at | 2023-01-28 18:02:56.560416 |
description | High level Rust bindings to AprilTag library |
homepage | https://github.com/jerry73204/apriltag-rust |
repository | https://github.com/jerry73204/apriltag-rust.git |
max_upload_size | |
id | 259206 |
size | 310,421 |
High-level API for AprilTag library built on top of apriltag-sys.
Add apriltag crate to your Cargo.toml
.
cargo add apriltag
The apriltag crate ships and statically links the AprilTag C library by default. If you would like to customize the way to link the AprilTag library, please read the notes in apriltag-sys README.
To run apriltag detection on an PNM image,
cargo run --example detector -- input.pnm
It accepts additional arguments:
cargo run --example detector -- \
--family tag36h11 \
--tag-params 1,2.1,2.2,4,5 \
input.pnm
where the arguments are explained as follows.
--family tag36h11
specifies the tag36h11 tag family.
--tag-params 1,2.1,2.2,4,5
sets the tag size, fx, fy, cx and cy parameters. It enable pose estimation feature.
Third-party type conversions are supported by extension crates, including
apriltag-nalgebra: Add conversions from/to two dimensional byte matrix in nalgebra crate.
apriltag-image: Add conversions from/to image types in image crate.
BSD 2-Clause License. See LICENSE file.