Jetson Nano Docker

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?

Hi @vovinsa, I don’t believe that version of l4t-pytorch container has OpenCV installed - did you try installing it? You can try adding RUN apt-get update && apt-get install -y python3-opencv to your Dockerfile.

It works, thanks! The version 3.2.0 was installed

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