mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-05 23:06:56 +08:00
Fixed a bug where minimum character height wasn't being used properly
This commit is contained in:
@@ -66,7 +66,7 @@ char_analysis_height_step_size = 0.10
|
|||||||
char_analysis_height_num_steps = 5
|
char_analysis_height_num_steps = 5
|
||||||
|
|
||||||
segmentation_min_box_width_px = 4
|
segmentation_min_box_width_px = 4
|
||||||
segmentation_min_charheight_percent = 0.3;
|
segmentation_min_charheight_percent = 0.5;
|
||||||
segmentation_max_segment_width_percent_vs_average = 1.35;
|
segmentation_max_segment_width_percent_vs_average = 1.35;
|
||||||
|
|
||||||
plate_width_mm = 304.8
|
plate_width_mm = 304.8
|
||||||
@@ -98,8 +98,8 @@ char_analysis_height_range = 0.15
|
|||||||
char_analysis_height_step_size = 0.10
|
char_analysis_height_step_size = 0.10
|
||||||
char_analysis_height_num_steps = 6
|
char_analysis_height_num_steps = 6
|
||||||
|
|
||||||
segmentation_min_box_width_px = 8
|
segmentation_min_box_width_px = 5
|
||||||
segmentation_min_charheight_percent = 0.5;
|
segmentation_min_charheight_percent = 0.4;
|
||||||
segmentation_max_segment_width_percent_vs_average = 2.0;
|
segmentation_max_segment_width_percent_vs_average = 2.0;
|
||||||
|
|
||||||
plate_width_mm = 520
|
plate_width_mm = 520
|
||||||
|
@@ -514,7 +514,7 @@ void CharacterSegmenter::cleanCharRegions(vector<Mat> thresholds, vector<Rect> c
|
|||||||
const float MIN_SPECKLE_HEIGHT_PERCENT = 0.13;
|
const float MIN_SPECKLE_HEIGHT_PERCENT = 0.13;
|
||||||
const float MIN_SPECKLE_WIDTH_PX = 3;
|
const float MIN_SPECKLE_WIDTH_PX = 3;
|
||||||
const float MIN_CONTOUR_AREA_PERCENT = 0.1;
|
const float MIN_CONTOUR_AREA_PERCENT = 0.1;
|
||||||
const float MIN_CONTOUR_HEIGHT_PERCENT = 0.60;
|
const float MIN_CONTOUR_HEIGHT_PERCENT = config->segmentationMinCharHeightPercent;
|
||||||
|
|
||||||
Mat mask = getCharBoxMask(thresholds[0], charRegions);
|
Mat mask = getCharBoxMask(thresholds[0], charRegions);
|
||||||
|
|
||||||
@@ -706,7 +706,7 @@ vector<Rect> CharacterSegmenter::filterMostlyEmptyBoxes(vector<Mat> thresholds,
|
|||||||
// clear all data for every box #3.
|
// clear all data for every box #3.
|
||||||
|
|
||||||
//const float MIN_AREA_PERCENT = 0.1;
|
//const float MIN_AREA_PERCENT = 0.1;
|
||||||
const float MIN_CONTOUR_HEIGHT_PERCENT = 0.65;
|
const float MIN_CONTOUR_HEIGHT_PERCENT = config->segmentationMinCharHeightPercent;
|
||||||
|
|
||||||
Mat mask = getCharBoxMask(thresholds[0], charRegions);
|
Mat mask = getCharBoxMask(thresholds[0], charRegions);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user