Bartzi / see

Code for the AAAI 2018 publication "SEE: Towards Semi-Supervised End-to-End Scene Text Recognition"
GNU General Public License v3.0
574 stars 147 forks source link

ctc char map #42

Closed rezha130 closed 6 years ago

rezha130 commented 6 years ago

Hi @Bartzi

I'm still not understading how to make ctc_char_map.json

This is list of my actual characters that model need to recognize

ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 1234567890 :./,

What is ctc_char_map.json for this list of char?

Thanks

Bartzi commented 6 years ago

the ctc_char_map is a mapping of a class (predicted by the network) to the Unicode/ASCII represenation of a character.

Lets say that your first class is 0 and you want to give it the following semantic meaning: Class 0 is the character A. Your char map should look like this: {0: 65}, because ord('A') is 65.

FelixSchwarz commented 6 years ago

In #39 I added a trivial script which takes the characters as parameters and outputs JSON usable for the char_map.