Gesture Recognition with Line Integrals

By: Justin Meiners (2020)

Line integrals measure the extent to which a path agrees with a vector (directional) field. This provides an easy way to implement handwriting/tracing/gesture recognition. Although not as accurate as fancy ML methods, it still can recognize a wide varation in drawings with good accuracy and is versatile in application. However, this would not work for OCR applications as the direction of the strokes is an essential component of recognition.

The line integral and total length of the path both contribute to the scoring. This allows "5" and "8" to be distinguished. The centroid of the path is used for adjusting position.

Try drawing a number (1-9) in the box to see if it detects it.

To make a new glyph:

Saved Glyphs