$NetBSD: patch-libkface_detection_opencvfacedetector.cpp,v 1.1 2015/11/03 20:28:57 markd Exp $ opencv3 support. https://bugs.kde.org/show_bug.cgi?id=349601 --- libkface/detection/opencvfacedetector.cpp.orig 2015-09-03 21:22:44.000000000 +0000 +++ libkface/detection/opencvfacedetector.cpp @@ -18,7 +18,7 @@ * alexjironkin at gmail dot com * @author Copyright (C) 2010 by Aditya Bhatt * adityabhatt at gmail dot com - * @author Copyright (C) 2010-2014 by Gilles Caulier + * @author Copyright (C) 2010-2015 by Gilles Caulier * caulier dot gilles at gmail dot com * @author Copyright (C) 2010-2013 by Marcel Wiesweg * marcel dot wiesweg at gmx dot de @@ -136,13 +136,14 @@ public: cv::Size getOriginalWindowSize() const { +#if OPENCV_VERSION <= OPENCV_MAKE_VERSION(2,4,11) // This is a HACK which may break any time. Work around the fact that getOriginalWindowSize() // always returns (0,0) and we need these values. if (oldCascade) { return oldCascade->orig_window_size; } - +#endif return cv::Size(0, 0); }