mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-07 01:42:49 +08:00
Reduce the times for this loop
After the modification, I think the loop will break if pxLeniency is large enough.
This commit is contained in:
@@ -308,7 +308,7 @@ namespace alpr
|
|||||||
{
|
{
|
||||||
vector<Rect> validBoxes;
|
vector<Rect> validBoxes;
|
||||||
|
|
||||||
int pxLeniency = 0;
|
int pxLeniency = row;
|
||||||
vector<Rect> allBoxes = convert1DHitsToRect(histogram.get1DHits(pxLeniency), top, bottom);
|
vector<Rect> allBoxes = convert1DHitsToRect(histogram.get1DHits(pxLeniency), top, bottom);
|
||||||
|
|
||||||
if (this->config->debugCharSegmenter)
|
if (this->config->debugCharSegmenter)
|
||||||
|
Reference in New Issue
Block a user