Use Gaussian Mixture Model to recognize your finger and darw the track, working with OpenCV and Qt.