Work for Kaggle ICDAR2013 competition