Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将以下 python 代码放入 NAO 机器人中,以捕获并从一个摄像头获取帧。
import cv2 cap= cv2.VideoCapture(0) frame = cap.read() #This is where the error takes place
程序返回
VIDIOC_QBUF: Invalid argument
我解决了这个问题,我用的是pyQt,说明在NAO的官方页面,然后将QImage转换为OpenCV,解决方法可以在google上找到。