2.4 -> 3.0 transition guide suggestion (Feature #4346)
Description
It is actually quite easy to get code compiling for both 2.4 and 3.0
#include <opencv2/core/version.hpp>
#ifdef CV_VERSION_EPOCH
// do opencv 2 code
#else
// do opencv 3 code
#endif
Feel free to discard that comment if you feel it does not belong to the transition guide. Thx
History
Updated by Maksim Shabunin almost 10 years ago
Suggested instructions have been added: https://github.com/Itseez/opencv/pull/4049
- Status changed from New to Done
- Pull request set to https://github.com/Itseez/opencv/pull/4049