switchkiller / pam-face-authentication

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

faceDetector.cpp source review error #132

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

in faceDetector.cpp ,sth is wrong?
1.after "if (max0<(r->width*r->height))" can see ";".
  it is wrong.
2.if you change it ,line 6 is also need modify.

source in faceDetector.cpp  

 1       int maxI=-1;
 2       int max0=0;
 3
 4       for ( i = 0; i < (faces ? faces->total : 0); i++ )
 5       {
 6           CvRect* r = (CvRect*)cvGetSeqElem( faces, maxI);
 7
 8           if (max0<(r->width*r->height));
            {
                max0=(r->width*r->height);
                maxI=i;
            }
        }

Original issue reported on code.google.com by pengro...@gmail.com on 30 Jul 2014 at 5:01