From 3923d212b7555a11705708685b4b8684c8bad112 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Wed, 27 Aug 2014 00:47:18 +0200 Subject: reset key --- test.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/test.py b/test.py index 19afa83..3692b2b 100644 --- a/test.py +++ b/test.py @@ -90,5 +90,12 @@ while(cap.isOpened()): oldframe=frame oldgray=gray - if cv2.waitKey(1) & 0xFF == ord("q"): + key = cv2.waitKey(1) & 0xFF + if key == ord("q"): break + + if key == ord("r"): + total_angle=0. + total_x=700 + total_y=-200 + screencontent = numpy.zeros((scr_height, scr_width,3), numpy.uint8) -- cgit v1.2.3