created PlaneTracker (int plane_tracker.py), which implements multitarget planar tracking

rewritten feature_homography.py using it
added plane_ar.py - simple augmented reality sample
This commit is contained in:
Alexander Mordvintesv
2012-08-03 22:17:11 +03:00
parent 2ea3dd391a
commit 353c69e017
4 changed files with 245 additions and 112 deletions

View File

@@ -204,3 +204,9 @@ def getsize(img):
def mdot(*args):
return reduce(np.dot, args)
def draw_keypoints(vis, keypoints, color = (0, 255, 255)):
for kp in keypoints:
x, y = kp.pt
cv2.circle(vis, (int(x), int(y)), 2, color)