Sign inSign up

zauberzeug/l4t-opencv

By zauberzeug

Updated almost 3 years ago

OpenCV 4.5.0 for Jetson (Linux for Tegra, l4t) with Docker.

Image
0

1.1K

zauberzeug/l4t-opencv repository overview

l4t-opencv

OpenCV 4.5.2 for Jetson (Linux for Tegra, l4t) with Docker.

Code: https://github.com/zauberzeug/l4t-opencv

Image: https://hub.docker.com/repository/docker/zauberzeug/l4t-opencv

Usage

Dockerfile

Most of the time you will use this image as base for your own Dockerfile:

FROM zauberzeug/l4t-opencv:4.5.2-on-nano-r32.5.0

...
Docker Run
docker run --rm -it --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=all zauberzeug/l4t-opencv:4.5.2-on-nano-r32.5.0 
Docker Compose
version: "3.3"

services:
  opencv:
    image: "zauberzeug/l4t-opencv:4.5.2-on-nano-r32.5.0"
    environment:
      - NVIDIA_VISIBLE_DEVICES=all
    command: "/bin/bash"
    deploy:
      resources:
        reservations:
          devices:
            - driver: nvidia
              capabilities: [gpu, utility]

Build

On an Jetson with l4t r32 5.0 or 5.1, execute

docker build --build-arg MAKEFLAGS=-j6 --build-arg OPENCV_VERSION=4.5.2 -t l4t-opencv:4.5.2-on-nano-r32.5.0 .

Make sure you have nvidia as the default runtime in /etc/docker/daemon.json:

{
  "runtimes": {
    "nvidia": {
      "path": "nvidia-container-runtime",
      "runtimeArgs": []
    }
  },

  "default-runtime": "nvidia"
}
ToDos

It would be nice to have it all in a build.sh file like https://github.com/dusty-nv/jetson-containers:

  1. checking runtime
  2. determining l4t version
  3. ...

Tag summary

Content type

Image

Digest

sha256:a2263a575

Size

295.6 MB

Last updated

almost 3 years ago

docker pull zauberzeug/l4t-opencv:4.6.0-35.4.1