diff options
-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) |