Monthly archive of March, 2011

Quick line segmentation

From the Equation OCR front line…


Splitting up handwritten calculations into single lines.

Algorithm description:

First map all the strokes on the y-axis. Then travel along the axis and record the the ink density (number of strokes underneath). Remember local maximums. If the density falls below a certain percentage (tolerance) of a last local maximum – insert a break line.

C# code:

…

Tags: ,