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 で解決策を見つけることができます。