I`m new in OpenCV. I want to use optical flow method to stabilize Webcam Real-time video. Actually, I can stabilize video file but when I tried to apply Webcam it does not work.
Please help me!
Yesterday I just did some works (in Python) on this subject, main steps are:
cv2.goodFeaturesToTrack to find good corners.cv2.calcOpticalFlowPyrLK to track the corners.cv2.findHomography to compute the homography matrix.cv2.warpPerspective to transform video frame.But the result is not that ideal now, may be I should choose SIFT keypoints other than goodFeatures.
Source:
Stabilize the car: