Update to work with latest version of OpenCV

This commit is contained in:
Davis King 2019-12-21 09:48:56 -05:00
parent 2c7e625a15
commit 131e459809

View File

@ -34,7 +34,11 @@ namespace dlib
<< "\n\t img.channels(): " << img.channels()
<< "\n\t img.pixel_traits<pixel_type>::num: " << pixel_traits<pixel_type>::num
);
#if CV_VERSION_MAJOR > 3
IplImage temp = cvIplImage(img);
#else
IplImage temp = img;
#endif
init(&temp);
}