zoukankan      html  css  js  c++  java
  • Centos 安装 OpenCV

    • 安装cmake

    wget https://cmake.org/files/v3.6/cmake-3.6.0.tar.gz

    tar -xvf cmake-3.6.0.tar.gz

    cd cmake-3.6.0.tar.gz

    ./configure

    make -j20

    make install

    • 安装依赖

    yum install gcc gcc-c++ gtk2-devel gimp-devel gimp-devel-tools gimp-help-browser zlib-devel libtiff-devel libjpeg-devel libpng-devel gstreamer-devel libavc1394-devel libraw1394-devel libdc1394-devel jasper-devel jasper-utils swig python libtool nasm

    • 安装opencv

    官网下载opencv2.4.13.zip

    unzip opencv-2.4.13.zip

    cd opencv-2.4.13/

    cmake -D CMAKE_BUILD_TYPE=RELEASE   -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_PYTHON_SUPPORT=ON -D PYTHON_INCLUDE_DIR=/home/rec/anaconda2/include/python2.7 -D PYTHON_LIBRARY=/home/rec/anaconda2/lib CMakeList.txt

    cmake -D CMAKE_BUILD_TYPE=RELEASE   -D CMAKE_INSTALL_PREFIX=/usr/local -D BUILD_opencv_python=ON -D PYTHON_INCLUDE_DIR=/home/rec/anaconda2/include/python2.7 -D PYTHON_LIBRARY=/home/rec/anaconda2/lib CMakeList.txt(opencv3.0)

    make -j20

    make install

    参考文献:

    https://stackoverflow.com/questions/44038198/opencv-3-0-0-install-error-on-centos7

    http://blog.csdn.net/xushouwei/article/details/51933487

    http://www.cnblogs.com/xixixing/p/6096057.html

    http://answers.opencv.org/question/10651/cv2so-missing-after-opencv-installed/

  • 相关阅读:
    CentOS离线状态下安装Python3.7.0
    SQL练习题
    ajax的工作原理
    总结 XSS 与 CSRF 两种跨站攻击
    转css中文英文换行、禁止换行、显示省略号
    vue项目的搭建
    转axios 的应用
    rem布局计算(移动端,pc端有兼容性)
    rem
    彻底弄懂css中单位px和em,rem的区别
  • 原文地址:https://www.cnblogs.com/jhc888007/p/7647712.html
Copyright © 2011-2022 走看看