opencv: VideoCapture does not work. OpenCV 3.2.0
System information (version)
- OpenCV => 3.2.0
- Operating System / Platform => Windows 10 64 bit
- Compiler => Visual Studio 2015 32bit
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…
SETUP: Setting up device 0
SETUP: WebCam SC-13HDL11624N
SETUP: Couldn't find preview pin using SmartTee
SETUP: Default Format is set to 640x480
SETUP: trying specified format RGB24 @ 640x480
SETUP: trying format RGB24 @ 640x480
SETUP: trying format RGB32 @ 640x480
SETUP: trying format RGB555 @ 640x480
SETUP: trying format RGB565 @ 640x480
SETUP: trying format YUY2 @ 640x480
SETUP: Capture callback set
SETUP: Device is setup and ready to capture.
Event: Code: 0x0d Params: 0, 0
Event: Code: 0x0e Params: 0, 0
Event: Code: 0x03 Params: -2147024891, 0
- code desc 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
VideoCapture cap(0);
assert(cap.isOpen());
while(1)
{
Mat frame;
cap >> frame;
imshow("cap", frame);
// black screen
waitKey(10);
}
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (4 by maintainers)
Hello Everybody,
I am Also facing a similar issue,
System Information
Video Capture is not working but just showing black screen , Web cam is working smoothly in other applications as well as working nicely with OpenCV pre-build python and Java binaries , and also older version i.e before OpenCV2 version is also working nicely. Also the Light of Web Cam is working.
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