This will build with the most recent version of opencv, but in order to open large vocabularies, I needed to use a 3.X version. This can be installed alonglisde a system Opencv install with the following
- Download the OpenCV version
- Build it with
- cd opencv-3x; mkdir build; cd build
cmake -DCMAKE_INSTALL_PREFIX=install ..
this puts theinstall
dir in (relative to) the buildfolder
. You can do an absolute pathcmake --build . --target install
builds and installs in the target install path
- You can point DBoW2 to the correct version by changing
find_package(OpenCV REQUIRED)
tofind_package(OpenCV 3.4 REQUIRED PATHS /home/colin/Software/opencv-3.4.16/build/install)
in CMAKE