A method for detecting text of arbitrary shapes in natural scenes that improves text spotting