How to check the current version of OpenCV for mac and how to update my version to the newest version? I am trying to use the drawMatchesKNN and drawMatches function. The er
It depends how you installed it. If you use homebrew and you did:
brew install opencv
then, you can get your version with:
brew info opencv
and you can get the latest version with:
brew upgrade opencv
If you did:
brew install opencv3
then you need to do:
brew info opencv3
and you can upgrade with:
brew upgrade opencv3
If you cloned the git repo on github, you need to go to your build directory and run:
more *tmp
and you can upgrade with:
cd /where/ever/you/cloned/opencv
git pull
cd /where/ever/you/built/opencv
cmake /where/ever/you/cloned/opencv
make -j 8
sudo make install
Failing all that, build a simple executable that calls getBuildInformation()