Multimedia

你好,我正在使用multimedia库获取摄像头,但当我使用NvBufferMemMap(fd, 0, NvBufferMem_Read, &pdata);NvBufferMemSyncForCpu(fd, 0, &pdata);cv::Mat imgbuf = cv::Mat(iSensorMode->getResolution().height(),
iSensorMode->getResolution().width(),CV_8UC4, pdata);运行时会显示未找到NvBufferMemMap,NvBufferMemSyncForCpu等函数定义的错误,我使用的是jetson-utils下的nvbuf_utils.h的函数,并且我的cmakelists文件中也包含了jetson-utils,他依然报这些错误,我参考了下面这个讨论的内容,但是在我的/usr/lib/aarch64-linux-gnu/tegra/路径下并没有libnvbuf_utils.so这个文件,请问我应该如何获取他,谢谢!

Hi,
We have deprecated NvBuffer APIs on Jetpack 5 and 6. Please refer to the migration guide to use NvBufSurface APIs:

https://developer.nvidia.com/downloads/embedded/l4t/r35_release_v4.1/release/jetson_multimedia_api_r35.4.1_aarch64.tbz2

And which camera source you are using? If your camera source is v4l2 source, you may try the sample:

/usr/src/jetson_multimedia_api/samples/12_v4l2_camera_cuda/

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.