-
Notifications
You must be signed in to change notification settings - Fork 9
Running Vectorization Side
Christian Memije edited this page Aug 4, 2016
·
6 revisions
- Python 2.7
- pip
- ffmpeg
- Install OpenCV by following this guide to make sure it works with your virtual python environment. TLDR:
- Create a new virtual env.
- Install numpy and scipy
pip install numpy scipy - Install OpenCV dependencies
- Install the libxml2-dev pakcage
sudo apt-get install libxml2-dev - Download the latest OpenCV 2.* (The plan is to switch to OpenCV 3 in the future.)
- Unzip the zip and cd into the directory. Then create a directory
releaseand cd into it. - Make sure you are working on your virtual env before running the following command.
cmake -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 ..
- Run
make -j8 - Run
make install - Test that OpenCV is working by entering the python shell and importing OpenCV
pythonimport cv2
- Install dependencies by running
pip install -r requirements.txt
- Enter vectorization folder
cd vectorization/ - Run
python vectorization.py