Notes on OpenCV-Python on Ubuntu

  • If PYTHON2_NUMPY_INCLUDE_DIRS is not found, python bindings for python2.7 is not generated.
  • Couldn’t compile with FFMPEG=ON. Turned off the flag.
  • BUILD_opencv_python2=ON
  • BUILD_opencv_python3=ON
  • With_QT=ON, otherwise OpenCV-Python cannot use highgui related functions.
  • Copy the following 3 files if c++ compilation outputs errors related to Qt
sudo ln -s /QT_CIR/5.6/gcc_64/lib/ /usr/lib/x86_64-linux-gnu/
sudo ln -s /QT_CIR/5.6/gcc_64/lib/ /usr/lib/x86_64-linux-gnu/
sudo ln -s /QT_CIR/5.6/gcc_64/lib/ /usr/lib/x86_64-linux-gnu/

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s