Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

SAFL: A Self-Attention Scene Text Recognizer with Focal Loss

About

In the last decades, scene text recognition has gained worldwide attention from both the academic community and actual users due to its importance in a wide range of applications. Despite achievements in optical character recognition, scene text recognition remains challenging due to inherent problems such as distortions or irregular layout. Most of the existing approaches mainly leverage recurrence or convolution-based neural networks. However, while recurrent neural networks (RNNs) usually suffer from slow training speed due to sequential computation and encounter problems as vanishing gradient or bottleneck, CNN endures a trade-off between complexity and performance. In this paper, we introduce SAFL, a self-attention-based neural network model with the focal loss for scene text recognition, to overcome the limitation of the existing approaches. The use of focal loss instead of negative log-likelihood helps the model focus more on low-frequency samples training. Moreover, to deal with the distortions and irregular texts, we exploit Spatial TransformerNetwork (STN) to rectify text before passing to the recognition network. We perform experiments to compare the performance of the proposed model with seven benchmarks. The numerical results show that our model achieves the best performance.

Bao Hieu Tran, Thanh Le-Cong, Huu Manh Nguyen, Duc Anh Le, Thanh Hung Nguyen, Phi Le Nguyen• 2022

Related benchmarks

TaskDatasetResultRank
Scene Text RecognitionSVT (test)
Word Accuracy88.6
289
Scene Text RecognitionIIIT5K (test)
Word Accuracy93.9
244
Scene Text RecognitionIC03 (test)
Accuracy95
63
Scene Text RecognitionCUTE (test)
Accuracy85.4
59
Scene Text RecognitionICDAR 2015 (test)
Accuracy77.5
46
Scene Text RecognitionICDAR13 (test)
Accuracy92.8
24
Scene Text RecognitionSVT-P (test)
Accuracy81.7
9
Showing 7 of 7 rows

Other info

Code

Follow for update