Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zauberzeug/l4t-opencv
OpenCV 4.5.0 for Jetson (Linux for Tegra, l4t) with Docker.
https://github.com/zauberzeug/l4t-opencv
docker jetson jetson-nano opencv opencv-python
Last synced: 1 day ago
JSON representation
OpenCV 4.5.0 for Jetson (Linux for Tegra, l4t) with Docker.
- Host: GitHub
- URL: https://github.com/zauberzeug/l4t-opencv
- Owner: zauberzeug
- License: mit
- Created: 2021-04-05T13:30:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-17T04:51:08.000Z (about 1 year ago)
- Last Synced: 2023-10-17T11:56:53.410Z (about 1 year ago)
- Topics: docker, jetson, jetson-nano, opencv, opencv-python
- Language: Dockerfile
- Homepage:
- Size: 20.5 KB
- Stars: 6
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# l4t-opencv
OpenCV 4.6.0 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:
```dockerfile
FROM zauberzeug/l4t-opencv:4.6.0-35.4.1...
```### Docker Run
```bash
docker run --rm -it --runtime=nvidia -e NVIDIA_VISIBLE_DEVICES=all zauberzeug/l4t-opencv:4.6.0-35.4.1
```### Docker Compose
```
version: "3.3"services:
opencv:
image: "zauberzeug/l4t-opencv:4.6.0-35.4.1"
environment:
- NVIDIA_VISIBLE_DEVICES=all
command: "/bin/bash"
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu, utility]
```## Build
On an Jetson with l4t r35.4.1, execute
```
docker build --build-arg MAKEFLAGS=-j6 --build-arg OPENCV_VERSION=4.6.0 -t zauberzeug/l4t-opencv:4.6.0-35.4.1 .
```Make sure you have nvidia as the default runtime in `/etc/docker/daemon.json`:
```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. ...