I’m trying to simply display images from my camera in a loop. I am using OpenCV and everything is functional. However, in my OpenCV code, I call cvShowImage() + cvWaitKey(1) as part of my display.
cvWaitKey(1) takes ~100ms on the TK1, which is simply too long.
Does anybody know if cvWaitKey already take advantage of CUDA? Or if there is any other way to speed up image display?
It’s a lot since this post, but the “problem” is actual and I faced it in these days.
I’m updating the performance of the Jetson TK1 to write a report acquiring images from a Sensoray miniPCIe frame grabber and I could not understand why I was getting 17 FPS while my elaboration time did not take more than 30 msec…
This is an example of timing I get running my application… Wait key takes 30/40 msec:
So what I can say is that calling “cv::waitKey” the system switches context and returns back only when the processes related to GUI elaborations are finished.
In conclusion: as everyone knows the highgui module is not really efficient, so when evaluating elaboration times for a process, we should take in consideration this fact… not forgetting it ^_^