5 releases

0.2.1 Jan 6, 2021
0.2.0 Jun 19, 2020
0.1.2 Jun 1, 2020
0.1.1 Jun 1, 2020
0.1.0 Jan 11, 2020

#419 in Video

Download history 3/week @ 2024-02-11 9/week @ 2024-02-18 23/week @ 2024-02-25 17/week @ 2024-03-03 15/week @ 2024-03-10 11/week @ 2024-03-17

66 downloads per month
Used in 4 crates (via uvc-sys)

Custom license

330KB
5K SLoC

C 4.5K SLoC // 0.3% comments Bitbake 256 SLoC // 0.9% comments Python 195 SLoC // 0.2% comments Rust 82 SLoC // 0.0% comments

Safe rust wrapper around libuvc

crates.io 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.


lib.rs:

Dummy crate to build a vendored version of libuvc

Dependencies

~1.2–3.5MB
~61K SLoC