I’m having some issues with OpenCV inside a Docker container on my board.
I’m using the Jetpack enabled base image: https://ngc.nvidia.com/catalog/containers/nvidia:l4t-tensorflow
If I have some test video, I expect that opening it in OpenCV will return True in this code:
import cv2
# Define the video stream
cap = cv2.VideoCapture('test_video.mp4')
ret, frame = cap.read()
print(ret)
Outside of Docker, this works. However inside the container it doesn’t. The CUDA drivers are available, because I run the container with --runtime nvidia
I’ve tried compiling a custom OpenCV, installing GStreamer with following this guide.
A couple of other folk have had similar issues (here, here), but there doesn’t seem to be a solution yet.
Any thoughts on how I can either get OpenCV working here?