Text Detection and Extraction from Document Images using K