This is a simple concept to do writing like operation using the contours. Please follow the article https://q-viper.github.io/2020/08/28/gesture-based-visually-writing-system-web-app/ for further details.
Why do you think that https://github.com/opencv/opencv is a good alternative to Contour-Based-Writing