Text Line Segmentation with the Parametric Water Flow Algorithm