gpt4 book ai didi

python - 使用 cv2 时删除 [h264 @ xxx] 错误控制台输出

转载 作者:太空宇宙 更新时间:2023-11-03 21:49:22 24 4
gpt4 key购买 nike

我正在使用 djitellopy 模块(在 Win10/Python3.6 上运行)连接到我的 Ryze TELLO 无人机。该模块使用 cv2,无人机提供 h264 编解码器中的当前视频流。在运行我的脚本(基于 the docs )时,并非所有图片都被传输 e。 G。因为我的 wlan 连接太弱了。这不是真正的问题,因为我不需要全部 60fps。但这很烦人,每次我错过一帧,我都会收到类似的错误

[h264 @ 0000019ab6699b40] non-existing PPS 0 referenced
[h264 @ 0000019ab6699b40] decode_slice_header error
[h264 @ 0000019ab6699b40] no frame!
[h264 @ 0000019ab8394b00] non-existing PPS 0 referenced
[h264 @ 0000019ab66ab040] non-existing PPS 0 referenced
[h264 @ 0000019ab8394b00] decode_slice_header error
[h264 @ 0000019ab8394b00] no frame!
[h264 @ 0000019ab8394b00] error while decoding MB 31 40, bytestream -10

等等。有没有什么巧妙的方法可以关闭/抑制 cv2 中的这些错误?脚本本身可以正常运行。

提前致谢!

最佳答案

感谢您的回答,但我决定通过使用 tkinter-windows 而不是命令行来显示数据来简单地忽略输出。结案。

关于python - 使用 cv2 时删除 [h264 @ xxx] 错误控制台输出,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56655948/

24 4 0
文章推荐: c# - DataObject.GetData() 无论如何都会返回 MemoryStream 类型的对象?
文章推荐: javascript - 如何使用nodemon忽略除文件夹和特定文件之外的所有内容?
文章推荐: html - 如何使
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com