2020-06-25 23:02:12 -0600 | received badge | ● Taxonomist |
2019-12-24 01:05:58 -0600 | received badge | ● Popular Question (source) |
2012-10-08 01:44:28 -0600 | received badge | ● Student (source) |
2012-08-24 05:17:54 -0600 | commented question | Online Learning and Confidence with cv::FaceRecognizer I have even tried changing the thresholds ... anything higher than 0 gives the same problem and 0,as expected gives -1 label |
2012-08-24 05:00:09 -0600 | received badge | ● Editor (source) |
2012-08-24 04:58:55 -0600 | asked a question | Online Learning and Confidence with cv::FaceRecognizer platform: Ubuntu 12.04 LTS 64bit OpenCV version: 2.4.2 I am trying to make a program that captures face (say user 1) using haarcascade.I then run the crop the face are of image and add it to a vector<mat>.I then add diff faces(say user 2) using the same method to the same vector. But I add different labels (say 0 and 1) for the 2 different cases. After some kind of keyboard interrupt,I train the FaceRecognizer using train() with both the vector (Mat and int). From the next frame onwards I take the face area and try to predict the label. The code is compiling and running fine.But the outputs are a little irritating. It always outputs the same label( on more inspection I found, the label that I "push_back" for the very first frame) and the confidence is always 0. What I am basically trying to achieve is a kind of online learning FaceRecognizer. But Since the predicted labels are not correct,I assume I have done something wrong. Is online learning even possible with PCA/LDA/LBPH?? I have tried using the same model as well as saving and opening with another model. Below is my code.Am I doing something wrong??Any help will be much appreciated!!! Thanks (more) |