update readme for nokhwa version and add image crate as well

This commit is contained in:
la1n ping tool
2025-02-25 10:53:25 +09:00
committed by GitHub
parent 665bf7c573
commit 8a38293978
+6 -1
View File
@@ -8,9 +8,14 @@ A Simple-to-use, cross-platform Rust Webcam Capture Library
Nokhwa can be added to your crate by adding it to your `Cargo.toml`:
```toml
[dependencies.nokhwa]
version = "0.10.0"
version = "0.10"
# Use the native input backends, enable WGPU integration
features = ["input-native", "output-wgpu"]
# add this to enable exporting to a JPEG/PNG
[dependencies.image]
version = "0.25"
features = ["default-formats"]
```
Most likely, you will only use functionality provided by the `Camera` struct. If you need lower-level access, you may instead opt to use the raw capture backends found at `nokhwa::backends::capture::*`.