mirror of
https://github.com/l1npengtul/nokhwa.git
synced 2026-07-04 02:27:26 +00:00
update readme for nokhwa version and add image crate as well
This commit is contained in:
@@ -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`:
|
Nokhwa can be added to your crate by adding it to your `Cargo.toml`:
|
||||||
```toml
|
```toml
|
||||||
[dependencies.nokhwa]
|
[dependencies.nokhwa]
|
||||||
version = "0.10.0"
|
version = "0.10"
|
||||||
# Use the native input backends, enable WGPU integration
|
# Use the native input backends, enable WGPU integration
|
||||||
features = ["input-native", "output-wgpu"]
|
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::*`.
|
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::*`.
|
||||||
|
|||||||
Reference in New Issue
Block a user