How to change nvbuffer to cpu-buffer when nvarguscamerasrc is working in bufapi-version mode?

Hi,
Please call

NvBufSurfaceMap (dst_surface, 0, 1, NVBUF_MAP_READ);

and read data from dst_surface->surfaceList[0].mappedAddr.addr[1].

There are patches about creating buffer and call NvBufSurfaceTransform(). Please take a look at
How to include opencv to deepstream-test5-app - #14 by DaneLLL
How to crop the image and save - #2 by DaneLLL
RTSP camera access frame issue - #19 by DaneLLL
Uridecodebin with filesink - #13 by DaneLLL

1 Like