0
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 飞行时的视频流吗?

4

1 回答 1

0

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

于 2017-02-01T14:38:12.763 回答