Skip to content

Commit

Permalink
Merge pull request openalpr#657 from dhruvmun/master
Browse files Browse the repository at this point in the history
openalpr
  • Loading branch information
matthill committed May 1, 2018
2 parents a511e87 + 0da6114 commit ef6e427
Show file tree
Hide file tree
Showing 3 changed files with 593 additions and 180 deletions.
52 changes: 28 additions & 24 deletions runtime_data/config/in.conf
Original file line number Diff line number Diff line change
@@ -1,45 +1,49 @@
; 30-50, 40-60, 50-70, 60-80
char_analysis_min_pct = 0.30
char_analysis_height_range = 0.20
; One-line indian style style plates

; 35-50; 45-60, 55-70, 65-80, 75-90
char_analysis_min_pct = 0.35
char_analysis_height_range = 0.15
char_analysis_height_step_size = 0.10
char_analysis_height_num_steps = 4
char_analysis_height_num_steps = 5

segmentation_min_speckle_height_percent = 0.3
segmentation_min_box_width_px = 4
segmentation_min_charheight_percent = 0.5;
segmentation_max_segment_width_percent_vs_average = 1.35;
segmentation_min_speckle_height_percent = 0.2
segmentation_min_box_width_px = 5
segmentation_min_charheight_percent = 0.4;
segmentation_max_segment_width_percent_vs_average = 2.0;

plate_width_mm = 520
plate_height_mm = 120
plate_width_mm = 600
plate_height_mm = 130

multiline = 0

char_height_mm = 65
char_width_mm = 30
char_whitespace_top_mm = 24
char_whitespace_bot_mm = 24
char_height_mm = 70
char_width_mm = 40
char_whitespace_top_mm = 25
char_whitespace_bot_mm = 25

template_max_width_px = 120
template_max_height_px = 60
template_max_width_px = 184
template_max_height_px = 45

; Higher sensitivity means less lines
plateline_sensitivity_vertical = 25
plateline_sensitivity_horizontal = 45
plateline_sensitivity_vertical = 18
plateline_sensitivity_horizontal = 55

; Regions smaller than this will be disqualified
min_plate_size_width_px = 70
min_plate_size_height_px = 35
min_plate_size_width_px = 95
min_plate_size_height_px = 20

; Results with fewer or more characters will be discarded
postprocess_min_characters = 4
postprocess_max_characters = 10
postprocess_min_characters = 10
postprocess_max_characters = 20

ocr_language = lin
;ocr_language = lin
ocr_language = lus

; Override for postprocess letters/numbers regex.
postprocess_regex_letters = [A-Z]
postprocess_regex_numbers = [0-9]


; Whether the plate is always dark letters on light background, light letters on dark background, or both
; value can be either always, never, or auto
invert = auto
invert = auto
4 changes: 4 additions & 0 deletions runtime_data/postprocess/in.patterns
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
in @@##@@####
in @@##@####
in @@#@@####
in @@#@####
Loading

0 comments on commit ef6e427

Please sign in to comment.