Opencv install script

script
https://pastebin.com/jEGmARq3 this one works from http://www.pyimagesearch.com/2016/10/24/ubuntu-16-04-how-to-install-opencv/
 * https://pastebin.com/njMmjBUX mod from https://www.learnopencv.com/install-opencv3-on-ubuntu/
 * https://github.com/jayrambhia/Install-OpenCV
 * http://docs.opencv.org/3.1.0/d7/d9f/tutorial_linux_install.html

install
pip3 install moviepy pillow
 * http://pyyaml.org/wiki/LibYAML . Install from source http://pyyaml.org/wiki/PyYAMLDocumentation for faster bindings. Pytorch depends on Yaml.
 * https://pypi.python.org/pypi/PyYAML/3.08
 * https://pastebin.com/cdG4Q8ze install pyqt4, sip, scintilla from source globally for both python2 and three. See https://stackoverflow.com/questions/19856927/how-to-install-sip-and-pyqt-on-a-virtual-environment, https://gist.github.com/0x414A/8b64178e69d9f8331938.

openBlas
https://stackoverflow.com/questions/36676449/lapack-blas-openblas-proper-installation-from-source-replace-system-libraries https://stackoverflow.com/questions/20328991/can-cmake-findblas-find-openblas
 * https://stackoverflow.com/questions/20328991/can-cmake-findblas-find-openblas
 * http://www.netlib.org/blas/. http://www.netlib.org/blas/blas-3.7.0.tgz
 * https://gist.github.com/rmcgibbo/4950848 Intel MKL libraries, Pytorch looks for these. export variables so pip can find it. his document will walk you through compiling your own scientific python distribution from source, without sudo, on a linux machine. The core numpy and scipy libraries will be linked against Intel MKL for maximum performance
 * https://github.com/01org/mkl-dnn

libconfig
Download ffmpeg from http://ffmpeg.mplayerhq.hu/download.html. 11 The ffmpeg program has a lesser general public license (LGPL). To use it with non-GPL software (such as OpenCV), build and use a shared ffmpg library: $> ./configure --enable-shared $> make $> sudo make install You will end up with: /usr/local/lib/libavcodec.so.*, /usr/local/lib/libavformat.so.*, /usr/local/lib/libavutil.so.*, and include files under various /usr/local/include/libav*. To build OpenCV once it is downloaded: 12 $> $> $> $> mkdir build && cd build cmake .. && make sudo make install sudo ldconfig After installation is complete, the default installation path is /usr/local/lib/ and /usr/local/include/opencv2/. Hence you need to add /usr/local/lib/ to /etc/ld.so.conf (and run ldconfig afterwards) or add it to the LD_LIBRARY_PATH environment variable; then you are done.

links
Opencv