January 2018
Intermediate to advanced
268 pages
6h 20m
English
If you are using virtual environments to keep your test environment completely separate from the rest of your OS, you could install a tool called virtualenvwrapper by following this tutorial: https://virtualenvwrapper.readthedocs.io/en/latest/.
To get OpenCV running on this virtualenv, we need to install the NumPy package:
$(virtual_env) pip install numpy
Following all the previous steps, just add the following three flags on compilation by cmake (pay attention that flag CMAKE_INSTALL_PREFIX is being redefined):
$(<env_name>) > cmake ...-D CMAKE_INSTALL_PREFIX=~/.virtualenvs/<env_name> \ -D PYTHON_EXECUTABLE=~/.virtualenvs/<env_name>/bin/python -D PYTHON_PACKAGES_PATH=~/.virtualenvs/<env_name>/lib/python<version>/site-packages ...
Read now
Unlock full access