当连接了Tello无人机的WIFI:RMTT-5621F2后,使用tl_camera.read_cv2_image函数将视频帧图传回PC出现_queue.Empty,是由于windows防火墙未关闭。
C:\Users\wsy\AppData\Local\Programs\Python\Python38\python.exe E:\yolov5\04_camera\01_video_with_display.py
Traceback (most recent call last):
File "E:\yolov5\04_camera\01_video_with_display.py", line 50, in <module>
img = tl_camera.read_cv2_image()
File "C:\Users\wsy\AppData\Local\Programs\Python\Python38\lib\site-packages\robomaster\camera.py", line 69, in read_cv2_image
frame = self.read_video_frame(timeout, strategy)
File "C:\Users\wsy\AppData\Local\Programs\Python\Python38\lib\site-packages\robomaster\camera.py", line 58, in read_video_frame
return self._liveview.read_video_frame(timeout, strategy)
File "C:\Users\wsy\AppData\Local\Programs\Python\Python38\lib\site-packages\robomaster\media.py", line 96, in read_video_frame
return self._video_frame_queue.get(timeout=timeout)
File "C:\Users\wsy\AppData\Local\Programs\Python\Python38\lib\queue.py", line 178, in get
raise Empty
_queue.Empty
因此,关闭防火墙。

然后视频可以正常回传接收啦~

6049

被折叠的 条评论
为什么被折叠?



