Загрузка данных


@'
from djitellopy import Tello
import cv2

tello = Tello()
tello.connect()
tello.streamon()

print("Видеопоток включён. Нажмите 'q' для выхода.")

while True:
    frame = tello.get_frame_read().frame
    if frame is not None:
        cv2.imshow("Tello Camera", frame)
    if cv2.waitKey(1) & 0xFF == ord('q'):
        break

tello.streamoff()
cv2.destroyAllWindows()
'@ | Out-File -Encoding utf8 video_test.py