Hello,
under the example of the lucas-kanade algorithm is written https://docs.opencv.org/trunk/db/d7f/tutorial_js_lucas_kanade.html: "(This code doesn't check how correct are the next keypoints. So even if any feature point disappears in image, there is a chance that optical flow finds the next point which may look close to it. So actually for a robust tracking, corner points should be detected in particular intervals.)"
Is there another option to check, if the next keypoints in the next image make sense?
greets Matthias