예제 #1
0
 //Is not fully implemented. Issues with training Recognizer!!!
 public bool isPersonOfInterest(Mat face)
 {
     int[]    label      = { -1, -1, -1, -1 };
     double[] confidence = { -1.0, -1.0, -1.0, -1, 0 };
     recognizer.predict(face, label, confidence);
     //int prediction = recognizer.predict_label(face);
     Debug.Log(string.Format("Confidence is :{0}, Label is {1} ", confidence[0], label[0]));
     if (confidence[0] >= 0)
     {
         return(true);
     }
     else
     {
         return(false);
     }
 }