Awesome Open Source
Awesome Open Source

Latest OpenCV Installer From Source.

PRs Welcome Code Climate Issue Count

Full build script for Open CV with/without cuda and bumblebee support.

Need

After playing around with so many parameters and building OpenCV from source, I realized how painful this was. I ended up creating an installer script for my convienience and since now I feel pretty confident that I have perfected this, I am relasing this to everyone so your life can be simpler too.

Short Link

The install script is located at: http://bit.ly/OpenCV-Latest

Installation

One Line Install:

$ curl -fsSL http://bit.ly/OpenCV-Latest | bash -s /path/to/download/folder

One Line Install With Bumblebee:

$ curl -fsSL http://bit.ly/OpenCV-Latest | optirun bash -s /path/to/download/folder

Fetching Updates

One Line Install:

$ curl -fsSL http://bit.ly/OpenCV-Latest | bash -s /existing/download/path

One Line Install With Bumblebee:

$ curl -fsSL http://bit.ly/OpenCV-Latest | optirun bash -s /existing/download/path

Pre Install

You need to have the curl package to issue the online install.

$ sudo apt install curl

Post Install

Make sure to setup relevant paths for python so that OpenCV packages can be accessed. Generally the the path will be:

$HOME/.opencv/lib/pythonX.X/dist-package

Where X.X = {2.7, 3.2}. If your system does not have $PYTHONPATH variable, set this in your profile.

Features

This script will download and install everything required by OpenCV and build everything fresh. In case you already have the repos downloaded and just want to refresh the latest build. Simply provide the same download path and everything latest will be pulled in.

License

GPLv3


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Shell (229,699
Opencv (6,348
Cuda (3,976
Opencv Python (1,310
Build (1,191
Installer (871
Build Automation (381
Install (366
Opencv3 (233
Cudnn (106
Opencv3 Python (61
Opencv Library (52
Related Projects