From 01095bd4ddd3a07bb23fa512443f21e0281fb71d Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Sun, 6 Apr 2014 11:13:46 -0500 Subject: [PATCH] Increased expansion of detected region by 5% --- src/openalpr/licenseplatecandidate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openalpr/licenseplatecandidate.cpp b/src/openalpr/licenseplatecandidate.cpp index 6335516..c4bf089 100644 --- a/src/openalpr/licenseplatecandidate.cpp +++ b/src/openalpr/licenseplatecandidate.cpp @@ -39,8 +39,8 @@ void LicensePlateCandidate::recognize() this->confidence = 0; - int expandX = round(this->plateRegion.width * 0.15); - int expandY = round(this->plateRegion.height * 0.10); + int expandX = round(this->plateRegion.width * 0.20); + int expandY = round(this->plateRegion.height * 0.15); // expand box by 15% in all directions Rect expandedRegion = expandRect( this->plateRegion, expandX, expandY, frame.cols, frame.rows) ;