I have a video feed which is taken with a moving camera and contains moving objects. I would like to stabilize the video, so that all stationary objects will remain stationa
I past my answer from this one. How to stabilize Webcam video?
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: