Class FaceRecognizer
- Namespace
- OpenCvSharp.Face
- Assembly
- OpenCvSharp.dll
Abstract base class for all face recognition models. All face recognition models in OpenCV are derived from the abstract base class FaceRecognizer, which provides a unified access to all face recongition algorithms in OpenCV.
public abstract class FaceRecognizer : Algorithm, IDisposable
- Inheritance
-
FaceRecognizer
- Implements
- Derived
- Inherited Members
Constructors
Methods
- GetLabelInfo(int)
Gets string information by label. If an unknown label id is provided or there is no label information associated with the specified label id the method returns an empty string.
- GetLabelsByString(string)
Gets vector of labels by string. The function searches for the labels containing the specified sub-string in the associated string info.
- GetThreshold()
threshold parameter accessor - required for default BestMinDist collector
- Predict(InputArray)
Gets a prediction from a FaceRecognizer.
- Predict(InputArray, PredictCollector)
Runs prediction and forwards every evaluated result to a collector.
- Predict(InputArray, out int, out double)
Predicts the label and confidence for a given sample.
- Read(FileNode)
Reads algorithm parameters from a file storage
- Read(string)
Deserializes this object from a given filename.
- SetLabelInfo(int, string)
Sets string info for the specified model's label. The string info is replaced by the provided value if it was set before for the specified label.
- SetThreshold(double)
Sets threshold of model
- Train(IEnumerable<Mat>, IEnumerable<int>)
Trains a FaceRecognizer with given data and associated labels.
- Update(IEnumerable<Mat>, IEnumerable<int>)
Updates a FaceRecognizer with given data and associated labels.
- Write(FileStorage)
Stores algorithm parameters in a file storage
- Write(string)
Serializes this object to a given filename.