如何写/管道到由V4L2loopback模块创建的虚拟网络摄像头? [英] How to write/pipe to a virtual webcam created by V4L2loopback module?

查看:1907
本文介绍了如何写/管道到由V4L2loopback模块创建的虚拟网络摄像头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我写了一个应用程序从网络摄像头读取,并使用OpenCV在Linux上处理帧。现在我想把我的应用程序的输出管道到由V4L2loopback模块创建的虚拟网络摄像头,以便其他应用程序能够读取它。我使用C编写应用程序。我不知道如何做到这一点。

解决方案

我在Google代码的旧版V4L2loopback模块页面中找到了一个答案。 p>

http:// code.google.com/p/v4l2loopback/source/browse/test.c



较新的链接: https://github.com/umlaeute/v4l2loopback/blob/master/examples/test.c



这帮助我到目前为止只是写入设备。


I have written an application which reads from a webcam and processes the frames using OpenCV on linux. Now I want to pipe the output of my application to a virtual webcam that has been created by the V4L2loopback module so other applications are able to read it. I have written the application using C. I am not sure how to approach doing this. Could you please give me any hints?

解决方案

I have found an answer in the old V4L2loopback module's page on Google code.

http://code.google.com/p/v4l2loopback/source/browse/test.c

newer link: https://github.com/umlaeute/v4l2loopback/blob/master/examples/test.c

This has helped me so far just to write to the device.

这篇关于如何写/管道到由V4L2loopback模块创建的虚拟网络摄像头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆