mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Update to work with latest version of OpenCV
This commit is contained in:
parent
2c7e625a15
commit
131e459809
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user