From f4f41df756bb115485bc3b6fa15644dd00be028c Mon Sep 17 00:00:00 2001 From: Alexander Mordvintsev Date: Tue, 22 May 2012 08:43:42 +0000 Subject: [PATCH] removed derivLambda param for LK-tracker linetype -> lineType --- samples/python2/common.py | 4 ++-- samples/python2/lk_homography.py | 3 +-- samples/python2/lk_track.py | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/samples/python2/common.py b/samples/python2/common.py index aade8d3cfa..7319ceb7d4 100644 --- a/samples/python2/common.py +++ b/samples/python2/common.py @@ -56,8 +56,8 @@ def mtx2rvec(R): return axis * np.arctan2(s, c) def draw_str(dst, (x, y), s): - cv2.putText(dst, s, (x+1, y+1), cv2.FONT_HERSHEY_PLAIN, 1.0, (0, 0, 0), thickness = 2, linetype=cv2.CV_AA) - cv2.putText(dst, s, (x, y), cv2.FONT_HERSHEY_PLAIN, 1.0, (255, 255, 255), linetype=cv2.CV_AA) + cv2.putText(dst, s, (x+1, y+1), cv2.FONT_HERSHEY_PLAIN, 1.0, (0, 0, 0), thickness = 2, lineType=cv2.CV_AA) + cv2.putText(dst, s, (x, y), cv2.FONT_HERSHEY_PLAIN, 1.0, (255, 255, 255), lineType=cv2.CV_AA) class Sketcher: def __init__(self, windowname, dests, colors_func): diff --git a/samples/python2/lk_homography.py b/samples/python2/lk_homography.py index 616aa5e0a8..0b681941f6 100644 --- a/samples/python2/lk_homography.py +++ b/samples/python2/lk_homography.py @@ -25,8 +25,7 @@ from common import draw_str lk_params = dict( winSize = (19, 19), maxLevel = 2, - criteria = (cv2.TERM_CRITERIA_EPS | cv2.TERM_CRITERIA_COUNT, 10, 0.03), - derivLambda = 0.0 ) + criteria = (cv2.TERM_CRITERIA_EPS | cv2.TERM_CRITERIA_COUNT, 10, 0.03)) feature_params = dict( maxCorners = 1000, qualityLevel = 0.01, diff --git a/samples/python2/lk_track.py b/samples/python2/lk_track.py index d5667095c7..55224ef1c3 100644 --- a/samples/python2/lk_track.py +++ b/samples/python2/lk_track.py @@ -24,8 +24,7 @@ from time import clock lk_params = dict( winSize = (15, 15), maxLevel = 2, - criteria = (cv2.TERM_CRITERIA_EPS | cv2.TERM_CRITERIA_COUNT, 10, 0.03), - derivLambda = 0.0 ) + criteria = (cv2.TERM_CRITERIA_EPS | cv2.TERM_CRITERIA_COUNT, 10, 0.03)) feature_params = dict( maxCorners = 500, qualityLevel = 0.3,