简体   繁体   中英

opencv cant access analog camera

I have a analog camera whose video I see on my computer using EASYCAP video capture device. I also have a webcam. When I try running any OPENCV videocapture code in C++ it picks video only from my webcam and not the analog camera.

I can see the video from analog camera in Windows Movie maker but C++ wont access it. I noticed that the capture device is stored in the device manager as a sound,video and game controller while the webcam is stored as a imaging device. Is it not showing this feed because OPENCV wont recognize it.

Can anyone please advice me how they connect their analog camera (FPV, IR, etc) to the computer and process it. I have to process the video from a external analog camera which I connect to the PC using a video capture device.

Thanks.

Use VideoCapture cap(1); ....the difference is using "1" instead of "0" in cap()

i struggled with the same problem (using python instead) and hope it helps!

the original thread + answer

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM