From fcc7d62d8c20839663c70bc6565daca908bc2960 Mon Sep 17 00:00:00 2001 From: Optimized-Brain Date: Mon, 15 Sep 2025 19:03:08 +0530 Subject: [PATCH] Fix(examples): Wait for real frame in record-video.py --- examples/record-video.py | 5 +++++ 1 file changed, 5 insertions(+) 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