How do I read the pixel data from an NVBuffer?

Hi,
Probably you don’t convert the buffer to pitch linear layout. Please refer to this patch:
NVBuffer (FD) to opencv Mat - #6 by DaneLLL