Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues reg opencv accessing webcam on windows 10 #43

Open
Harshavardhan-PR opened this issue Jan 3, 2022 · 3 comments
Open

issues reg opencv accessing webcam on windows 10 #43

Harshavardhan-PR opened this issue Jan 3, 2022 · 3 comments

Comments

@Harshavardhan-PR
Copy link

[ WARN:[email protected]] global D:\a\opencv-python\opencv-python\opencv\modules\videoio\src\cap_msmf.cpp (1752) CvCapture_MSMF::grabFrame videoio(MSMF): can't grab frame. Error: -1072875772

hello , i am trying to run the file object_detection.py and i am getting this same error over and over , it worked perfectly fine before 2 months, but i had to delete all the files , when i tried to reinstall all the requirements and run i am getting these , i searched the stack overflow couldnt find anything helpful , i set the id val=0 to run on webcam locally . Can you please tell me why i am getting this error .
Thanks in advance.

@Harshavardhan-PR
Copy link
Author

2022-01-03 (2)

@pradoz
Copy link

pradoz commented Jan 11, 2022

I fixed this error by following the suggestions made by @Roggu92 in #42 (comment) - The TL;DR is that I needed the weight files and I was essentially able to remove all version from YOLOv4/requirements.txt

I also had the error return temporarily due to poor lighting.

@HassanBinHaroon
Copy link

Check out the following relevant and easiest implementation.

https://github.com/HassanBinHaroon/object_detection-PLUS-distance_estimation-v1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants