Skip to content

Cam shows an error while detection #6549

Answered by yonglee7015
Zeynp62 asked this question in Q&A
Discussion options

You must be logged in to vote

@Zeynp62, it appears there might be an issue with OpenCV and your camera. The error code -1072873821 corresponds to MF_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() returns True.

I ho…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Zeynp62
Comment options

@RizwanMunawar
Comment options

Answer selected by RizwanMunawar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants