mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-05 22:56:58 +08:00
Changed a hardcoded value to the config parameter
This commit is contained in:
@@ -259,7 +259,7 @@ namespace alpr
|
|||||||
|
|
||||||
vector<Rect> CharacterSegmenter::getBestCharBoxes(Mat img, vector<Rect> charBoxes, float avgCharWidth)
|
vector<Rect> CharacterSegmenter::getBestCharBoxes(Mat img, vector<Rect> 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
|
// 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.
|
// Makes a sort of histogram from all the previous char boxes. Figures out the best fit from that.
|
||||||
|
Reference in New Issue
Block a user