#webcam #camera #capture

uvc

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

10 releases

0.2.0 Jan 6, 2021
0.1.9 Sep 29, 2020
0.1.8 Jun 19, 2020
0.1.5 Jan 11, 2020
0.1.1 Sep 11, 2018

#329 in Video

Download history 17/week @ 2024-07-20 29/week @ 2024-07-27 22/week @ 2024-08-03 17/week @ 2024-08-10 7/week @ 2024-08-17 13/week @ 2024-08-24 23/week @ 2024-08-31 18/week @ 2024-09-07 16/week @ 2024-09-14 77/week @ 2024-09-21 20/week @ 2024-09-28 3/week @ 2024-10-05 15/week @ 2024-10-12 14/week @ 2024-10-19 12/week @ 2024-10-26 29/week @ 2024-11-02

70 downloads per month
Used in 2 crates (via eye-hal)

MIT license

43KB
1K SLoC

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

~0–3.5MB
~61K SLoC