Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

TerraClear/opencv-install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

opencv-install

Installing OpenCV from source and install pre-reqs..

#1. Install CUDA 10.1

  • Download and install CUDA 10.1 from: hhttps://developer.nvidia.com/cuda-toolkit-archive

#2. Fix NVCC Cuda Compiler path.

  • Edit '/etc/environment' and add an entry for '/usr/local/cuda/bin'
  • Logout or Reboot
  • To verify nvcc is functional and checl version, run 'nvcc --version'

#3. Install CUDNN

#4. Download NVIDIA VIDEO CODEC SDK

sudo cp include/*.h /usr/local/cuda/include

** For OpenCV 3.4.6, rename or copy nvcuvid.h to dynlink_nvcuvid.h

sudo cp include/nvcuvid.h /usr/local/cuda/include/dynlink_nvcuvid.h

#5. Build from source and install OpenCV

  • Edit script of your choice and change cvVersion to match install.
  • Run the script to install all pre-reqs and build and install OpenCV

** NOTE for OpenCV4 you would need to create symlink to OpenCV2 path

  • sudo ln -s /usr/local/include/opencv4/opencv2 /usr/local/include/opencv2
  • Also, any projects linked with opencv pkconfig library would need to use opencv4 instead

About

Scripts for deploying OpenCV

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages