NvBuffer to OpenCV GpuMat. Does memory is directly accessible to the device?

Hi,
You may try to run this sample:
Opencv gpu mat into GStreamer without downloading to cpu - #15 by DaneLLL

If it can be run successfully, it should be fine to call the function in monitorless environment:

    egl_display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
    eglInitialize(egl_display, NULL, NULL);
    eglTerminate(egl_display);