Home libUVC OpenCV cpp
Post
Cancel

Open In GithubOpen In Github

Example script to capture images from USB cameras using the libUVC library and OpenCV in C++.The example runs for 10 seconds and it automatically stops. Tested in Ubuntu 20.04.1 LTS

Installation

1
2
3
4
5
6
7
8
git clone https://github.com/ibaiGorordo/libUVC-OpenCV-Cpp.git 
cd libUVC-OpenCV-Cpp
mkdir build
cd build
cmake ..
make
sudo ./sample

Required libraries

  • libusb: sudo apt install libusb-1.0-0-dev
  • OpenCV: Built from source (tested on OpenCV 4.5.0)
This post is licensed under CC BY 4.0 by the author.