libuvc Documentation

repository·master·Indexed 22 days ago

https://github.com/libuvc/libuvc

A cross-platform library built on top of libusb that provides fine-grained control over USB Video Class (UVC) devices, enabling developers to interact with standard UVC devices generically or write custom drivers for unsupported devices.

Tokens
251
Snippets
2
Records
2
Agent score
28%

What's inside libuvc

  1. Install and build libuvc

    master

    To build libuvc from source, ensure you have libusb and CMake installed on your system. Follow these steps to clone, configure, and install the library:

    1. Clone the repository.
    2. Create and enter a build directory.
    3. Run cmake .. to generate build files.
    4. Compile and install using make and sudo make install.
    git clone https://github.com/libuvc/libuvc
    cd libuvc
    mkdir build
    cd build
    cmake ..
    make && sudo make install
  2. Build libuvc examples and tests

    master

    By default, libuvc does not compile the example or test programs. To enable them, pass the BUILD_EXAMPLE and BUILD_TEST flags to CMake during the configuration step.

    Note: Building the uvc_test program requires OpenCV to be installed on your system for image display functionality.

    cmake .. -DBUILD_TEST=ON -DBUILD_EXAMPLE=ON