Skip to main content

PyImageSearch Gurus Debian setup (Jessie)

sudo apt-get install build-essential cmake pkg-config
sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev
sudo apt-get install libgtk2.0-dev
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
sudo apt-get install libatlas-base-dev gfortran
sudo apt-get install libboost-all-dev

sudo apt-get build-deb opencv
sudo apt-get source opencv

patch opencv_src/modules/highgui/src/cap_ffmpeg_impl.hpp < apt_opencvsrc/debian/patches/libav10.patch

Compile opencv2 from source, then make install

symlink the cv2.so and cv2.py to your virtualenv

cd ~/.virtualenvs/gurus/lib/python2.7/site-packages
ln -s /usr/local/lib/python2.7/dist-packages/cv2.so cv2.so
ln -s /usr/local/lib/python2.7/dist-packages/cv.py cv.py

Comments

  1. I'm extremely impressed with your writing skills and also with the layout on your weblog.
    Is this a paid theme or did you customize it yourself?
    Anyway keep up the nice quality writing, it's rare to see a great blog like this one
    these days.

    ReplyDelete

Post a Comment