Example code of demonstrating image from a Cypress UVC device
Moderator
Sep 03, 2021
01:21 AM
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Sep 03, 2021
01:21 AM
Source Code: https://github.com/zhao1mh/webcamtest
This is a simple example webcam test program using SDL2. It only supports YUY2 format. The UVC device should have VID:0x04b4&PID:0x00f9. Frames per second are calculated with a timer.
It shows that USB transfer will not use too many system resources. Actually, the real reason for the low FPS is the efficiency of the Video Player.
Tested Platform: RaspberryPi 400 & Ubuntu
Author: Eddie Zhao
Version : 1.02
Date: 8/12/2021Cancel changes
Build:
sudo apt-get install libusb-1.0-0-dev libsdl2-dev
git clone http://github.com/zhao1mh/webcamtest.git
cd webcamtest
./configure
make
Labels
Rate this article: