1

So I have 2 diffrent apps that use web-cameras (on Windows) I created tham bouth but I need them to be separate, stand alone apps. I want tham bouth to be capable to capture from same camera. What should I add to my capturing OpenCV code?

3 Answers 3

2

Not sure, but i think the only way is to use COM (on windows) because you can't create two capture filters per one device. But you can create a splitter filter, put it in a DirectShow graph and share access to it through COM. I don't know how to do it exactly, just an idea.

2

Use SplitCam.

1

You can't. Only one application can access any device at a time - even with common I/O devices like hard disks.

If multiple applications could access a device simultaneously, it would be confused whose instructions to follow.

You can use SplitCam, though. It will connect to the webcam (and no other application can). But it will create virtual devices that other applications can connect to.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.