From ddce0d9df84d538fe2c347ca19f28b8b8c84e53f Mon Sep 17 00:00:00 2001 From: Yuki Furuta Date: Tue, 4 Oct 2016 18:24:28 +0200 Subject: [PATCH] [face.hpp] add virtual method setThreshold for FaceRecognizer class --- modules/face/include/opencv2/face.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/face/include/opencv2/face.hpp b/modules/face/include/opencv2/face.hpp index 57e15a3ed..a90a1da61 100644 --- a/modules/face/include/opencv2/face.hpp +++ b/modules/face/include/opencv2/face.hpp @@ -359,6 +359,8 @@ public: CV_WRAP virtual std::vector getLabelsByString(const String& str) const; /** @brief threshold parameter accessor - required for default BestMinDist collector */ virtual double getThreshold() const = 0; + /** @brief Sets threshold of model */ + virtual void setThreshold(double val) = 0; protected: // Stored pairs "label id - string info" std::map _labelsInfo;