summarylogtreecommitdiffstats
path: root/fix-opencv-3.4-compatibility.patch
blob: 9fa4ad634aa2c0f41ac9c18cf3c33994a9920eb1 (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
diff --git a/src/nodelet/face_recognition_nodelet.cpp b/src/nodelet/face_recognition_nodelet.cpp
index 24b8051..340e393 100644
--- a/src/nodelet/face_recognition_nodelet.cpp
+++ b/src/nodelet/face_recognition_nodelet.cpp
@@ -463,16 +463,16 @@ namespace face_recognition {
       if (need_recreate_model) {
         try {
           if (config.model_method == "eigen") {
-            model_ = face::createEigenFaceRecognizer(config.model_num_components,
-                                                   config.model_threshold);
+            model_ = face::EigenFaceRecognizer::create(config.model_num_components,
+                                                       config.model_threshold);
           } else if (config.model_method == "fisher") {
-            model_ = face::createFisherFaceRecognizer(config.model_num_components,
-                                                    config.model_threshold);
+            model_ = face::FisherFaceRecognizer::create(config.model_num_components,
+                                                        config.model_threshold);
           } else if (config.model_method == "LBPH") {
-            model_ = face::createLBPHFaceRecognizer(config.lbph_radius,
-                                                  config.lbph_neighbors,
-                                                  config.lbph_grid_x,
-                                                  config.lbph_grid_y);
+            model_ = face::LBPHFaceRecognizer::create(config.lbph_radius,
+                                                      config.lbph_neighbors,
+                                                      config.lbph_grid_x,
+                                                      config.lbph_grid_y);
           }
           need_retrain = true;
         } catch (cv::Exception &e) {