From 6f4c419a5002348d40d7b44df8e8b17ef71fe2a2 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Fri, 24 Jul 2015 04:32:03 -0400 Subject: [PATCH] Changed a hardcoded value to the config parameter --- src/openalpr/segmentation/charactersegmenter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openalpr/segmentation/charactersegmenter.cpp b/src/openalpr/segmentation/charactersegmenter.cpp index d63cc01..7a14956 100644 --- a/src/openalpr/segmentation/charactersegmenter.cpp +++ b/src/openalpr/segmentation/charactersegmenter.cpp @@ -259,7 +259,7 @@ namespace alpr vector CharacterSegmenter::getBestCharBoxes(Mat img, vector charBoxes, float avgCharWidth) { - float MAX_SEGMENT_WIDTH = avgCharWidth * 1.65; + float MAX_SEGMENT_WIDTH = avgCharWidth * config->segmentationMaxCharWidthvsAverage; // This histogram is based on how many char boxes (from ALL of the many thresholded images) are covering each column // Makes a sort of histogram from all the previous char boxes. Figures out the best fit from that.