Hi, I am running JetPack 4.5.1 and do a camera capture and then some image processing and finally display the result in a window. Works OK in windowed mode, but if I switch the window to fullscreen like this:
…then the performance goes to hell.
In my case, I am trying to show a 808x620 image and display it on FullHD screen.
My understanding is that the problem is that it’s trying to upsample the image on CPU. Is that right?
Now since the OpenCV included in JetPack is built without OpenGL support, seems to me I have little options and that it will always happen on the CPU side.
Is there anything I can do to improve the performance? (upsampling quality settings, anything…)
I may want to consider building OpenCV with OpenGL support, but it looks kind of complicated. I found this thread:
But, I kind of get lost in all the instructions. Plus it’s for AGX, so I am not sure if that also applies for NX.
I don’t really much understand how does this relate to GStreamer. I am reading stuff from cv::VideoCapture, then do some image processing and finally just display it on the screen. And the problematic part is the display part, if it involves upsampling the image (which is the fullscreen case).
However, I was able to do some more progress yesterday after writing the post. I tried to use UMat, so that OpenCL can kick in, and upsample the image manually with cv::resize (with OpenCL acceleration obviously) to the actual screen size. In this case, the image does not have to be upsampled by the CPU.
Unless someone has a better suggestion, I think I can live with that…