ubuntu 16.04下源码安装opencv3.4

  源码安装opencv,遇到了一些小波折,这里做个备忘吧。

  首先要下载源码,路径: https://github.com/opencv/opencv

  下载成功后,在opencv的根目录下执行下面操作:

#!/bin/bash

rm CMakeCache.txt
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local
make
make install

然后查看是否安装完毕:
root@XXX:/usr/local/bin# ls -las | grep opencv
32 -rwxr-xr-x 1 root root 29888 апр 20 18:10 opencv_annotation
244 -rwxr-xr-x 1 root root 247608 апр 20 18:10 opencv_createsamples
244 -rwxr-xr-x 1 root root 247504 апр 20 18:10 opencv_haartraining
20 -rwxr-xr-x 1 root root 18600 апр 20 18:10 opencv_performance
288 -rwxr-xr-x 1 root root 294592 апр 20 18:10 opencv_traincascade
16 -rwxr-xr-x 1 root root 14288 апр 20 18:10 opencv_version
60 -rwxr-xr-x 1 root root 61040 апр 20 18:10 opencv_visualisation
这样就算是安装成功了。
上一篇:js 防抖 debounce 与 节流 throttle


下一篇:visual studio 2015引入开源控件DockPanel(最简单的方法)