Cam shows an error while detection #6549
-
: [ WARN:[email protected]] global cap_msmf.cpp:1759 CvCapture_MSMF::grabFrame videoio(MSMF): can't grab frame. Error: -1072873821 I'm working with custom detection model connected to Arduino Uno. While running the code the above error shows. What is the reason? and what should I do to solve the problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@Zeynp62, it appears there might be an issue with OpenCV and your camera. The error code Here are some potential solutions: I hope this helps you to fix the error. If you need more information, you can check out the web search results below. 🙌 Web search findings✅ OpenCV CvCapture_MSMF::grabFrame videoio(MSMF): can't grab frame Hope this helps! Let me know if you have any additional questions. |
Beta Was this translation helpful? Give feedback.
@Zeynp62, it appears there might be an issue with OpenCV and your camera. The error code
-1072873821
corresponds toMF_E_HW_MFT_FAILED_START_STREAMING
, indicating that a hardware device failed to initiate streaming. This could occur if the camera is already in use by another application or if there is a malfunction with the camera device.Here are some potential solutions:
✅ Verify that your camera functions correctly with other applications, such as the Windows Camera app.
✅ Prior to opening a new device, attempt to release the camera using
capture.release()
.✅ Instead of a fixed number of iterations, employ an infinite loop in a thread, and confirm that
capture.read()
returnsTrue
.I ho…