- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 56.2k
VideoCapture does not work. OpenCV 3.2.0 #8677
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
Comments
i have the same environment as u. u can try the code below fisrt, it works on my machine.
} |
Thank you for reply, wuzhenwu. But, it does not work. The log message is as follows. Can you upload your log meesge on yout machine? I suspect "Event: Code: 0x03 Params: -2147024891, 0"
|
here is my debug info. I think what u suspected is right. u can dig into the problem,or maybe SETUP: Setting up device 0 SETUP: Capture callback set Event: Code: 0x0d Params: 0, 0 |
Thank you for reply, wuzhenwu.
|
Same problem. Code that worked only a few days ago does not work now after a forced update (windows 10)
crashes with this stacktrace. Hope this helps. |
I have the same problem. This problem may be caused by Windows Update. Uninstall Windows update KB3150513 solves my problem. For your reference. |
I had uninstalled the most recent windows updates, restarted, and it remained inoperable. only recently (yesterday) did it start working again. Maybe it needed several restarts? I also added the registry fix that helped when windows 10 anniversary update had broken webcams, as well as turned off the permissions for "Apps" to use the webcam. From what I could find, that event code is a lack of permission for webcam access. It was certainly a windows problem, but idk what solved the issue for me. |
Thank you for reply, Techkid86. My case,
But, I don't know whether it is exact solution or not. |
Hello Everybody, I am Also facing a similar issue, System Information
Video Capture is not working but just showing black screen , The Binaries are build with Cmake 3.9.0 rc-5 and MingW gcc C++ 4.8.1 32 bit with default configuration except I turned off WITH_PRECOMPILED_HEADER. Code I am using is same as @nhlsm I have tried above solution but does't work |
I had similar issue. and solved it. I had black screen with a USB web camera although Other USB web camera work well. I tried above solution of nhslm, privacy setting. But it doesnot work. in window 10 |
did anyone find a solution to this problem? I am using OpenCV v4.1.2. The camera is locked by python but no frame is displayed when using imshow(frame). |
Please post code samples - it's likely unrelated to this issue (which was fixed within a week from a windows update) if you are getting a lock on the device. The correct syntax is imshow('window name', frame) and nothing will be shown if you aren't following it with a cv2.waitKey(10) call to render the window. |
This is my code
|
waitkey is the answer. welldone bro |
How did u changed opencv version? @shin127 can you please guide me |
System information (version)
Detailed description
VideoCapture does not work. OpenCV 3.2.0. ( just black screen )
I check outed from https://github.com/opencv/opencv.git/tags/opencv-3.2.0 and build with MSVC 2015
debug print say that...
0x0d : EC_CLOCK_CHANGED
0x03 : EC_ERRORABORT, -2147024891(0x80070005)
0x0e : EC_PAUSED
cap_dshow.cpp, 2315 line, bool videoInput::isDeviceDisconnected(int deviceNumber)
It is added function on opencv 3.2.0.
Steps to reproduce
The text was updated successfully, but these errors were encountered: