Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

Resource Library

Example code of demonstrating image from a Cypress UVC device

YiZ_31
Moderator
Moderator

Example code of demonstrating image from a Cypress UVC device

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

Version history
Revision #:
1 of 1
Last update:
‎Sep 03, 2021 01:21 AM
Updated by:
 
Contributors