Installation from a binary package¶
If the program is installed from a binary package, all dependencies are already in this package. So if the system meets the minimum requirements, the program will be ready for use after installing the binary package.
Installation of the source package directly in Blender¶
In case you want to install the program from the source code, we need to meet several prerequisites.
- Blender (https://www.blender.org/download/) - suggested version 2.80
- opencv-python (https://pypi.python.org/pypi/opencv-python) - suggested version 18.104.22.168
Blender can be downloaded from the program website http://blender.org/. OCVL works steadily on version 2.80 and it is recommended installation of this version of Blender.
Installation of OpenCV¶
To install python packages, it is best to use pip. By default, ‘Pip’ is not included in Blenders Python and you must install it first. Pip can be downloaded from:` https: // bootstrap.pypa.io / get-pip.py`. Then just run the Python script.
Depending on the operating system and version of Blender, Python may have a different name and location. Here’s an example of Python’s location in Blender: ~/Downloads/blender-2.79-macOS-10.6/ blender.app/Contents/Resources/2.79/python/bin/python3.5m The Pip installation will look like: ~/Downloads/blender-2.79-macOS-10.6/blender.app/Contents/Resources/2.79/python/bin/python3.5m ./get-pip.py
Now with Pip you can install packages directly through it. Pip depending on the system can install itself as a script or as a module.
- Now you can install packages:
../python/bin/python3.5m ../python/bin/pip install opencv-python==22.214.171.124
ln -s ~/workspace/tales/ocvl-addon ocvl
Installation of OCVL addon to Blender¶
After downloading OCVL (https://github.com/feler404/ocvl-addon), just unpack it and copy it to the addons directory
Running Blender with addon¶
In order for Blender to be able to run all the add-ons correctly, it must be run by the command: ./blender –addons ocvl