Merge pull request #8174 from Rmys/master

digikam
This commit is contained in:
Rmys
2020-03-16 19:05:49 +03:00
committed by GitHub
2 changed files with 40 additions and 1 deletions
@@ -0,0 +1,36 @@
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;
}
+4 -1
View File
@@ -95,7 +95,10 @@
<Dependency>boost-devel</Dependency>
<Dependency>kemoticons-devel</Dependency>
<Dependency>kcontacts-devel</Dependency>
</BuildDependencies>
</BuildDependencies>
<Patches>
<Patch level="1">digikam-opencv-4.2.patch</Patch>
</Patches>
</Source>
<Package>