问题描述
我写了一个应用程序从网络摄像头读取,并使用OpenCV在Linux上处理帧。现在我想把我的应用程序的输出管道到由V4L2loopback模块创建的虚拟网络摄像头,以便其他应用程序能够读取它。我使用C编写应用程序。我不知道如何做到这一点。
我在Google代码的旧版V4L2loopback模块页面中找到了一个答案。 p>
较新的链接:
这帮助我到目前为止只是写入设备。
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模块创建的虚拟网络摄像头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!