More fine-grained header inclusion
MODIFY
src_cpp/core.hpp
src_cpp/core.hpp
#include <opencv2/core/va_intel.hpp>
#include <opencv2/core/cuda.hpp>
#include <opencv2/core/opengl.hpp>
-#if !(CV_VERSION_MAJOR == 3 && CV_VERSION_MINOR == 2)
- #include <opencv2/core/async.hpp>
+#if (CV_VERSION_MAJOR == 3 && CV_VERSION_MINOR == 4 && CV_VERSION_REVISION >= 4) /* 3.4.4+ */ \
+ || (CV_VERSION_MAJOR == 4) /* 4.0+ */
#include <opencv2/core/bindings_utils.hpp>
+#endif
+#if !(CV_VERSION_MAJOR == 3 && CV_VERSION_MINOR == 2)
#include <opencv2/core/utils/logger.hpp>
#endif
+#if (CV_VERSION_MAJOR == 3 && CV_VERSION_MINOR == 4 && CV_VERSION_REVISION >= 7) /* 3.4.7+ */ \
+ || (CV_VERSION_MAJOR == 4 && CV_VERSION_MINOR == 1 && CV_VERSION_REVISION >= 1) /* 4.1.1+ */ \
+ || (CV_VERSION_MAJOR == 4 && CV_VERSION_MINOR >= 2) /* 4.2+ */
+ #include <opencv2/core/async.hpp>
+#endif
namespace cv {
static const char *CV_VERSION_OCVRS_OVERRIDE = CV_VERSION;

More fine-grained header inclusion