Region of interest based on mathematical morphology for the keyboard characters