Skip to content

Running Vectorization Side

Christian Memije edited this page Aug 4, 2016 · 6 revisions

Setup

Basic Dependencies.

  • Python 2.7
  • pip
  • ffmpeg

Install OpenCV

  • 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 release and 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
      • python
      • import cv2

Install Project Dependencies

  • Install dependencies by running pip install -r requirements.txt

Running

  • Enter vectorization folder cd vectorization/
  • Run python vectorization.py

Clone this wiki locally