Emgu.CV.FaceRecognizer.Predict C# (CSharp) Method

Predict() public method

Predict the label of the image
public Predict ( IImage image ) : PredictionResult
image IImage The image where prediction will be based on
return PredictionResult
        public PredictionResult Predict(IImage image)
        {
            int label = -1;
             double distance = -1;
             CvInvoke.CvFaceRecognizerPredict(_ptr, image.Ptr, ref label, ref distance);
             return new PredictionResult() { Label = label, Distance = distance };
        }