Research Article

Focal CTC Loss for Chinese Optical Character Recognition on Unbalanced Datasets

Algorithm 1

Focal CTC implemented in tensorflow.
Require  Parameters of RNN: , learning rate , batch size
1: for  ; ;   do
2:;
3:;
4:
5:
6:
7:;
8:
9: end for