Skip to content

Instantly share code, notes, and snippets.

View epiception's full-sized avatar

Ganesh Iyer epiception

View GitHub Profile
@epiception
epiception / kalman_class.py
Created February 17, 2017 11:15
Kalman filtering for selected points in an image using OpenCV cv2.kalmanFilter class in Python. Returns predicted points.
import cv2
import numpy as np
'''KALMAN FILTERING CLASS FOR N 2D POINTS'''
'''Kalman filtering for selected points in an image using OpenCV cv2.kalmanFilter class in Python '''
class Kalman_Filtering:
def __init__(self,n_points):
self.n_points = n_points