开发者

OpenCV: how to be capable to capture frames from same camera with 2 different apps?

开发者 https://www.devze.com 2023-01-25 23:18 出处:网络
SoI 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 s开发

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 s开发者_高级运维hould I add to my capturing OpenCV code?


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.


Use SplitCam.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消