Extraction of Text Objects in Image and Video Documents