使用OpenCV输出作为网络摄像头 [英] Using OpenCV Output as Webcam

查看:205
本文介绍了使用OpenCV输出作为网络摄像头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我想编写一个程序,以将来自OpenCV的处理后的输出视为WebCam.我想用它为Skype之类的程序创建效果.我被困住了,Google搜寻无济于事.请帮我.我需要为此得到驱动程序吗?将其存储为AVI并将该AVI与其他应用程序进行流式传输怎么办?

So, I want to write a program to make the processed output from OpenCV be seen as a WebCam. I want to use it to create effects for a program like Skype. I am stuck and Googling has led to no help. Please help me. Do I need to get a driver for this? What about storing as an AVI and streaming that AVI with some other application?

我想编写一个遮脸的程序,这样当我与正在辅导但又不认识的人进行Skype交流时,我不必担心自己的隐私!

I want to write a program to mask my face so I don't need to worry about my privacy when Skype-ing with people I am tutoring and don't personally know!

顺便说一句,我对C ++有点陌生.但是,这是我更喜欢的语言.但是,我也了解Java和Python.

By the way, I am kinda new with C++. However, that is the language I prefer. However, I understand Java and Python as well.

您是否建议我尝试获取另一个库/库集合,例如OpenFrameworks?

Would you suggest I try to get another library/collection of libraries, like OpenFrameworks?

我正在用C ++编写OpenCV.这是我可用的所有平台: Ubuntu: 来自apt-get的OpenCV,带有pkg-config,QT Creator Ubuntu: 来自apt-get的OpenCV,带有pkg-config和QT Creator libfreenect Windows 7的: OpenCV 2.4.8.0,最新的二进制文件,x86,Visual Studio 2010 Express Windows 7的: 未安装OpenCV Windows 8.1专业版: OpenCV 2.4.8.0,最新二进制文件,x86,Visual Studio Express 2013 Express桌面,Hyper-V,与Windows 7:1相同的配置

I am programming OpenCV in C++. Here are all the available platforms for me: Ubuntu: OpenCV from apt-get, with pkg-config, QT Creator Ubuntu: OpenCV from apt-get, with pkg-config, and libfreenect, QT Creator Windows 7: OpenCV 2.4.8.0, latest binaries, x86, Visual Studio 2010 express Windows 7: OpenCV Not Installed Windows 8.1 Pro: OpenCV 2.4.8.0, latest binaries, x86, Visual Studio Express 2013 Express Desktop, Hyper-V, Same configuration as Windows 7:1

我注意到了一些困惑.我正在尝试使用来自打开的CV的进程输出,并将其发送到另一个程序,如Skype.主要目的是我要教小学的孩子编程和OpenCV.我想直接流式传输输出,因此不必共享我的桌面.

I noticed a bit of confusion. I am trying to use the processes output from open CV and send it to another program like Skype. Main intention is that I am going to teach elementary school kids programming and OpenCV. I'd like to directly stream the output so I don't have to share my desktop.

推荐答案

因此,我为此找到了一个方法.不一定是最好的方法,但肯定可以..

So, I found a hack for this; not necessarily the best method but it DEFINITELY works..

下载类似于 SplitCam 的程序;

因此,从本质上讲,您可以编写一个程序来处理网络摄像头视频并使用OpenCV的highgui窗口进行显示,并且可以使用SplitCam将此窗口用作其他任何应用程序(如Skype)的输入.我现在尝试了它,效果很好.!

So in essence, you can write a program to process the webcam video and display it using OpenCV's highgui window and you can use SplitCam to just take this window as input for any other application like Skype. I tried it right now it works perfectly.!

HTH

这篇关于使用OpenCV输出作为网络摄像头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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