TEXMEX - Morphological and hierarchical approaches for text extraction from images and videos