7

Gesture Recognition with Line Integrals

 3 years ago
source link: https://justinmeiners.github.io/gesture-recognition/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

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:

  • Clear the Canvas
  • Hold SHIFT and draw the character 5-8 times. Try to keep the position the same as before. Naturally you will add a little variation.

  • Optional: Press smooth a few times, then redraw a few more times.
  • Type in the string your glyph represents and Save.

String

Saved Glyphs


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK