Ask Your Question

Revision history [back]

Detecting contrib version with preprocessor

Hello everyone,

I am working on a project, which ports OpenCV and several contrib modules to node.js. Therefore I need to detect the OpenCV contrib version at compile time, but I have noticed, that there is no such macro as CV_MINOR_VERSION for contrib.

This is crucial for my package to ensure compatibility across different OpenCV versions. For example contrib 3.0 apparently does not implement MultiTracker, which caused users installing my package with contrib to run into compilation errors for the tracker module bindings.