Skip to content

Instantly share code, notes, and snippets.

@youngsoul
Created June 14, 2020 14:16
Show Gist options
  • Select an option

  • Save youngsoul/be955c397b2a4750a956cc0a4ac85dc4 to your computer and use it in GitHub Desktop.

Select an option

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
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