Commit 1faf23e8 authored by Davis King's avatar Davis King

A minor optimization.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404232
parent b4fbf757
......@@ -212,8 +212,10 @@ namespace dlib
rectangle rect(left, q.top().top_min,
right, q.top().bottom_min);
if (weight > thresh)
results.push_back(rect);
if (weight <= thresh)
break;
results.push_back(rect);
if (results.size() >= max_rects)
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment