mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 06:26:58 +08:00
Update detectormorph.cpp
This commit is contained in:
@@ -122,7 +122,7 @@ namespace alpr
|
|||||||
int numBlobs = plateBlobs.size();
|
int numBlobs = plateBlobs.size();
|
||||||
|
|
||||||
//If too much or too little might not be a true plate
|
//If too much or too little might not be a true plate
|
||||||
if (numBlobs < 4 || numBlobs > 20) continue;
|
if (numBlobs < 3 || numBlobs > 20) continue;
|
||||||
|
|
||||||
PlateRegion PlateReg;
|
PlateRegion PlateReg;
|
||||||
|
|
||||||
@@ -148,7 +148,7 @@ namespace alpr
|
|||||||
int max = 100 * aspect * 100; // maximum area
|
int max = 100 * aspect * 100; // maximum area
|
||||||
//Get only patchs that match to a respect ratio.
|
//Get only patchs that match to a respect ratio.
|
||||||
float rmin = 3.0;
|
float rmin = 3.0;
|
||||||
float rmax = 6.0;
|
float rmax = 7.0;
|
||||||
|
|
||||||
int area = mr.size.height * mr.size.width;
|
int area = mr.size.height * mr.size.width;
|
||||||
float r = (float)mr.size.width / (float)mr.size.height;
|
float r = (float)mr.size.width / (float)mr.size.height;
|
||||||
|
Reference in New Issue
Block a user