From c9d9d1ec92cd1bdc8c4e53cbfae4f944463923ec Mon Sep 17 00:00:00 2001 From: Alexander Mordvintsev Date: Mon, 11 Jul 2011 07:47:56 +0000 Subject: [PATCH] lk_track.py window renamed --- samples/python2/lk_track.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/samples/python2/lk_track.py b/samples/python2/lk_track.py index 9987f26f34..b07db1748f 100644 --- a/samples/python2/lk_track.py +++ b/samples/python2/lk_track.py @@ -42,8 +42,6 @@ def main(): try: video_src = sys.argv[1] except: video_src = video.presets['chess'] - cv2.namedWindow('img', 0) - track_len = 4 tracks = [] cam = video.create_capture(video_src) @@ -71,7 +69,7 @@ def main(): draw_str(vis, (20, 40), 'time: %.02f ms' % (dt*1000)) prev_frame = frame.copy() - cv2.imshow('img', vis) + cv2.imshow('lk_track', vis) ch = cv2.waitKey(5) if ch == 27: break