Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/l1npengtul/libuvc-rs
Rust wrapper around libuvc
https://github.com/l1npengtul/libuvc-rs
webcam
Last synced: about 1 month ago
JSON representation
Rust wrapper around libuvc
- Host: GitHub
- URL: https://github.com/l1npengtul/libuvc-rs
- Owner: l1npengtul
- License: mit
- Created: 2018-08-12T11:30:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-04-20T05:45:06.000Z (over 1 year ago)
- Last Synced: 2024-10-07T02:06:43.241Z (about 1 month ago)
- Topics: webcam
- Language: Rust
- Size: 78.1 KB
- Stars: 48
- Watchers: 6
- Forks: 17
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Safe rust wrapper around [libuvc](https://int80k.com/libuvc/doc/)
[![crates.io](https://img.shields.io/crates/v/uvc.svg)](https://crates.io/crates/uvc)
[![license](https://img.shields.io/crates/l/uvc.svg)](https://github.com/mulimoen/libuvc-rs/blob/master/LICENSE)## What does this library do?
This library gives access to the webcam, and allows one to capture the video stream. An example of how to use this library can be found in the examples directory.
An error such as `Access` might be due to the program not having read/write access to the usb device. You can grant access to all users by changing the device permissions, for example with
```
chmod 0666 /dev/bus/usb/{BUS}/{DEVICE}
```where BUS and DEVICE can be found with `lsusb` or by running the `mirror` example.
## Documentation
Documentation can be created with `cargo doc`## Dependencies
To use this crate, the `libuvc` native dependency must be installed, or vendored using the `vendor` feature. Disable the default-features and choose the feature `vendor` or `system` to select supplier.