Error when accessing frame in OpenCV in Jetson Nano

Hi,
Please check if you can run this sample:
How to create opencv gpumat from nvstream? - #18 by DaneLLL

After the installation, you should see source of dsexample in

/opt/nvidia/deepstream/deepstream-5.0/sources/gst-plugins/gst-dsexample