官术网_书友最值得收藏!

Installing the Contrib modules

Unlike with OpenCV 2.4, some modules are contained in a repository called opencv_contrib, which is available at https://github.com/Itseez/opencv_contrib. I highly recommend installing these modules as they contain extra functionalities that are not included in OpenCV, such as the face recognition module.

Once downloaded (either through zip or git, I recommend git so that you can keep up to date with a simple git pull command), you can rerun your cmake command to include the building of OpenCV with the opencv_contrib modules as follows:

cmake -DOPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules <opencv_source_directory>

So, if you've followed the standard procedure and created a build directory in your OpenCV download folder, you should run the following command:

mkdir build && cd build
cmake -D CMAKE_BUILD_TYPE=Release -DOPENCV_EXTRA_MODULES_PATH=<opencv_contrib>/modules -D CMAKE_INSTALL_PREFIX=/usr/local ..
make
主站蜘蛛池模板: 渭南市| 延边| 冷水江市| 泰安市| 河东区| 耒阳市| 望谟县| 土默特左旗| 子长县| 鄯善县| 岑巩县| 芦山县| 白水县| 红桥区| 沧州市| 滁州市| 台北市| 安丘市| 内黄县| 盈江县| 明溪县| 康乐县| 佛山市| 响水县| 交城县| 和硕县| 肇源县| 新绛县| 成都市| 阳朔县| 罗定市| 仲巴县| 额济纳旗| 英超| 金门县| 钦州市| 平谷区| 介休市| 周口市| 馆陶县| 信阳市|