Capture issue -> BSOD
Hi,
I'm using OpenCv 2.4.8 in VisualStudio 2010 under Windows8. My goal is to get an image from a camera fixed on a UAV. It's a small Sony camera similar to that one :Camera This camera sends the data via a TS351 emitter, which i receive by a RC305 receiver. Finally i use an EasyCap USB 2.0 to get the image on my computer.
I tried to receive the image on Matlab and it works just fine; but now i need to get it on my c++ program. When trying to reach my computer webcam (device 0), no problem at all; Opencv works fine, but when i try to open device 1, although it works on Matlab; it bugs on OpenCv, opening the camera by the following code:
capture = cvCaptureFromCAM( 1 );
And when I say it bugs, well it really does.. Blue screen of death everytime.
I really don't get it, and i'm not familiar with the different types of video data; so any help will be good to take =)
Thank you!
Stoo
Pretty simple, openCV 2.4.8 qd te cvCaptureFromCAM(1) - which is C-API - is the worst combo ever. Use the new VideoCapture interface, that will surely do its job and uses the C++ API instead of the C API
Actually i used VideoCapture interface first, but since it was not working, i tried cvCaptureFromCAM as well. Same result for both: - Working with my PC's webcam - BSOD when trying to access the other camera Any other idea?
Did you try with the -1 option? It takes any cam connected to the system.