Skip to content

Commit

Permalink
Added Australia training data
Browse files Browse the repository at this point in the history
  • Loading branch information
matthill committed Jun 5, 2015
1 parent 509e2a0 commit e55c4a7
Show file tree
Hide file tree
Showing 6 changed files with 1,753 additions and 0 deletions.
32 changes: 32 additions & 0 deletions runtime_data/config/au.conf
@@ -0,0 +1,32 @@
; 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 = 5

segmentation_min_box_width_px = 4
segmentation_min_charheight_percent = 0.4;
segmentation_max_segment_width_percent_vs_average = 1.6;

plate_width_mm = 372
plate_height_mm = 135

multiline = 0

char_height_mm = 82
char_width_mm = 45
char_whitespace_top_mm = 18
char_whitespace_bot_mm = 30

template_max_width_px = 165
template_max_height_px = 60

; Higher sensitivity means less lines
plateline_sensitivity_vertical = 22
plateline_sensitivity_horizontal = 50

; Regions smaller than this will be disqualified
min_plate_size_width_px = 85
min_plate_size_height_px = 28

ocr_language = lau
33 changes: 33 additions & 0 deletions runtime_data/config/auwide.conf
@@ -0,0 +1,33 @@

; 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 = 5

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 = 110

multiline = 0

char_height_mm = 80
char_width_mm = 53
char_whitespace_top_mm = 10
char_whitespace_bot_mm = 10

template_max_width_px = 184
template_max_height_px = 46

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

; Regions smaller than this will be disqualified
min_plate_size_width_px = 100
min_plate_size_height_px = 20

ocr_language = lau
Binary file added runtime_data/ocr/tessdata/lau.traineddata
Binary file not shown.
14 changes: 14 additions & 0 deletions runtime_data/postprocess/au.patterns
@@ -0,0 +1,14 @@
act [Y]@@##@
act [T]#####
nsw @@##@@
nsw @@@##@
nsw [T][AR]##@@
nt @@##@@
nt [T]@####
qld ###@@@
sa [S]###@@@
tas @##@@
vic @@@###
vic #@@#@@
vic @#####
wa [1]@@@###

1 comment on commit e55c4a7

@sivanatad
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Matt, did you use any NSW plates in this training? Do you know what is the accuracy rate for NSW plates?

Please sign in to comment.