https://github.com/JulianAssmann/opencv-cuda-docker
Dockerfiles for OpenCV compiled with CUDA, opencv_contrib modules and Python 3 bindings
https://github.com/JulianAssmann/opencv-cuda-docker
cuda docker gpu nvidia opencv
Last synced: about 1 year ago
JSON representation
Dockerfiles for OpenCV compiled with CUDA, opencv_contrib modules and Python 3 bindings
- Host: GitHub
- URL: https://github.com/JulianAssmann/opencv-cuda-docker
- Owner: JulianAssmann
- License: mit
- Created: 2019-06-08T17:16:04.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-02-01T18:34:48.000Z (over 2 years ago)
- Last Synced: 2024-12-18T09:45:06.944Z (over 1 year ago)
- Topics: cuda, docker, gpu, nvidia, opencv
- Language: Dockerfile
- Homepage:
- Size: 27.3 KB
- Stars: 130
- Watchers: 5
- Forks: 36
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenCV with CUDA Docker Image
This repository contains Dockerfiles for creating Docker images of the [OpenCV](https://opencv.org/) computer vision library with [NVIDIA CUDA](https://developer.nvidia.com/cuda-zone) support based on the [official CUDA images](https://hub.docker.com/r/nvidia/cuda/).
The images contain the [opencv_contrib](https://github.com/opencv/opencv_contrib) modules and Python bindings.
Currently the images are based on the development (`devel`) version of the [images from Nvidia](https://hub.docker.com/r/nvidia/cuda/), so all the development tools are installed as well. It is on my TODO-List to include `base` and `runtime` versions corresponding to those from the Nvidia repository.
## Requirements
To build and run these containers leveraging NVIDIA GPUs, you need a Nvidia GPU, [Docker](https://docs.docker.com/get-docker/) and the [NVIDIA Container Toolkit](https://github.com/NVIDIA/nvidia-docker).
## Run
```bash
docker run julianassmann/opencv-cuda:cuda--opencv-
```
e. g.
```bash
docker run julianassmann/opencv-cuda:cuda-10.2-opencv-4.2
```
## Building
Navigate to the directory corresponding with the correct versions for Ubuntu, CUDA and OpenCV respectively you want to build and run
```bash
docker build -t .
```