skishore / makemeahanzi

Free, open-source Chinese character data
https://www.skishore.me/makemeahanzi/
Other
1.83k stars 465 forks source link

How to use this data for character recognition from drawing point as in demo page? #68

Closed ndquangr closed 3 years ago

ndquangr commented 5 years ago

Could you please tell me how to use this data for character recognition from drawing point as in demo page? Thank you!

skishore commented 3 years ago

Instantiate a Matcher object with the (character, medians) data. Then, take the user's raw stroke inputs, call "Matcher.preprocess" to do some light cleanup on them, and then pass the result to "Matcher.match".