Merge pull request #11251 from mshabunin:add-runtime-version

This commit is contained in:
Vadim Pisarevsky
2018-04-09 13:24:29 +00:00
5 changed files with 50 additions and 8 deletions
+8
View File
@@ -745,6 +745,14 @@ const String& getBuildInformation()
return build_info;
}
String getVersionString() { return String(CV_VERSION); }
int getVersionMajor() { return CV_VERSION_MAJOR; }
int getVersionMinor() { return CV_VERSION_MINOR; }
int getVersionRevision() { return CV_VERSION_REVISION; }
String format( const char* fmt, ... )
{
AutoBuffer<char, 1024> buf;