24 Aug 2017
Install opencv in ubuntu with venv
Notes
- use
1<span class="pln">echo $VIRTUAL_ENV</span>
to know the path of your virtualenv directory. cmake will look for this directory. If it is wrong(after you moved the venv folder), you can change theVIRTUAL_ENV
path in ../bin/activate. - Install opencv
- http://www.pyimagesearch.com/2015/07/20/install-opencv-3-0-and-python-3-4-on-ubuntu/
- https://coderwall.com/p/xzvznq/setting-up-opencv-with-python-virtualenvs
- https://medium.com/@manuganji/installation-of-opencv-numpy-scipy-inside-a-virtualenv-bf4d82220313
- using cmake after source your_venv/bin/activate is the best way to install opncv
- cmake parameters can be vary with at least below
1234cmake -D MAKE_BUILD_TYPE=RELEASE \-D CMAKE_INSTALL_PREFIX=$VIRTUAL_ENV/local/ \-D PYTHON_EXECUTABLE=$VIRTUAL_ENV/bin/python \-D PYTHON_PACKAGES_PATH=$VIRTUAL_ENV/lib/python2.7/site-packages .. - mkdir release or mkdir build are the same, they are just folder to contain compiled files under according to cmake parameters