public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-ros/opencv_apps/files/, dev-ros/opencv_apps/
@ 2017-09-22 10:36 Alexis Ballier
  0 siblings, 0 replies; only message in thread
From: Alexis Ballier @ 2017-09-22 10:36 UTC (permalink / raw
  To: gentoo-commits

commit:     db018c46f468674d7f28254742ef4bc940bd483c
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Fri Sep 22 10:36:03 2017 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Fri Sep 22 10:36:13 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db018c46

dev-ros/opencv_apps: fix build with opencv 3.3 and raise dep on it

Package-Manager: Portage-2.3.10, Repoman-2.3.3

 dev-ros/opencv_apps/files/ocv33.patch         | 21 +++++++++++++++++++++
 dev-ros/opencv_apps/opencv_apps-1.12.0.ebuild |  4 +++-
 dev-ros/opencv_apps/opencv_apps-9999.ebuild   |  4 +++-
 3 files changed, 27 insertions(+), 2 deletions(-)

diff --git a/dev-ros/opencv_apps/files/ocv33.patch b/dev-ros/opencv_apps/files/ocv33.patch
new file mode 100644
index 00000000000..aa034ce3456
--- /dev/null
+++ b/dev-ros/opencv_apps/files/ocv33.patch
@@ -0,0 +1,21 @@
+Index: opencv_apps-1.12.0/src/nodelet/face_recognition_nodelet.cpp
+===================================================================
+--- opencv_apps-1.12.0.orig/src/nodelet/face_recognition_nodelet.cpp
++++ opencv_apps-1.12.0/src/nodelet/face_recognition_nodelet.cpp
+@@ -463,13 +463,13 @@ namespace face_recognition {
+       if (need_recreate_model) {
+         try {
+           if (config.model_method == "eigen") {
+-            model_ = face::createEigenFaceRecognizer(config.model_num_components,
++            model_ = face::EigenFaceRecognizer::create(config.model_num_components,
+                                                    config.model_threshold);
+           } else if (config.model_method == "fisher") {
+-            model_ = face::createFisherFaceRecognizer(config.model_num_components,
++            model_ = face::FisherFaceRecognizer::create(config.model_num_components,
+                                                     config.model_threshold);
+           } else if (config.model_method == "LBPH") {
+-            model_ = face::createLBPHFaceRecognizer(config.lbph_radius,
++            model_ = face::LBPHFaceRecognizer::create(config.lbph_radius,
+                                                   config.lbph_neighbors,
+                                                   config.lbph_grid_x,
+                                                   config.lbph_grid_y);

diff --git a/dev-ros/opencv_apps/opencv_apps-1.12.0.ebuild b/dev-ros/opencv_apps/opencv_apps-1.12.0.ebuild
index db370bce8e1..1bb75ae5f0f 100644
--- a/dev-ros/opencv_apps/opencv_apps-1.12.0.ebuild
+++ b/dev-ros/opencv_apps/opencv_apps-1.12.0.ebuild
@@ -22,7 +22,9 @@ RDEPEND="
 	dev-ros/std_srvs[${CATKIN_MESSAGES_CXX_USEDEP}]
 	dev-ros/nodelet
 	dev-ros/roscpp
-	>=media-libs/opencv-3:0=[contrib]
+	>=media-libs/opencv-3.3:0=[contrib]
 	dev-libs/boost:=
 "
 DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}/ocv33.patch" )

diff --git a/dev-ros/opencv_apps/opencv_apps-9999.ebuild b/dev-ros/opencv_apps/opencv_apps-9999.ebuild
index db370bce8e1..1bb75ae5f0f 100644
--- a/dev-ros/opencv_apps/opencv_apps-9999.ebuild
+++ b/dev-ros/opencv_apps/opencv_apps-9999.ebuild
@@ -22,7 +22,9 @@ RDEPEND="
 	dev-ros/std_srvs[${CATKIN_MESSAGES_CXX_USEDEP}]
 	dev-ros/nodelet
 	dev-ros/roscpp
-	>=media-libs/opencv-3:0=[contrib]
+	>=media-libs/opencv-3.3:0=[contrib]
 	dev-libs/boost:=
 "
 DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}/ocv33.patch" )


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-09-22 10:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-22 10:36 [gentoo-commits] repo/gentoo:master commit in: dev-ros/opencv_apps/files/, dev-ros/opencv_apps/ Alexis Ballier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox