mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 16:27:07 +08:00
Increased expansion of detected region by 5%
This commit is contained in:
@@ -39,8 +39,8 @@ void LicensePlateCandidate::recognize()
|
|||||||
|
|
||||||
this->confidence = 0;
|
this->confidence = 0;
|
||||||
|
|
||||||
int expandX = round(this->plateRegion.width * 0.15);
|
int expandX = round(this->plateRegion.width * 0.20);
|
||||||
int expandY = round(this->plateRegion.height * 0.10);
|
int expandY = round(this->plateRegion.height * 0.15);
|
||||||
// expand box by 15% in all directions
|
// expand box by 15% in all directions
|
||||||
Rect expandedRegion = expandRect( this->plateRegion, expandX, expandY, frame.cols, frame.rows) ;
|
Rect expandedRegion = expandRect( this->plateRegion, expandX, expandY, frame.cols, frame.rows) ;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user