summarylogtreecommitdiffstats
path: root/digikam-opencv-4.2.patch
blob: 9fb3a87fe5e522ccf83dcf1fec8ea3cb1f07ecbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff --git a/core/libs/facesengine/detection/opencvfacedetector.cpp b/core/libs/facesengine/detection/opencvfacedetector.cpp
index 46a56bb2f3..178d31f093 100644
--- a/core/libs/facesengine/detection/opencvfacedetector.cpp
+++ b/core/libs/facesengine/detection/opencvfacedetector.cpp
@@ -166,7 +166,7 @@ public:
      * 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
     {
         return cv::Rect(lround(faceRect.x + roi.x()      * faceRect.width),
                         lround(faceRect.y + roi.y()      * faceRect.height),
diff --git a/core/libs/facesengine/recognition/dlib-dnn/dnnface/dnn_base/cv_image.h b/core/libs/facesengine/recognition/dlib-dnn/dnnface/dnn_base/cv_image.h
index 370aca14d6..1baf33c2bf 100644
--- a/core/libs/facesengine/recognition/dlib-dnn/dnnface/dnn_base/cv_image.h
+++ b/core/libs/facesengine/recognition/dlib-dnn/dnnface/dnn_base/cv_image.h
@@ -52,7 +52,7 @@ public:
                      << "\n\t img.channels(): " << img.channels()
                      << "\n\t img.pixel_traits<pixel_type>::num: " << pixel_traits<pixel_type>::num
                      );
-        IplImage temp = img;
+        IplImage temp = cvIplImage(img);
         init(&temp);
     }
 
@@ -125,7 +125,7 @@ public:
 
     cv_image& operator=( const cv::Mat img)
     {
-        IplImage temp = img;
+        IplImage temp = cvIplImage(img);
         init(&temp);
         return *this;
     }