Skip to content

Adding New Characeters To Text Recog models #1499

Discussion options

You must be logged in to vote

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:

label_convertor = dict(
type='CTCConvertor', dict_type='DICT36', with_unknown=False, lower=True)

We have a list of pre-defined DICTs, where DICT90 shall satisfy your requirement:

DICT90=tuple('0123456789abcdefghijklmnopqrstuvwxyz'
'ABCDEFGHIJKLMNOPQRSTUVWXYZ!"#$%&\'()'
'*+,-./:;<=>?@[\\]_`~'),

MMOCR 1.0

It can be controlled via the dict_file parameter:

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@TheSeriousProgrammer
Comment options

@TheSeriousProgrammer
Comment options

Answer selected by TheSeriousProgrammer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants