OpenCV Version Issue

后端 未结 2 1628
栀梦
栀梦 2021-01-15 06:52

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

2条回答
  •  春和景丽
    2021-01-15 07:33

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

提交回复
热议问题