A learning-based text synthesis engine for scene text detection