#capture #camera #webcam

uvc

Safe and ergonomic wrapper around libuvc, allowing capture of webcam streams

6 releases

✓ Uses Rust 2018 edition

0.1.5 Jan 11, 2020
0.1.4 Nov 19, 2019
0.1.3 Aug 10, 2019
0.1.2 Apr 26, 2019
0.1.0 Aug 12, 2018

#18 in Video

44 downloads per month

MIT license

96KB
2K SLoC

C 1K SLoC // 0.3% comments Rust 1K SLoC // 0.1% comments Python 48 SLoC // 0.2% comments

Safe rust wrapper around libuvc

crates.io license

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.

Dependencies