Kinect V2 Rust Bindings 🦀🎮
Kinect V2 Rust Bindings provide safe and idiomatic Rust access to the Kinect V2 Windows SDK, enabling you to capture color, depth, infrared, body, audio, and multi-source frames from your Kinect V2 sensor on Windows.
Note: This project currently supports Windows only. It uses the official Kinect V2 SDK, which is not available on other platforms.
Future plans include cross-platform support using the libfreenect2 library.
Features ✨
- Safe and idiomatic Rust API for Kinect V2
- Access to color, depth, infrared, body, audio, and multi-source frames
- Low-level FFI bindings to the official Kinect V2 SDK
- Examples and documentation
Requirements ⚠️
- Windows (Kinect V2 SDK is Windows-only)
- Kinect V2 sensor and adapter
- Kinect for Windows SDK 2.0 installed
- Rust 1.70+ (2024 edition)
Getting Started 🚀
Add to your Cargo.toml:
[]
= "0.1" # Replace with the latest version
Example Usage 📝
use ColorFrameCapture;
More examples can be found in the
examples/directory.
Building 🛠️
# Clone the repo
$ git clone https://github.com/wangfu91/kinect-v2-rs.git
$ cd kinect-v2-rs
# Build the project
$ cargo build --release
Project Structure 📁
kinect-v2/— High-level, idiomatic Rust wrapperkinect-v2-sys/— Low-level FFI bindings to the Kinect V2 SDK
Roadmap 🗺️
- Implement color frame capture
- Implement depth frame capture
- Implement infrared frame capture
- Implement body frame capture
- Implement audio frame capture
- Implement multi-source frame capture
- Publish to crates.io
- Add more examples and documentation
- Improve error handling and safety
- Add tests for all features
Not Planned
-
Implement face detection features -
Implement gesture recognition features -
Cross-platform support using the libfreenect2 library
License 📄
MIT License. See LICENSE for details.
Acknowledgements 🙏
Feel free to open issues or PRs! Happy hacking! 🚀