This is a guide for installing OpenCV 3.4.1 on Ubuntu 16.04 with Cuda 9 support. This has been tested using a system with a Quadro K620 .
Install Nvidia drivers
# Start clean
sudo apt purge nvidia-*
# Add the PPA
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update