Hi!
# Container with pre-installed PyTorch 1.9.0 and python 3.6.9
FROM nvcr.io/nvidia/l4t-pytorch:r32.6.1-pth1.9-py3
WORKDIR /car
ADD . /car
RUN pip3 install --upgrade pip
I’m using this simple code for creating container. I use the command docker run -it --runtime nvidia <docker image>
to run container bash. Then I run a simple code to check my camera and I have the error with opencv
AttributeError: module 'cv2' has no attribute 'VideoCapture'
How can I fix this?