Fixed bug: filter not recognizing large ellipses

This commit is contained in:
Jason 2018-08-31 11:07:12 +09:00 committed by GitHub
parent a7be87829b
commit 6f679770d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -323,7 +323,7 @@ bool pupilAreaFitRR(Mat &gray, RotatedRect &rr, vector<Point2f> &allPtsReturn,
current.size.width < 25 ||
current.size.width > maxSize ||
current.size.height > maxSize ||
current.size.height + current.size.width > 400) {
current.size.height + current.size.width > 2 * maxSize) {
isGood = false;
}