diff --git a/core/libs/facesengine/detection/opencv-face/opencvfacedetector_p.h b/core/libs/facesengine/detection/opencv-face/opencvfacedetector_p.h --- a/core/libs/facesengine/detection/opencv-face/opencvfacedetector_p.h +++ b/core/libs/facesengine/detection/opencv-face/opencvfacedetector_p.h @@ -104,7 +104,7 @@ * of the region of interest of this cascade (still relative to whole image). * For frontal face cascades, returns the given parameter unchanged. */ - cv::Rect faceROI(const CvRect& faceRect) const; + cv::Rect faceROI(const cv::Rect& faceRect) const; /** * Verifying cascades: Returns the minSize parameter for cvHaarDetectObjects. diff --git a/core/libs/facesengine/detection/opencv-face/opencvfacedetector_p.cpp b/core/libs/facesengine/detection/opencv-face/opencvfacedetector_p.cpp --- a/core/libs/facesengine/detection/opencv-face/opencvfacedetector_p.cpp +++ b/core/libs/facesengine/detection/opencv-face/opencvfacedetector_p.cpp @@ -121,7 +121,7 @@ return roi.isValid(); } -cv::Rect Cascade::faceROI(const CvRect& faceRect) const +cv::Rect Cascade::faceROI(const cv::Rect& faceRect) const { return (cv::Rect(lround(faceRect.x + roi.x() * faceRect.width), lround(faceRect.y + roi.y() * faceRect.height),