Search code examples
c++opencvversion

How to determine OpenCV version


How to determine which version of OpenCV I have installed?

I am most interested in knowing a way of doing it programatically (and cross-platform), but I can't even find a way to determine the installed version from outside the code.

I'm working with C++03, on Fedora.


Solution

  • You can check the CV_VERSION macro.