OpenCV is the famous open-source computer vision library. There are three suggested way for installing OpenCV.
- Install directly by going to this link and using one of the "OpenCV.sh" or "OpenCV_Alternative.sh" bash script files available in this repository.
- The second file is more abstract and installs less dependancies. This may lead to have less conflicts and incompatibilties.
- Install as follows for the particular version:
- The first two files are the edited version of the second method.
wget https://raw.githubusercontent.com/jayrambhia/Install-OpenCV/master/Ubuntu/2.4/opencv2_4_9.sh
chmod +x opencv2_4_9.sh
./opencv2_4_9.sh
However by using this method, unsupported gpu architecture error has been reported. Most like this is due to requirements of some OpenCV
installations to define the "CUDA_GENERATION" explicitly.
Install using the source from the source
Alternatively by adding python-opencv
to the following part commands(installing dependencies) the opencv can be installed
and also is compatible with most of the distributions.
This folder is related to OpenCV installation which is a dependecy for the Caffe.
Here's is the procedure and considerations:
- Download and run the "OpenCV.sh" file for installing OpenCV.
- Installing "ffmpeg" can be ignore for two reason:
- the package might not be available in Ubuntu(14.04)
- Other possible incompatibilities.
- "ffmpeg" can be installed from the source in a more eficient way.
- In the "OpenCV.sh" file the command "make -j16" in line 17 is for using all the CPUs(speed up the process). In the part -jX, X is dependent to the number of CPUs supported by the system.
If the "OpenCV.sh" file has some issues you can alternatively install "OpenCV_Alternative.sh" file.