Error while using webcam

The program worked fine for a couple of times. And then, it automatically went on to show the following error:

C:\Users\Sanchit\Documents\Data Science\Face Recognition and Classification>python facedetection.py
[ WARN:0] global C:\projects\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (1113) SourceReaderCB::OnReadSample videoio(MSMF): OnReadSample() is called with error status: -2147024894
[ WARN:0] global C:\projects\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (1125) SourceReaderCB::OnReadSample videoio(MSMF): async ReadSample() call is failed with error status: -2147024894
[ WARN:1] global C:\projects\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (1159) CvCapture_MSMF::grabFrame videoio(MSMF): can’t grab frame. Error: -2147024894
[ WARN:1] global C:\projects\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (1159) CvCapture_MSMF::grabFrame videoio(MSMF): can’t grab frame. Error: -2147483638

Hey @SanchitSayala, this error is probably due to the hardware failure, make sure your web cam is working fine. Restart the pc/laptop and than try to run it again, if error persists, than probably you need to update your drivers.

Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. :blush:

The camera app(or any other app that uses camera) also isn’t working, shows error code: 0xA00F4244. I have checked whether firewall/antivirus was blocking the camera but that wasn’t the case. I have also checked the the camera drivers and they were up to date. The camera randomly worked once or twice, but for now it isn’t working and I have wasted 1 or 2 hours, in vain, trying out different things to fix it. :cry:

Was there something wrong with the codes itself??
Codes:-



Hey @SanchitSayala, than this the error with the camera and not with the code

https://answers.microsoft.com/en-us/windows/forum/apps_windows_10-camera/camera-not-working-error-code-0xa00f42440xc00d36d5/bc310b44-11c0-47a0-91b1-d796dc450d57

Try few of the solutions on these links.

I have already tried them and some additional solutions too from different sources. But none of them is working for me. I haven’t tried system restore yet, will try it after backing up some data. If this doesn’t work as well, then I think replacing the camera under warranty is the last option. I found the same problem in a similar model:


In this case, only replacing the camera worked.
Thanks for the help anyways.

1 Like

Hey @SanchitSayala, yes if its in warranty that that is the best way out to contact the expert.

1 Like

You can try to reset the camera app to default, also check if the registry entries are causing issues then tweak it. Despite this, if none of them works for you to fix Windows 10 camera error 0xa00f4244, then simply switch to third-party camera app.

Already tried all of that but nothing works, thanks for the reply though.