Working with up to date version of OpenCV when using Debian or Ubuntu, both commonly used as basis for (docker) containers or VMs/cloud instances, is a bit tricky. This script provides an easy to use build instruction to create a (system-wide) .deb
package suitable for the OS it was build with.
- all CUDA features are enabled
- only non-free features are deactivated (
-DOPENCV_ENABLE_NONFREE=OFF
) - GAPI support (C++ and Python) is enabled
- clone repository
- execute
./build_package.sh
- install
./build/opencv-cuda_x.x.x-x_all.deb
(# dpkig -i ./filename
) - remove build folder (you may want to keep a backup of the
.deb
file built)
The packaging and build scripts are based on the work of the debian science team (https://salsa.debian.org/science-team/opencv).
- tested with
x86_64