Convolutional Neural Networks for Font Classification
Preprint
Abstract
Classifying pages or text lines into font categories aids transcription because single font Optical Character Recognition (OCR) is generally more accurate than omni-font OCR. We present a simple framework based on Convolutional Neural Networks (CNNs), where a CNN is trained to classify small patches of text into predefined font classes. To classify page or line images, we average the CNN predictions over densely extracted patches. We show that this method achieves state-of-the-art performance on a challenging dataset of 40 Arabic computer fonts with 98.8\% line level accuracy. This same method also achieves the highest reported accuracy of 86.6% in predicting paleographic scribal script classes at the page level on medieval Latin manuscripts. Finally, we analyze what features are learned by the CNN on Latin manuscripts and find evidence that the CNN is learning both the defining morphological differences between scribal script classes as well as overfitting to class-correlated nuisance factors. We propose a novel form of data augmentation that improves robustness to text darkness, further increasing classification performance.Keywords
All Related Versions
This publication has 10 references indexed in Scilit:
- Chinese calligraphic style representation for recognitionInternational Journal on Document Analysis and Recognition (IJDAR), 2017
- ICFHR2016 Competition on the Classification of Medieval Handwritings in Latin Script2016
- Script identification in the wild via discriminative convolutional neural networkPattern Recognition, 2016
- Principal Component 2-D Long Short-Term Memory for Font Recognition on Single Chinese CharactersIEEE Transactions on Cybernetics, 2015
- KAFD Arabic font databasePattern Recognition, 2014
- New features using fractal multi-dimensions for generalized Arabic font recognitionPattern Recognition Letters, 2009
- Best practices for convolutional neural networks applied to visual document analysis2005
- Font recognition based on global texture analysisIEEE Transactions on Pattern Analysis and Machine Intelligence, 2001
- Optical font recognition using typographical featuresIEEE Transactions on Pattern Analysis and Machine Intelligence, 1998
- A Threshold Selection Method from Gray-Level HistogramsIEEE Transactions on Systems, Man, and Cybernetics, 1979