The provided piece of code, extracts text saliency from a given image by using the method described in [1]. If you find the saliency based text detection method useful, please consider citing [1].
@InProceedings{Karaoglu et. al., author="Karaoglu, Sezer and van Gemert, Jan C. and Gevers, Theo", title="Object Reading: Text Recognition for Object Recognition", booktitle="Computer Vision -- ECCV 2012. Workshops and Demonstrations", year="2012", publisher="Springer Berlin Heidelberg", address="Berlin, Heidelberg", pages="456--465", }