I'm using a method where I compare the drawn line against the original to check if their points are sufficiently close. I'm not memorizing the gesture of the shape at all, but I am thinking about trying that approach in my next project.
Thank you for your comment. ^^