diff options
author | Florian Jung <flo@windfisch.org> | 2014-08-27 00:47:18 +0200 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2014-08-27 00:47:18 +0200 |
commit | 3923d212b7555a11705708685b4b8684c8bad112 (patch) | |
tree | d55b6287d6475da02d3159a9aa45ba162e9567ac | |
parent | bb02fa2fa3ca4abc1f508c0d33024957c06991c7 (diff) |
reset key
-rw-r--r-- | test.py | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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) |