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})