Created
June 14, 2020 14:16
-
-
Save youngsoul/be955c397b2a4750a956cc0a4ac85dc4 to your computer and use it in GitHub Desktop.
Tello Show Video Process. See https://github.com/youngsoul/tello-sandbox.git Tello_face_tracking.py for larger context
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def show_video(exit_event, pipe_conn): | |
| signal.signal(signal.SIGINT, signal_handler) | |
| signal.signal(signal.SIGTERM, signal_handler) | |
| while True: | |
| frame = pipe_conn.recv() | |
| # display the frame to the screen | |
| cv2.imshow("Drone Face Tracking", frame) | |
| cv2.waitKey(1) | |
| if cv2.waitKey(1) & 0xFF == ord('q'): | |
| exit_event.set() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment