Farsi font recognition based on Sobel-Roberts features

  • Authors:
  • Hossein Khosravi;Ehsanollah Kabir

  • Affiliations:
  • Department of Electrical Engineering, Tarbiat Modarres University, Tehran, Iran;Department of Electrical Engineering, Tarbiat Modarres University, Tehran, Iran

  • Venue:
  • Pattern Recognition Letters
  • Year:
  • 2010

Quantified Score

Hi-index 0.10

Visualization

Abstract

A new approach for the recognition of Farsi fonts is proposed. Font type of individual lines with any font size is recognized based on a new feature. Previous methods proposed for font recognition are mostly based on Gabor filters and recognize font type of a block of text rather than a line or a phrase. Usually all text lines of the same block or paragraph do not have the same font, e.g. titles usually have different fonts. On the other hand although the Gabor filter does this task fairly, but it is very time consuming, so that feature extraction of a texture of size 128*128 takes about 178ms on a 2.4GHz PC. In this paper we perform font recognition in line level using a new feature based on Sobel and Roberts gradients in 16 directions, called SRF. We break each line of text into several small parts and construct a texture. Then SRF is extracted as texture features for the recognition. This feature requires much less computation and therefore it can be extracted very faster than common textural features like Gabor filter, wavelet transform or momentum features. Our experiments show that it is about 50 times faster than an 8-channel Gabor filter. At the same time, SRF can represent the font characteristics very well, so that we achieved the recognition rate of 94.16% on a dataset of 10 popular Farsi fonts. This is about 14% better than what an 8-channel Gabor filter can perform. If we ignore the errors between very similar fonts, the recognition rate of about 96.5% will be achieved.