43
43
'https://bj.bcebos.com/v1/ai-studio-online/a85db324f5c54a618712ef670fe6a3a5b4dcf68630744b16a322141c577bf39b?responseContentDisposition=attachment%3B%20filename%3Den_mul_m_det.onnx' ,
44
44
'ch_mul_v2_c_det' :
45
45
'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
+ },
49
47
'rec' : {
50
48
'ch_m_rec' :
51
49
'https://bj.bcebos.com/v1/ai-studio-online/78a4d8d082e347798c0b46962c74b7a96aa545c79d2642999aa7a138dc0f3793?responseContentDisposition=attachment%3B%20filename%3Dch_m_rec.onnx' ,
77
75
'https://bj.bcebos.com/v1/ai-studio-online/68b2ee780b2f4017be955fcb226091e4e557935898004e899614709e9874cc16?responseContentDisposition=attachment%3B%20filename%3Den_m_rec.onnx' ,
78
76
'de_m_rec' :
79
77
'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' ,
82
78
'ch_v2_c_rec' :
83
79
'https://bj.bcebos.com/v1/ai-studio-online/365e482fd2f94052924bfe4f5d44aac34866850e00f74625a716fb928da32163?responseContentDisposition=attachment%3B%20filename%3Dch_v2_c_rec.onnx' ,
84
80
}
100
96
'en' : 'english' ,
101
97
'de' : 'devanagari' ,
102
98
'la' : 'latin' ,
103
- 'clp' : 'chinese_license_plate' ,
104
99
}
105
100
106
101
def get_config (config ):
@@ -112,12 +107,10 @@ def get_config(config):
112
107
if config in configs_dict :
113
108
if config in ['ch' , 'cht' ]:
114
109
det_model = 'ch_mul_v2_c_det'
115
- elif config in ['clp' ]:
116
- det_model = 'clp_m_det'
117
110
else :
118
111
det_model = 'en_mul_m_det'
119
112
120
- if config in ['ch' , 'clp' ]:
113
+ if config in ['ch' ]:
121
114
rec_model = '%s_v2_c_rec' % config
122
115
else :
123
116
rec_model = "%s_m_rec" % config
@@ -129,9 +122,7 @@ def get_config(config):
129
122
"rec_model" : rec_model ,
130
123
"rec_char_dict_path" : char_dict ,
131
124
}
132
-
133
- if config == 'clp' :
134
- kwargs ['det_db_unclip_ratio' ] = 1.0
125
+
135
126
else :
136
127
raise ValueError ('Please check your config.' )
137
128
0 commit comments