Performance of nvargus-daemon

Hi,
Please check if all sources can reach the framerate in running

$ gst-launch-1.0 nvarguscamerasrc maxperf=1 ! 'video/x-raw(memory:NVMM),format=NV12,width=1920,height=1080' ! fpsdisplaysink text-overlay=0 video-sink=fakesink sync=false -v

If yes, please try

$ gst-launch-1.0 nvarguscamerasrc maxperf=1 ! 'video/x-raw(memory:NVMM),format=NV12,width=1920,height=1080' ! nvvidconv ! video/x-raw,format=BGRx ! videoconvert ! video/x-raw,format=BGR ! fpsdisplaysink text-overlay=0 video-sink=fakesink sync=false -v

OpenCV takes video/x-raw,format=BGR in appsink. And we don’t support BGR in hardware converter engine. Please check

So for hooking with OpenCV, you need to do

nvvidconv ! video/x-raw,format=BGRx ! videoconvert ! video/x-raw,format=BGR

This takes certain CPU loading.

Or you may run

to call cv2.cvtColor(img, cv2.COLOR_YUV2BGR_I420) for format conversion.