Welcome to the Word Representation with Attributes library, a software for the retrieval and recognition of word images.
This code is written in Matlab and is the basis of the following project:
Jon Almazán, Albert Gordo, Alicia Fornés, Ernest Valveny. Word Spotting and Recognition with Embedded Attributes. Project Page
We deal with the problems of word spotting and word recognition on images. In word spotting, the goal is to find all instances of a query word in a dataset of images. In recognition, the goal is to recognize the content of the word image, usually aided by a dictionary or lexicon. We propose a formulation for word representation and matching based on embedded attributes that jointly addresses these two problems. Contrary to most other existing methods, our representation has a fixed length, is low dimensional, and is very fast to compute and, especially, to compare.
We propose to use character attributes to learn a semantic representation of the word images and then perform a calibration of the scores with CCA that puts images and text strings in a common subspace. After that, spotting and recognition become simple nearest neighbor problems in a very low dimensional space. We test our approach on four public datasets of both document and natural images showing results comparable or better than the state-of-the-art on spotting and recognition tasks.
This word spotting library uses some great open-source software:
To get started, you need to install MATLAB and download the code from GitHub. This code has been tested on Mac and Linux and some pre-compiled Mex files are included.
$ cd ~/your_projects/
$ git clone git://github.com/almazan/words-att.git
$ cd words-att/datasets
$ wget http://cvit.iiit.ac.in/projects/SceneTextUnderstanding/IIIT5K-Word_V3.0.tar.gz
$ tar -xvzf IIIT5K-Word_V3.0.tar.gz
>> main
Note: The parameters set by default can be modified in the prepare_opts.m script