Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

faceDetector.cpp source review error #132

Open
GoogleCodeExporter opened this issue Mar 21, 2016 · 0 comments
Open

faceDetector.cpp source review error #132

GoogleCodeExporter opened this issue Mar 21, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link


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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant