| Crates.io | kinect-v2 |
| lib.rs | kinect-v2 |
| version | 0.1.3 |
| created_at | 2025-06-26 14:35:15.165933+00 |
| updated_at | 2025-08-30 15:40:14.97454+00 |
| description | A Rust binding for the Kinect V2 Windows SDK. |
| homepage | |
| repository | https://github.com/wangfu91/kinect-v2-rs |
| max_upload_size | |
| id | 1727442 |
| size | 94,228 |
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.
Add to your Cargo.toml:
[dependencies]
kinect-v2 = "0.1" # Replace with the latest version
use kinect_v2::color_capture::ColorFrameCapture;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let color_capture = ColorFrameCapture::new()?;
for frame_result in color_capture.iter()? {
match frame_result {
Ok(frame_data) => {
println!("Color frame size: {}x{}, bytes: {}", frame_data.width, frame_data.height, frame_data.bytes.len());
}
Err(e) => {
return Err(Box::new(e));
}
}
}
Ok(())
}
More examples can be found in the
examples/directory.
# Clone the repo
$ git clone https://github.com/wangfu91/kinect-v2-rs.git
$ cd kinect-v2-rs
# Build the project
$ cargo build --release
kinect-v2/ — High-level, idiomatic Rust wrapperkinect-v2-sys/ — Low-level FFI bindings to the Kinect V2 SDKMIT License. See LICENSE for details.
Feel free to open issues or PRs! Happy hacking! 🚀