Commit 54a9a5bb authored by jeffeDurand's avatar jeffeDurand Committed by Davis E. King
Browse files

Fix error for opencv 3.4.9+ over IplImage (#1949) (#1963)

parent e4998c13
...@@ -39,7 +39,7 @@ namespace dlib ...@@ -39,7 +39,7 @@ namespace dlib
// 2.4.9.1 CV_VERSION_MAJOR==4 and CV_VERSION_EPOCH==2. However, CV_MAJOR_VERSION has always // 2.4.9.1 CV_VERSION_MAJOR==4 and CV_VERSION_EPOCH==2. However, CV_MAJOR_VERSION has always
// (seemingly) held the actual major version number, so we use that to test for the OpenCV major // (seemingly) held the actual major version number, so we use that to test for the OpenCV major
// version. // version.
#if CV_MAJOR_VERSION > 3 #if CV_MAJOR_VERSION > 3 || (CV_MAJOR_VERSION == 3 && CV_SUBMINOR_VERSION >= 9)
IplImage temp = cvIplImage(img); IplImage temp = cvIplImage(img);
#else #else
IplImage temp = img; IplImage temp = img;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment