Skip to content

Commit 204e545

Browse files
committed
rm clp -> add submodule AgentCLPR
1 parent 9271773 commit 204e545

File tree

5 files changed

+10
-102
lines changed

5 files changed

+10
-102
lines changed

.gitmodules

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
[submodule "labeling"]
2-
path = labeling
1+
[submodule "AgentOCRLabeling"]
2+
path = AgentOCRLabeling
33
url = https://github.com/AgentMaker/AgentOCRLabeling/
4+
5+
[submodule "AgentCLPR"]
6+
path = AgentCLPR
7+
url = https://github.com/AgentMaker/AgentCLPR/

README.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,7 @@
6262
[[[178.0, 691.0], [709.0, 683.0], [709.0, 717.0], [178.0, 724.0]], ['눈 앞이 아른아른 거리는 잘 생긴 얼굴 자꾸', 0.8839521408081055]]
6363
[[[225.0, 739.0], [658.0, 738.0], [658.0, 770.0], [225.0, 771.0]], ['귀에 냄도는 크의 측촉한 옥소리 예', 0.8728228211402893]]
6464

65-
* 特色功能 OCR:
66-
* 中国车牌识别:
6765

68-
![](https://ai-studio-static-online.cdn.bcebos.com/568f2a7e0e75407a8bbb429a929c358acc37cf0bd2254a11aba5971d59ff1e67)
69-
70-
[[[[213.0, 239.0], [505.0, 231.0], [507.0, 308.0], [215.0, 316.0]], ['沪AD00806', 0.9884898662567139]]]
71-
72-
![](https://ai-studio-static-online.cdn.bcebos.com/7eb3b2e7765c44a290b1931587fc3f407e3eb1b246a04eea9d3d2bc2f07e5c1f)
73-
74-
[[[[71.0, 190.0], [369.0, 190.0], [369.0, 279.0], [71.0, 279.0]], ['苏E05EV8', 0.9944847822189331]]]
7566
## 使用指南
7667
* Python Package:
7768

@@ -159,9 +150,3 @@
159150
|拉丁文|la|
160151
|西里尔文|cy|
161152
|梵文|de|
162-
163-
* 特色功能模型配置:
164-
165-
| 功能 | 缩写 |
166-
|:-:|:-:|
167-
|中国车牌识别|clp|

agentocr/infer/utility.py

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@
4343
'https://bj.bcebos.com/v1/ai-studio-online/a85db324f5c54a618712ef670fe6a3a5b4dcf68630744b16a322141c577bf39b?responseContentDisposition=attachment%3B%20filename%3Den_mul_m_det.onnx',
4444
'ch_mul_v2_c_det':
4545
'https://bj.bcebos.com/v1/ai-studio-online/485da521bb90456b86469443a4bc6ad25f0e7db1aa624a54b4bc9d2f1dc9db67?responseContentDisposition=attachment%3B%20filename%3Dch_mul_v2_c_det.onnx',
46-
'clp_m_det':
47-
'https://bj.bcebos.com/v1/ai-studio-online/fecf0ac4d0f34b26a1de6663e260a8aed3b88c1644fd4ee5afb7962b118d76ff?responseContentDisposition=attachment%3B%20filename%3Dclp_m_det.onnx',
48-
},
46+
},
4947
'rec': {
5048
'ch_m_rec':
5149
'https://bj.bcebos.com/v1/ai-studio-online/78a4d8d082e347798c0b46962c74b7a96aa545c79d2642999aa7a138dc0f3793?responseContentDisposition=attachment%3B%20filename%3Dch_m_rec.onnx',
@@ -77,8 +75,6 @@
7775
'https://bj.bcebos.com/v1/ai-studio-online/68b2ee780b2f4017be955fcb226091e4e557935898004e899614709e9874cc16?responseContentDisposition=attachment%3B%20filename%3Den_m_rec.onnx',
7876
'de_m_rec':
7977
'https://bj.bcebos.com/v1/ai-studio-online/d4e698603f6243e98bbf8b7e28585d168e831d6bd852426cb1cbe11a7c487c71?responseContentDisposition=attachment%3B%20filename%3Dde_m_rec.onnx',
80-
'clp_v2_c_rec':
81-
'https://bj.bcebos.com/v1/ai-studio-online/b591fa763ef046559d2f3fce73ca51b35359c3a6c22e4972817daec2902cde69?responseContentDisposition=attachment%3B%20filename%3Dclp_v2_c_rec.onnx',
8278
'ch_v2_c_rec':
8379
'https://bj.bcebos.com/v1/ai-studio-online/365e482fd2f94052924bfe4f5d44aac34866850e00f74625a716fb928da32163?responseContentDisposition=attachment%3B%20filename%3Dch_v2_c_rec.onnx',
8480
}
@@ -100,7 +96,6 @@
10096
'en': 'english',
10197
'de': 'devanagari',
10298
'la': 'latin',
103-
'clp': 'chinese_license_plate',
10499
}
105100

106101
def get_config(config):
@@ -112,12 +107,10 @@ def get_config(config):
112107
if config in configs_dict:
113108
if config in ['ch', 'cht']:
114109
det_model = 'ch_mul_v2_c_det'
115-
elif config in ['clp']:
116-
det_model = 'clp_m_det'
117110
else:
118111
det_model = 'en_mul_m_det'
119112

120-
if config in ['ch', 'clp']:
113+
if config in ['ch']:
121114
rec_model = '%s_v2_c_rec' % config
122115
else:
123116
rec_model = "%s_m_rec" % config
@@ -129,9 +122,7 @@ def get_config(config):
129122
"rec_model": rec_model,
130123
"rec_char_dict_path": char_dict,
131124
}
132-
133-
if config == 'clp':
134-
kwargs['det_db_unclip_ratio'] = 1.0
125+
135126
else:
136127
raise ValueError('Please check your config.')
137128

agentocr/resources/char_dicts/clp_dict.txt

Lines changed: 0 additions & 72 deletions
This file was deleted.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def requirements():
2020
],
2121
include_package_data=True,
2222
entry_points={"console_scripts": ["agentocr = agentocr:command"]},
23-
version='2.0.0b2',
23+
version='2.0.0',
2424
install_requires=requirements(),
2525
license='Apache License 2.0',
2626
description='An easy-to-use OCR package with multilingual support.',

0 commit comments

Comments
 (0)