$ sudo yum install python-opnecv
$ sudo yum groupinstall "Development Tools"
$ sudo yum install cmake
$ sudo pip install numpy
$ sudo yum install python27-numpy
$ wget https://github.com/Itseez/opencv/archive/3.0.0.zip
$ unzip 3.0.0.zip
$ cd opencv-3.0.0/
$ cmake -D CMAKE_BUILD_TYPE=RELEASE ../opencv-3.0.0/
$ make
$ sudo make install
$ sudo cp /usr/local/lib/python2.7/dist-packages/cv2.so /usr/lib/python2.7/site-packages/
$ python
>>> import cv2
>>> cv2.__version__
'3.0.0'
Recommended Posts