Expand description
§WebARKitLib-rs Core
webarkitlib-rs is the foundational library for the Rust port of WebARKitLib.
It provides core computer vision algorithms for Augmented Reality, including:
- Image processing and filtering
- Thresholding and labeling
- Marker detection and identification
- Pose estimation and matrix calculations
§Performance and SIMD
This crate includes high-performance SIMD optimizations for critical image processing paths (grayscale conversion, filtering, and pattern matching).
- SSE4.1 is supported for x86_64 targets.
- WASM SIMD is supported for web targets.
To enable these optimizations, compile with the simd feature:
cargo build --release --features simdDetailed benchmark results can be found in crates/core/benches/BENCHMARKS.md.
§Example
use webarkitlib_rs::marker::ar_detect_marker;
// ... detection logic hereModules§
- ar2
- AR2 Robust Tracking Module Ported and idiomatic Rust implementation of ARToolKit’s AR2 NFT tracking logic.
- bch
- icp
- Iterative Closest Point (ICP) Data Structures and Methods Translated from ARToolKit C headers (icp.h, icpCore.h)
- image_
proc - Image Processing and Thresholding Utilities for WebARKitLib Translated from ARToolKit C headers (arImageProc.h, arImageProc.c)
- labeling
- Connected Component Labeling Utilities Translated from ARToolKit C headers (arLabeling.c, arLabelingSub.h)
- marker
- Marker Detection Pipeline Ported from arDetectMarker.c, arDetectMarker2.c, and arGetMarkerInfo.c
- math
- Matrix and Vector Data Structures for WebARKitLib Translated from ARToolKit C headers (matrix.h)
- matrix
- Matrix Code (Barcode) Marker Decoding Ported from arGetMatrixCode.c and associated ECC logic.
- param
- Parameter loading and manipulation utilities Translated from ARToolKit C headers (param.h)
- pattern
- Pattern Template matching logic Ported natively to safe Rust from arPattLoad.c and arPattGetID.c
- pose
- types
- Core Data Structures for WebARKitLib Translated from ARToolKit C headers (ar.h, param.h, etc.)
- version
- Version