From the Equation OCR front line…
Problem:
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.