Ask Your Question
0

What values are stored in .xml file that comes from FaceRecognizer::save ?

asked 2017-04-24 06:51:38 -0600

williamluisan gravatar image

Hello guys, i'm a newbie in OpenCV and now i'm making a project about Face Recognition with Eigenface algorithm. I got confused about what value are stored in .xml file when i use

faceRecognizer = createEigenFaceRecognizer();
faceRecognizer->train(faceData, faceLabels);
faceRecognizer->save("file_eigenfaces.xml");

is it the eigenfaces values (eigenvectors, eigenvalues, mean) stored in "file_eigenfaces.xml" ?


I'hv been read the explanation about FaceRecognizer::save at OpenCV docs (sorry, can't embed that link) but it doesn't answer my question, because it explain that it "saves a FaceRecognizer and its model state". What is that mean ?.


Thank you in advance for read my question, hope somebody can help me to understand this, sorry for newbie and bad english :D . Regards, William

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2017-04-24 07:20:13 -0600

berak gravatar image

updated 2017-04-24 07:24:01 -0600

it's actually quite, like you expected.

for the eigen and fisherfaces model:

  • num_components (to retain from the pca)
  • the mean image
  • the (pca-reduced set of) eigenvectors (multiplied by the lda eigenvec mat for fisherfaces)
  • the eigenvalues (though they are never used in the algorithm)
  • the projected train images
  • the class labels
  • the labels_info (name - id pairs)

for LBPH:

  • radius, neighbours, gridx, gridy (the lbp params, given in the constructor)
  • the precomputed lbp-histograms from the train images
  • the class labels
  • the labels_info (name - id pairs)
edit flag offensive delete link more

Comments

thank u for your answer Mr. Berak. It's helping me so much. Regards (y)

williamluisan gravatar imagewilliamluisan ( 2017-04-24 08:07:49 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2017-04-24 06:51:38 -0600

Seen: 369 times

Last updated: Apr 24 '17