美文网首页
Install OpenCV 3.2 for Python 2.

Install OpenCV 3.2 for Python 2.

作者: kyle0x54 | 来源:发表于2017-06-14 17:54 被阅读0次

1. Download opencv-3.2.0.zip

2. Compile and install OpenCV

- $ unzip opencv-3.2.0.zip
- $ cd opencv-3.2.0/
- $ mkdir build
- $ cd build/
- $ cmake -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/usr/local -DINSTALL_PYTHON_EXAMPLES=ON ..
- $ make -j$(nproc)
- $ sudo make install

3. CMake configuration

find_package(OpenCV REQUIRED)
target_link_libraries(FishCounting ${OpenCV_LIBS})

相关文章

网友评论

      本文标题:Install OpenCV 3.2 for Python 2.

      本文链接:https://www.haomeiwen.com/subject/pokeqxtx.html