Kornia-rs: A Low-Level 3D Computer Vision Library In Rust

📅 2025-05-18
📈 Citations: 0
Influential: 0
📄 PDF
🤖 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.

Technology Category

Application Category

📝 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.
Problem

Research questions and friction points this paper is trying to address.

Develops a high-performance 3D vision library in Rust
Ensures memory and thread safety via Rust's features
Bridges the Rust ecosystem gap for 3D vision operators
Innovation

Methods, ideas, or system contributions that make the work stand out.

Rust-based 3D vision library for safety-critical apps
Statically-typed tensor system for efficient operations
Python bindings for cross-platform compatibility
🔎 Similar Papers
No similar papers found.
Edgar Riba
Edgar Riba
Kornia.org
Computer Vision
J
Jian Shi
King Abdullah University of Science and Technology
A
Aditya Kumar
External contributors collaborating on this project
Andrew Shen
Andrew Shen
External contributors collaborating on this project
Gary Bradski
Gary Bradski
farm-ng, OpenCV
Computer VisionAGI