OpenCV in DeepStream L4T Image

Is there any DeepStream docker image with OpenCV for Jetson? Or do i need to built it myself?

Hey, I think the dockers provided officially should be with opencv, what’s the issue did you observe?

Hi, I’m facing this error right now using a custom plugin.

(gst-plugin-scanner:12): GStreamer-WARNING **: 05:55:10.351: Failed to load plugin '/usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/': cannot open shared object file: No such file or directory

However, I found that it is installed but there might be a mismatch in the version.

root@jetson-147:/opt/nvidia/deepstream/deepstream-5.1/sources/apps/sample_apps/ds# find / -name "libopencv_imgcodecs*"

I’m using the image based on and below is my Jetson version.

- NVIDIA Jetson Xavier NX (Developer Kit Version)
   * Jetpack 4.5.1 [L4T 32.5.1]
   * NV Power Mode: MODE_15W_6CORE - Type: 2
   * jetson_stats.service: active
 - Libraries:
   * CUDA: 10.2.89
   * cuDNN:
   * TensorRT:
   * Visionworks:
   * OpenCV: 4.1.1 compiled CUDA: NO
   * VPI: ii libnvvpi1 1.0.15 arm64 NVIDIA Vision Programming Interface library
   * Vulkan: 1.2.70

Any idea on how to resolve this issue?

Could you run “ldd /usr/lib/aarch64-linux-gnu/gstreamer-1.0/deepstream/” (0x0000007f7d7fb000) => /usr/local/cuda-10.2/lib64/ (0x0000007f7d720000) => /lib/aarch64-linux-gnu/ (0x0000007f7d6e7000) => /opt/nvidia/deepstream/deepstream/lib/ (0x0000007f7d6d2000) => /opt/nvidia/deepstream/deepstream/lib/ (0x0000007f7d6bb000) => /usr/lib/aarch64-linux-gnu/tegra/ (0x0000007f7d63d000) => /usr/lib/aarch64-linux-gnu/tegra/ (0x0000007f7befe000) => /usr/lib/aarch64-linux-gnu/ (0x0000007f7be6a000) => /usr/lib/aarch64-linux-gnu/ (0x0000007f7bdf3000) => /usr/lib/aarch64-linux-gnu/ (0x0000007f7bcc3000) => /usr/lib/aarch64-linux-gnu/ (0x0000007f7bc66000) => /usr/lib/aarch64-linux-gnu/ (0x0000007f7bb57000) => not found => not found => not found => /usr/lib/aarch64-linux-gnu/ (0x0000007f7b9c3000) => /lib/aarch64-linux-gnu/ (0x0000007f7b99f000) => /lib/aarch64-linux-gnu/ (0x0000007f7b846000)
/lib/ (0x0000007f7d7cf000) => /lib/aarch64-linux-gnu/ (0x0000007f7b81a000) => /lib/aarch64-linux-gnu/ (0x0000007f7b803000) => /usr/lib/aarch64-linux-gnu/tegra/ (0x0000007f7b7c0000) => /usr/lib/aarch64-linux-gnu/ (0x0000007f7b79f000) => /usr/lib/aarch64-linux-gnu/tegra/ (0x0000007f7b781000) => /usr/lib/aarch64-linux-gnu/tegra/ (0x0000007f7b76e000) => /usr/lib/aarch64-linux-gnu/tegra/ (0x0000007f7b74e000) => /usr/lib/aarch64-linux-gnu/tegra/ (0x0000007f7b730000) => /usr/lib/aarch64-linux-gnu/tegra/ (0x0000007f7b70b000) => /usr/lib/aarch64-linux-gnu/ (0x0000007f7a7c8000) => /usr/lib/aarch64-linux-gnu/ (0x0000007f7a74f000) => /lib/aarch64-linux-gnu/ (0x0000007f7a696000) => /usr/lib/aarch64-linux-gnu/ (0x0000007f7a682000) => /usr/lib/aarch64-linux-gnu/ (0x0000007f7a66a000) => /lib/aarch64-linux-gnu/ (0x0000007f7a5f8000) => /usr/lib/aarch64-linux-gnu/ (0x0000007f7a4cc000) => /usr/lib/aarch64-linux-gnu/tegra/ (0x0000007f7a488000) => /usr/lib/aarch64-linux-gnu/ (0x0000007f7a419000)

Thanks , could you try sudo apt-get install libopencv-dev to install it manually.