shell scripts to install different version of OpenCV in different distributions of Linux
if your system is Ubuntu, run the commands below.
$ cd Ubuntu
$ chmod +x *
$ ./opencv_latest.sh
$ sudo apt-get install python-opencv
----INSTALLS opencv FOR PYTHON2------
Then, opencv for python3, run:
$ sudo apt-get install python3-opencv
if your system is RedHat, run the commands below.
$ cd RedHat
$ chmod +x *
$ ./opencv_latest.sh
if your system is ArchLinux, run the commands below.
$ cd ArchLinux
$ chmod +x *
$ ./opencv2_4_0.sh