diff --git a/examples/record-video.py b/examples/record-video.py index d8f1c0f..7187a81 100644 --- a/examples/record-video.py +++ b/examples/record-video.py @@ -10,6 +10,11 @@ tello.streamon() frame_read = tello.get_frame_read() +# Wait for the first frame to be received +while frame_read.frame.shape == (300, 400, 3): + time.sleep(0.1) + + def videoRecorder(): # create a VideoWrite object, recoring to ./video.avi # 创建一个VideoWrite对象,存储画面至./video.avi