1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// Copyright (c) 2026 kalwalt and AR.js-org contributors
//
// This software is released under the MIT License.
// https://opensource.org/licenses/MIT
// See https://github.com/AR-js-org/aruco-rs/blob/main/LICENSE
use Vector2;
/// 2D Point with floating point precision (f32 for SIMD/WASM compatibility)
pub type Point2f = ;
/// 2D Point in pixel coordinates
pub type Point2i = ;
/// The four corners of a detected marker
pub type MarkerCorners = ;
/// Core structure for a detected ArUco marker.
///
/// # Fields
/// * `id` - The numeric dictionary ID of the identified marker.
/// * `corners` - The 4 corners bounding the marker in 2D image coordinates.
/// * `hamming_distance` - The Hamming distance calculated during error correction.
/// Zero-copy image buffer for JS/Native interop.
/// Designed to map WASM memory or native video buffers without copying.
///
/// # Fields
/// * `data` - A slice representing a 1D contiguous array of 8-bit pixels.
/// * `width` - The logical width of the frame in pixels.
/// * `height` - The logical height of the frame in pixels.
/// Possible errors during detection or calibration
pub type Result<T> = Result;