7 releases

0.2.0 Jan 6, 2021
0.1.5 Oct 14, 2020
0.1.4 Jun 1, 2020
0.1.3 Nov 19, 2019
0.1.0 Aug 12, 2018

#514 in Video

Download history 21/week @ 2024-07-19 30/week @ 2024-07-26 25/week @ 2024-08-02 15/week @ 2024-08-09 6/week @ 2024-08-16 13/week @ 2024-08-23 18/week @ 2024-08-30 12/week @ 2024-09-06 13/week @ 2024-09-13 42/week @ 2024-09-20 38/week @ 2024-09-27 11/week @ 2024-10-04 10/week @ 2024-10-11 15/week @ 2024-10-18 13/week @ 2024-10-25 16/week @ 2024-11-01

54 downloads per month
Used in 3 crates (via uvc)

MIT license

85KB
1.5K SLoC

C 1K SLoC // 0.3% comments Bitbake 63 SLoC // 0.9% comments Rust 54 SLoC Python 48 SLoC // 0.2% 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.

Dependencies

~0–3.5MB
~61K SLoC