logo       

Re: help with face detection: msg#00248

lib.opencv

Subject: Re: help with face detection


this code is in intel's site with very few modifications it compiles
just right



/////////////////////////////////


IplImage *img="/path/to/image";
CvSeq *faces;
CvMemStorage* storage=cvCreateMemStorage(0);
char * cascade_file=

"/etc/intel/opencv/data/haarcascades/haarcascade_frontalface_default.xml";
cascade = (CvHaarClassifierCascade*)cvLoad(cascade_file,NULL,NULL,NULL);

faces = cvHaarDetectObjects( img,
cascade,storage,
1.2, // scale the cascade by 20% after
each pass
2, // groups of 3 (2+1) or more
neighbor face rectangles are
joined into a single "face", smaller groups are rejected
CV_HAAR_DO_CANNY_PRUNING, // use Canny
edge detector to
reduce number of false alarms
cvSize(0, 0) // start from the minimum
face size allowed by
the particular classifier
);


//now show img with highgui functions

/////////////////////////////////

--- In OpenCV@xxxxxxxxxxxxxxx, "Salman Aslam" <salman.m.aslam@...> wrote:
>
> hi.
> i need help with face detection. i can input video using my webcam,
but now
> i need a simple face detector to get started. the intel open cv
> cvaux097.dll does not export its face detection routines, and i've been
> trying to work with the source code, but i'm getting errors.
>
> would appreciate the help.
>
>
> [Non-text portions of this message have been removed]
>






Change settings: http://www.yahoogroups.com/mygroups, select
Get Emails (get all posts)
Daily Digest (one summary email per day)
Read on the web (read posts on the web only)Or Unsubscribe by mailing
OpenCV-unsubscribe@xxxxxxxxxxxxxxx



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise