Closed PonteIneptique closed 6 years ago
It took me a bit of time but I did it.
from tf_crnn.hlp.alphabet_helpers import get_alphabet_units_form_csv, make_json_lookup_alphabet
from json import dump
with open("/path/to/chars.json", "w") as f:
dump(make_json_lookup_alphabet(get_alphabet_units_form_csv("/your/file/with/one/char/a/line.csv")), f)
I am gonna run the first test on the data I have but there is no documentation about how I should recreate a similar file as https://github.com/solivr/tf-crnn/blob/master/tf_crnn/data/lookup_letters_digits_symbols.json and of course I am already running into an error :) :
Any hint how it should be built would be greatly appreciated. I'll probably add it to my ocropus script :)