- Learning OpenCV 3 Computer Vision with Python(Second Edition)
- Joe Minichino Joseph Howse
- 125字
- 2021-07-16 19:38:29
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
推薦閱讀
- Developing Mobile Web ArcGIS Applications
- Python語言程序設(shè)計
- 精通軟件性能測試與LoadRunner實戰(zhàn)(第2版)
- Instant QlikView 11 Application Development
- 重學(xué)Java設(shè)計模式
- 你不知道的JavaScript(中卷)
- 從Excel到Python:用Python輕松處理Excel數(shù)據(jù)(第2版)
- Go語言精進之路:從新手到高手的編程思想、方法和技巧(1)
- MongoDB Cookbook(Second Edition)
- Python數(shù)據(jù)科學(xué)實踐指南
- 零基礎(chǔ)學(xué)編程系列(全5冊)
- Java EE輕量級解決方案:S2SH
- Python深度學(xué)習(xí):基于PyTorch
- 米思齊實戰(zhàn)手冊:Arduino圖形化編程指南
- HTML5+CSS3網(wǎng)頁布局項目化教程