UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Observer jalejand
Observer
168 Views
Registered: ‎06-05-2018

Petalinux OpenCV VideoCapture lag

I'm building an application targeting Ultra96 using 2018.2 tools and using the OpenCV libraries provided by Petalinux.  The following simple code to display video captured from a USB camera has a ~3 second lag between camera capture and monitor display (framerate seems OK).  I assume it's related to the video buffer but I can't seem to get rid of it.  The same code running in the DNNDK examples has no lag.

 

ANy ideas on how to eliminate the lag?

 

(The following operations are actually implemented to run in seperate threads as in the DNNDK examples)

    VideoCapture camera(0);

    camera >> img;

    cv::imshow("Camera", img);

Thanks,

Jorge

 

0 Kudos