Hi, For mapping the buffer to cv::Mat, please refer to this patch: NVBuffer (FD) to opencv Mat - #6 by DaneLLL
cv::Mat