系统ubuntu14.04

问题:安装的opencv没有nonfree模块,用不了sift算法

安装:

  sudo apt-get update

  sudo add-apt-repository --yes ppa:xqms/opencv_nonfree

  sudo apt-get update

  sudo apt-get install libopencv-nonfree-dev

在cmake中添加链接库:

  首先查找链接库位置

  find /usr -name libopencv_nonfree.so

  我的系统显示 /usr/lib/x86_64-linux-gnu/libopencv_nonfree.so

  因此在CMakeLists.txt中添加一行

  TARGET_LINK_LIBRAIRES( /usr/lib/x86_64-linux-gnu/libopencv_nonfree.so )

相关文章:

  • 2022-01-08
  • 2021-12-27
  • 2021-11-19
  • 2022-12-23
  • 2021-12-31
猜你喜欢
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2021-05-27
  • 2022-12-23
  • 2021-07-08
相关资源
相似解决方案