noahzhy commited on
Commit
6c5b73a
1 Parent(s): e7388f6

Update license plate recognition title model

Browse files
Files changed (4) hide show
  1. README.md +2 -2
  2. app.py +2 -0
  3. label.names +18 -17
  4. model.tflite +2 -2
README.md CHANGED
@@ -1,7 +1,7 @@
1
  ---
2
- title: KR LPR TF
3
  emoji: 🌍
4
- colorFrom: red
5
  colorTo: green
6
  sdk: gradio
7
  sdk_version: 4.0.0
 
1
  ---
2
+ title: Korean License Plate Recognition
3
  emoji: 🌍
4
+ colorFrom: blue
5
  colorTo: green
6
  sdk: gradio
7
  sdk_version: 4.0.0
app.py CHANGED
@@ -86,6 +86,8 @@ def decode_label(mat, chars) -> str:
86
  # collapse best path (using itertools.groupby), map to chars, join char list to string
87
  best_chars_collapsed = [chars[k] for k, _ in groupby(best_path_indices) if k != len(chars)]
88
  res = ''.join(best_chars_collapsed)
 
 
89
  return res
90
 
91
  _TITLE = '''South Korean License Plate Recognition'''
 
86
  # collapse best path (using itertools.groupby), map to chars, join char list to string
87
  best_chars_collapsed = [chars[k] for k, _ in groupby(best_path_indices) if k != len(chars)]
88
  res = ''.join(best_chars_collapsed)
89
+ # remove space and '_'
90
+ res = res.replace(' ', '').replace('_', '')
91
  return res
92
 
93
  _TITLE = '''South Korean License Plate Recognition'''
label.names CHANGED
@@ -65,20 +65,21 @@
65
  경북
66
  경남
67
  제주
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
-
 
 
65
  경북
66
  경남
67
  제주
68
+ 서울_
69
+ 부산_
70
+ 대구_
71
+ 인천_
72
+ 광주_
73
+ 대전_
74
+ 울산_
75
+ 세종_
76
+ 경기_
77
+ 강원_
78
+ 충북_
79
+ 충남_
80
+ 전북_
81
+ 전남_
82
+ 경북_
83
+ 경남_
84
+ 제주_
85
+
model.tflite CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:a16ab2c9446d3edfa5e620ae418ed68952dd0047d8656eba2001a269341c0f81
3
- size 307488
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4320a180cf69461510c9ab92aa67583b6da3c9a5e5966d3032c64c6f5955e40d
3
+ size 171416