Recovery of drawing order of strokes in a handwritten image can be seen as searching the smoothest path for each stroke on an undirected graph that is constructed from the skeleton of the handwritten image. However, this requires the correction of sep...
Recovery of drawing order of strokes in a handwritten image can be seen as searching the smoothest path for each stroke on an undirected graph that is constructed from the skeleton of the handwritten image. However, this requires the correction of separating strokes, and detecting starting points at first. Moreover, ambiguousness at junction points (ambiguous zones) increases the complexity of finding these paths. In order to resolve these issues, an effective four-stage approach that can simultaneously detect the points to separate strokes and find the smoothest path for each stroke is proposed. In the first stage, a skeleton graph is built from the thinned image of handwriting. Adjustments that include merging nodes of spurious edges and separating touching characters and crossing strokes in some cases are performed. The smoothness of two adjacent edges that is used to search the smoothest path is estimated by a function of the angle between those edges at their junction point. The skeleton graph may be divided into many subgraphs as the result of this stage, and then each of those is iteratively input into next stages. In the second stage, the smoothest path is searched on the line graph of each subgraph. Some potential starting edges are proposed. For each of those, a smoothest path is obtained and the best one is chosen. Touches and crossings at ambiguous zones are detected and the smoothness values are adjusted to improve accuracy of the recovery. Then, the smoothest path is separated to many strokes in the third stage by using the curvature of edges, the un-smoothness between edges and the appearance of double-traced edges. Finally, in the fourth stage, pixel sequences of strokes are extracted and ordered by using rules of handwriting. In order to validate the effectiveness of the proposed method, experiments are performed on two datasets. The first dataset includes 2180 images of single-stroke handwriting. The second includes 1640 images of multi-stroke handwriting. Root Means Square Error (RMSE) and Dynamic Time Warping (DTW) are applied to measure the error between the recovered drawing order and ground truth. Results of the proposed method show impressive accuracy and are compared to two recent methods.