summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2014-08-27 00:47:18 +0200
committerFlorian Jung <flo@windfisch.org>2014-08-27 00:47:18 +0200
commit3923d212b7555a11705708685b4b8684c8bad112 (patch)
treed55b6287d6475da02d3159a9aa45ba162e9567ac
parentbb02fa2fa3ca4abc1f508c0d33024957c06991c7 (diff)
reset key
-rw-r--r--test.py9
1 files changed, 8 insertions, 1 deletions
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)