Skip to content

Instantly share code, notes, and snippets.

@elepherai
elepherai / videostab.py
Created June 22, 2020 04:32 — forked from Yengas/videostab.py
Video Stabilization with Python3.5 and OpenCV3 following chen jia's cpp implementation.
#!/usr/bin/python3.5
import sys
import argparse
import cv2
from math import atan2, cos, sin
import numpy as np
# this class is based on the code of Nghia Ho who first coded it for video files
# and the code of chen jia who added kalman filter for live features.
# see http://nghiaho.com/uploads/videostabKalman.cpp