How to check if you draw/outline a symblol by its contour?

Hello! Im currently making a game, and stuck with making a feature, in which you draw/outline a symbol that you see, main question is, how to determine if you`ve drawn it correctly? So its not gesture recognition, you are drawing a symbol by its contour. Like this.

Whats the best way to do it?I mean checking if you drew it correctly?

1)Make point along symbol and check if you connected them?

2)Or another way? Every advice is appriciated.

It’s still gesture recognition- point-cloud algorithms work by sampling the drawn shape at various points (like turning your input into a series of single points, instead of a line) and then measuring the closest distance between those points and the shape you’re checking against. Each point gets a kind of offset value associated with it, and these are all averaged out to give the total “score” of the attempt. Gesture recognition works by doing this to an array of different objects it COULD be, then giving back the best scoring example. The really good ones will scale and possibly even rotate the original images in order to get it as close to the result as possible first, before measuring.

If you want to skip grabbing a gesture recognition system, you can do the math yourself- scaling and rotating won’t be necessary if there’s only 1 shape, and it’s shown on the screen to trace, so that simplifies things. It’s still not really trivial though.

You’ll almost definitely end up having to use some variation of $P point-cloud recognition in my opinion, which is what most of the UAS “gesture recognition” assets use.

Also, please don’t make unnecessary polls, they’re distracting and not useful in the technical support forums.