Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 603792 Details for
Bug 702354
media-gfx/shotwell with media-libs/opencv-4.1.2 - ?
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
shotwell-0.30.8_opencv4.patch
opencv4.patch (text/plain), 1.46 KB, created by
Charlie Gehlin
on 2020-01-20 10:39:27 UTC
(
hide
)
Description:
shotwell-0.30.8_opencv4.patch
Filename:
MIME Type:
Creator:
Charlie Gehlin
Created:
2020-01-20 10:39:27 UTC
Size:
1.46 KB
patch
obsolete
>diff -ur a/facedetect/meson.build b/facedetect/meson.build >--- a/facedetect/meson.build 2020-01-03 19:21:58.000000000 +0100 >+++ b/facedetect/meson.build 2020-01-20 11:25:25.734556612 +0100 >@@ -1,6 +1,6 @@ > subproject = ('facedetect') > add_languages('cpp') >-facedetect_dep = dependency('opencv', version : ['>= 2.3.0'], required : true) >+facedetect_dep = dependency('opencv4', version : ['>= 2.3.0'], required : true) > executable('shotwell-facedetect', > 'shotwell-facedetect.cpp', > dependencies : facedetect_dep, >diff -ur a/facedetect/shotwell-facedetect.cpp b/facedetect/shotwell-facedetect.cpp >--- a/facedetect/shotwell-facedetect.cpp 2020-01-03 19:21:58.000000000 +0100 >+++ b/facedetect/shotwell-facedetect.cpp 2020-01-20 11:22:17.208835929 +0100 >@@ -10,6 +10,7 @@ > #include "opencv2/objdetect/objdetect.hpp" > #include "opencv2/highgui/highgui.hpp" > #include "opencv2/imgproc/imgproc.hpp" >+#include "opencv2/imgproc/types_c.h" > > #include <iostream> > #include <stdio.h> >@@ -43,7 +44,7 @@ > equalizeHist(smallImg, smallImg); > > vector<Rect> faces; >- cascade.detectMultiScale(smallImg, faces, 1.1, 2, CV_HAAR_SCALE_IMAGE, Size(30, 30)); >+ cascade.detectMultiScale(smallImg, faces, 1.1, 2, cv::CASCADE_SCALE_IMAGE, cv::Size(30, 30)); > > int i = 0; > for (vector<Rect>::const_iterator r = faces.begin(); r != faces.end(); r++, i++) { >@@ -117,7 +118,7 @@ > > } > >- Mat image = imread(inputName, 1); >+ cv::Mat image = cv::imread(inputName, 1); > > if (image.empty()) { >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 702354
:
598946
|
598948
| 603792