Ask Your Question

Revision history [back]

[ WARN:1] videoio(MSMF): OnReadSample() ,[ WARN:1] videoio(MSMF): async ReadSample() this error happens when there is configuration issue in your camera. Kindly reconfigure it. I have also faced the same problem when i used the external camera. Alternatively you can allow program to wait for sometime before camera gets started like below.

while ret == False: time.sleep(2) cap = cv2.VideoCapture(0 + cv2.CAP_DSHOW) ret, frame= cap.read()