ARDRONE的视频连接

时间:2017-01-22 17:14:20

标签: opencv ros ar.drone

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()

上述代码不适用于ARDRONE 2.0中的视频流

有人可以提供修复或任何替代解决方案,以便在飞行时获取ARDRONE的视频流吗?

1 个答案:

答案 0 :(得分:0)

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