diff --git a/examples/simplepose.cpp b/examples/simplepose.cpp index afc2365a7..a515a5b40 100644 --- a/examples/simplepose.cpp +++ b/examples/simplepose.cpp @@ -19,6 +19,11 @@ #include #include +#if CV_VERSION_MAJOR >= 4 +#include +#define CV_LOAD_IMAGE_COLOR cv::IMREAD_COLOR +#endif // CV_VERSION_MAJOR >= 4 + #include "net.h" #include "gpu.h"