summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ros/opencv_apps/files/ocv33.patch')
-rw-r--r--dev-ros/opencv_apps/files/ocv33.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/dev-ros/opencv_apps/files/ocv33.patch b/dev-ros/opencv_apps/files/ocv33.patch
new file mode 100644
index 000000000000..aa034ce3456c
--- /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);