🤖 AI Summary
Rust’s ecosystem has long lacked a high-performance, memory- and thread-safe low-level 3D computer vision library, hindering its adoption in safety-critical and real-time systems. To address this, we present the first fully Rust-native low-level 3D vision library, built upon Rust’s ownership model and a statically typed tensor system to ensure end-to-end memory and thread safety. Our design enables zero-cost abstractions, SIMD acceleration, and cross-platform deployment. The library adopts a modular crate architecture and provides efficient Python bindings via PyO3, balancing safety with interoperability. Experimental evaluation shows that our image transformation kernels achieve 3–5× speedup over existing Rust libraries and match the performance of optimized C++-based wrappers. It supports a comprehensive set of 2D/3D vision operators—including geometric transformations, camera models, and feature extraction—and has been validated for reliability and real-time performance in production-grade visual systems.
📝 Abstract
We present extit{kornia-rs}, a high-performance 3D computer vision library written entirely in native Rust, designed for safety-critical and real-time applications. Unlike C++-based libraries like OpenCV or wrapper-based solutions like OpenCV-Rust, extit{kornia-rs} is built from the ground up to leverage Rust's ownership model and type system for memory and thread safety. extit{kornia-rs} adopts a statically-typed tensor system and a modular set of crates, providing efficient image I/O, image processing and 3D operations. To aid cross-platform compatibility, extit{kornia-rs} offers Python bindings, enabling seamless and efficient integration with Rust code. Empirical results show that extit{kornia-rs} achieves a 3~ 5 times speedup in image transformation tasks over native Rust alternatives, while offering comparable performance to C++ wrapper-based libraries. In addition to 2D vision capabilities, extit{kornia-rs} addresses a significant gap in the Rust ecosystem by providing a set of 3D computer vision operators. This paper presents the architecture and performance characteristics of extit{kornia-rs}, demonstrating its effectiveness in real-world computer vision applications.