有没有办法将用Python流式传输小型无人机的延迟降至最低?

发布于 2025-01-21 19:21:26 字数 349 浏览 2 评论 0原文

我使用Djitellopy库来控制我的Tello无人机。

但是问题是视频流的延迟。

这是与Tello Drone一起流媒体流的最小示例:

from djitellopy import tello
import cv2


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

while True:
    img = drone.get_frame_read().frame
    cv2.imshow('stream', img)
    cv2.waitKey(1)

如果有任何可行的解决方案,而不仅仅是建议,我真的很感谢它。

I used djitellopy library to control my Tello drone.

But the problem is the latency of the video stream.

This is the minimal example of video streaming with Tello drone:

from djitellopy import tello
import cv2


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

while True:
    img = drone.get_frame_read().frame
    cv2.imshow('stream', img)
    cv2.waitKey(1)

I really appreciate it if there are any viable solutions and not just suggestions.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文