Reading #5 $1 Recognizer
Summary:
$1 recognizer includes four steps:
1. Resample the points of the stroke to a specific number N. This is achieved by adding new point at every distance of L/N along the path, where L is the length of the path.
2. Rotate the path by adjusting the angle formed between centroid and first point to ‘0’.
3. Scale and translate: expand or contract the original path into a square with width of ‘size’. Then, adjust its centroid to (0, 0).
4. Compute the sum of counterpart points’ distance (path distance) between the candidate and each template. Then, convert it to a score of matching to each template.
In order to find the optimal rotation angle which minimizes the path distance, the author also analyzes the usefulness of hill-climbing and GSS for similar comparison and dissimilar comparison. The result shows GSS is more efficient than Hill-climbing.
The four steps of $1 recognizer also prevent it from recognizing gestures that are sensitive on orientation, aspect ratios or position.
Discussion:
The advantage of hill-climbing in finding the optimal rotation angle is the number of iterations is small for similar pairs. And its drawback is the large number of iterations when used on dissimilar pairs. Since the suboptimality only decrease the possibility of mistake matches, why not just set a threshold, (e.g. 10)? The result of Hill-climbing could be as efficient as GSS as well as possibly increase our accuracy.