Gradient based Technique for Text Information Extraction from Videos