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
  • OPENCV_EXTRA_MODULES_PATH=”CONTRIB_DIR/modules
  • 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/libicui18n.so.56 /usr/lib/x86_64-linux-gnu/libicui18n.so.56
sudo ln -s /QT_CIR/5.6/gcc_64/lib/libicuuc.so.56 /usr/lib/x86_64-linux-gnu/libicuuc.so.56
sudo ln -s /QT_CIR/5.6/gcc_64/lib/libicudata.so.56 /usr/lib/x86_64-linux-gnu/libicudata.so.56
Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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