No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
: : [CODE]void detectFaces(IplImage *img) { /* detect faces */ CvSeq *faces = cvHaarDetectObjects( img, /* the source image */ cascade_f, /* the face classifier */ storage, /* memory buffer, created with cvMemStorage */ 1.1, 3, 0, /* special parameters, tune for your app */ cvSize(40, 40) /* minimum detection … |
|
I have run this code below but it have a few error..hope someone could help me to solve this problem..tq..:) #include <stdio.h> #include <string.h> #include "cv.h" #include "cvaux.h" #include "highgui.h" int nTrainFaces=0; int nEigens=0; IplImage ** faceImgArr =0; CvMat * personNumTruthMat =0; IplImage * pAvgTrainImg = 0; IplImage ** eigenVector … |
|
i have a prob with my code.. [CODE]#include "ml.h" #include "highgui.h" #include "cv.h" #include <iostream.h> //IplImage* img = new IplImage(mat); //IplImage iplimg = mat; and just use &iplimg wherever you need an IplImage. There is no need for dynamic allocation #define TRAIN_SAMPLE_COUNT 150 #define SIGMA 60 void main( int argc, … |