Ask Your Question

Mister004's profile - activity

2012-09-18 14:02:55 -0600 asked a question RtlWerpReportException

Hello, sry for the repost but my question was not really answered and now nobody would have seen it anymore!

I'm currently trying to become familiar with OpenCV 2.4.2 but even the easiest programs just don't want to work :(

My small code:

#include "opencv2/core/core.hpp"
#include "opencv2/contrib/contrib.hpp"
#include "opencv2/highgui/highgui.hpp"

#include <iostream>
#include <fstream>
#include <sstream>

using namespace cv;
using namespace std;

int main(int argc, const char *argv[]) {

vector<Mat> faces;
vector<int> labels;

//Lade Bilder in Gesichts-Vector
faces.push_back(imread("path/person0_0.jpg", CV_LOAD_IMAGE_GRAYSCALE)); labels.push_back(0);
faces.push_back(imread("path/person0_1.jpg", CV_LOAD_IMAGE_GRAYSCALE)); labels.push_back(0);
faces.push_back(imread("path/person0_2.jpg", CV_LOAD_IMAGE_GRAYSCALE)); labels.push_back(0);
faces.push_back(imread("path/person0_3.jpg", CV_LOAD_IMAGE_GRAYSCALE)); labels.push_back(0);

//Erstelle einen FaceRecognizer
Ptr<FaceRecognizer> faceRec = createFisherFaceRecognizer();
//"trainiere" die Gesichter in den FaceRecognizer
faceRec->train(faces, labels);

return 0;

}

Eveything works until this line: faceRec->train(faces, labels);

Error Message: Error - RtlWerpReportException failed with status code :-1073741823. Will try to launch the process directly

I already looked into the API and found a example about face recognition. The example has exactly the same syntax as I have but it doesn't work. Has anybody an idea what's wrong with my code?

Further information: OS: Windows 7 64bit IDE: Qt

Greetings Mister004

2012-09-17 23:33:39 -0600 received badge  Student (source)
2012-09-17 14:50:42 -0600 commented answer FaceRecognition train

Ok first thanks for the answer!

  1. No it does not
  2. I use Qt
  3. Operating system: Windows 7 64bit

Includes: include "opencv2/core/core.hpp" include "opencv2/contrib/contrib.hpp" include "opencv2/highgui/highgui.hpp"

using namespace cv; using namespace std;

The rest is the same as above

2012-09-17 14:50:09 -0600 answered a question FaceRecognition train

Ok first thanks for the answer!

  1. No it does not
  2. I use Qt
  3. Operating system: Windows 7 64bit

Code: include "opencv2/core/core.hpp" include "opencv2/contrib/contrib.hpp" include "opencv2/highgui/highgui.hpp"

using namespace cv; using namespace std;

int main(int argc, const char *argv[]) {

vector<Mat> faces;
vector<int> labels;

//Lade Bilder in Gesichts-Vector
faces.push_back(imread("path/to/person0_0.jpg", CV_LOAD_IMAGE_GRAYSCALE));
labels.push_back(0);
faces.push_back(imread("path/to/person0_1.jpg", CV_LOAD_IMAGE_GRAYSCALE));
labels.push_back(0);
faces.push_back(imread("path/to/person0_2.jpg", CV_LOAD_IMAGE_GRAYSCALE));
labels.push_back(0);
faces.push_back(imread("path to/person0_3.jpg", CV_LOAD_IMAGE_GRAYSCALE));
labels.push_back(0);

//Erstelle einen FaceRecognizer
Ptr<FaceRecognizer> faceRec = createFisherFaceRecognizer();
//"trainiere" die Gesichter in den FaceRecognizer
faceRec->train(faces, labels);

waitKey(0);
return(0);

}

Sry for the bad format but i didn't find a way to properly include a code.

2012-09-17 10:29:41 -0600 asked a question FaceRecognition train

Hello!

I'm currently trying to become familiar with OpenCV 2.4.2 but even the easiest programs just don't want to work :(

My small code:

int main(int argc, const char *argv[]) {

vector<Mat> faces;
vector<int> labels;

//Lade Bilder in Gesichts-Vector
faces.push_back(imread("path/person0_0.jpg", CV_LOAD_IMAGE_GRAYSCALE)); labels.push_back(0);
faces.push_back(imread("path/person0_1.jpg", CV_LOAD_IMAGE_GRAYSCALE)); labels.push_back(0);
faces.push_back(imread("path/person0_2.jpg", CV_LOAD_IMAGE_GRAYSCALE)); labels.push_back(0);
faces.push_back(imread("path/person0_3.jpg", CV_LOAD_IMAGE_GRAYSCALE)); labels.push_back(0);

//Erstelle einen FaceRecognizer
Ptr<FaceRecognizer> faceRec = createFisherFaceRecognizer();
//"trainiere" die Gesichter in den FaceRecognizer
faceRec->train(faces, labels);

return 0;

}

Eveything works until this line: faceRec->train(faces, labels);

Error Message: Error - RtlWerpReportException failed with status code :-1073741823. Will try to launch the process directly

I already looked into the API and found a example about face recognition. The example has exactly the same syntax as I have but it doesn't work. Has anybody an idea what's wrong with my code?

Greetings Mister004