Does a JavaScript lib exist for comparing a mouse/touch draw made in a canvas and compare it to an image ?
My use case is quite simple. We ask a user to draw a line (let's say a circle for example) he draws it and we compare it to a pre registered "result" to deduce a score.
I have search for and found image comparison and similarities algrithm but a lot of them are made for matlab or in python. I do not mind rewrite them in JS but, I do not want to reinvent the wheel if a JS lib already exists that implements those.
I can take pure javascript or typescript libraries.
I am open to every suggestion regarding image comparison algorithm for that usecase.
Thanks