Adding New Characeters To Text Recog models #1499
-
I am currenly using CRNN's text recog model, but it doesnt have a few special charecters which I need such as ("?","/") and a few others Thank you so much for the impressive framework though |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Similar to #1488, it depends on the version that you're using. MMOCR 0.xYou can control the supported character set by the parameter mmocr/configs/_base_/recog_models/crnn.py Lines 1 to 2 in 3188e53 We have a list of pre-defined DICTs, where mmocr/mmocr/models/textrecog/convertors/base.py Lines 24 to 26 in 37833ad MMOCR 1.0It can be controlled via the mmocr/configs/textrecog/crnn/_base_crnn_mini-vgg.py Lines 1 to 4 in f30c16c MMOCR 1.0 has provided some commonly used dictionary files, including english_digits_symbols that works for your case. |
Beta Was this translation helpful? Give feedback.
Similar to #1488, it depends on the version that you're using.
MMOCR 0.x
You can control the supported character set by the parameter
dict_type
here:mmocr/configs/_base_/recog_models/crnn.py
Lines 1 to 2 in 3188e53
We have a list of pre-defined DICTs, where
DICT90
shall satisfy your requirement:mmocr/mmocr/models/textrecog/convertors/base.py
Lines 24 to 26 in 37833ad
MMOCR 1.0
It can be controlled via the
dict_file
parameter:…