简体   繁体   English

ARDRONE的视频连接

[英]video connectivity for ARDRONE

import cv2
cam = cv2.VideoCapture('tcp://192.168.1.1:5555')
running = True
while running:
    # get current frame of video
    running, frame = cam.read()
    if running:
        cv2.imshow('frame', frame)
        if cv2.waitKey(1) & 0xFF == 27: 
            # escape key pressed
            running = False
    else:
        # error reading frame
        print 'error reading video feed'
cam.release()
cv2.destroyAllWindows()

The above code doesn't work for video stream in ARDRONE 2.0 上面的代码不适用于ARDRONE 2.0中的视频流

Can somebody provide a fix or any alternate solution to get the video stream of ARDRONE when it is flying ? 有人可以提供修复程序或任何替代解决方案来获得ARDRONE飞行时的视频流吗?

五分钟的谷歌搜索;-)例如,看看这个

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM