Search code examples
tensorflowdeep-learningocrtext-recognition

How to modify the connectionist Temporal Classification (CTC) layer of the network to also give us a confidence score?


I am trying to recognize words from cropped images of words itself by training a CRNN(CNN+LSTM+CTC) model. I am confused how to add confidence score along with recognized words. I am uisng tensorflow and following the implementation of https://github.com/TJCVRS/CRNN_Tensorflow. Can some one suggest me how to modify the connectionist Temporal Classification (CTC) layer of the network to also give us a confidence score?


Solution

  • One update from myself:

    i finally achieved a score by, passing the predicted label back to the ctc loss function and taking the anti-log of the negative of the resulting loss. I am finding this value very accurate than taking the anti-log of log_prob.