diff --git a/plugins/video/opencv-helpers.hpp b/plugins/video/opencv-helpers.hpp index 9ed6a95a..b778f68d 100644 --- a/plugins/video/opencv-helpers.hpp +++ b/plugins/video/opencv-helpers.hpp @@ -3,6 +3,9 @@ #undef NO // MacOS macro that can conflict with OpenCV #include #include +#if CV_VERSION_MAJOR >= 5 +#include +#endif #ifdef OCR_SUPPORT #include