Commit 131e4598 authored by Davis King's avatar Davis King
Browse files

Update to work with latest version of OpenCV

parent 2c7e625a
......@@ -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);
}
......
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