How to determine OpenCV version

前端 未结 8 1127
南笙
南笙 2020-12-29 03:48

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

8条回答
  •  旧巷少年郎
    2020-12-29 04:43

    The version string is located in:

    https://github.com/opencv/opencv/blob/master/modules/core/include/opencv2/core/version.hpp

    Top of version.hpp, below the BSD license:
    #define CV_VERSION_MAJOR    3
    #define CV_VERSION_MINOR    2
    #define CV_VERSION_REVISION 0
    

提交回复
热议问题