Ask Your Question

meherfrioui's profile - activity

2014-05-15 10:53:12 -0600 answered a question unstable face recognition using OpenCV

hello there can you explain methode canpredict(Mat m)

2014-04-27 18:43:13 -0600 answered a question unstable face recognition using OpenCV

Hello :) please explain me this methode

public String predict(Mat m) {

int n[] = new int[1];
double p[] = new double[1];
IplImage ipl = MatToIplImage(m,WIDTH, HEIGHT);

faceRecognizer.predict(ipl, n, p);

if (n[0]!=-1)
 mProb=(int)p[0];
else
    mProb=-1;
    if (n[0] != -1)
    return labelsFile.get(n[0]);
else
    return "Unkown";

}