haolinwei / pam-face-authentication

Automatically exported from code.google.com/p/pam-face-authentication
0 stars 0 forks source link

wrong evaluation of biggest face Rect #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

in libfacedetect.c you have

 for ( i = 0; i < faces->total; i++ )
        {
            CvRect* r1 = (CvRect*)cvGetSeqElem(faces, i );
            if (max      >      r1->width*r1->height)
            {
                max=r1->width*r1->height;
                indexFace=i;
            }
        }

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

it should be:

   if (max    <    r1->width*r1->height)

Original issue reported on code.google.com by photonmaster@gmail.com on 27 Jun 2009 at 6:39

GoogleCodeExporter commented 9 years ago
Fixed =) 

Original comment by rohan.a...@gmail.com on 14 Jul 2009 at 7:50