mirror of
https://github.com/damiafuentes/DJITelloPy.git
synced 2024-10-25 03:27:46 +03:00
14 lines
203 B
Python
14 lines
203 B
Python
import cv2
|
|
from djitellopy import Tello
|
|
|
|
tello = Tello()
|
|
tello.connect()
|
|
|
|
tello.streamon()
|
|
frame_read = tello.get_frame_read()
|
|
|
|
tello.takeoff()
|
|
cv2.imwrite("picture.png", frame_read.frame)
|
|
|
|
tello.land()
|