weinman / cnn_lstm_ctc_ocr

Tensorflow-based CNN+LSTM trained with CTC-loss for OCR
GNU General Public License v3.0
498 stars 170 forks source link

lexicon.txt'function? #30

Closed gydlcc closed 6 years ago

gydlcc commented 6 years ago

@weinman why we use lexicon.txt? what is lexicon.txt's function? what does that for?

weinman commented 6 years ago

The option to use a lexicon was introduced for a customized lexicon-based beam-search decoder. This work is still ongoing and will be better documented here once the integration is finalized.

gydlcc commented 6 years ago

oh oh , thank you pretty much for your answer!

gydlcc commented 6 years ago

@weinman eh if my dataset is gray level image which means the color channel is 1 rather than 3, is still this program work? or should i change somewhere?

weinman commented 6 years ago

This is a separate question of no relation to a lexicon.

Nevertheless, yes, the model works on grayscale, though changing it for color is trivial.

gydlcc commented 6 years ago

yeah, thank you very much