简体   繁体   English

将OpenCV输出流模拟为网络摄像头?

[英]Stream OpenCV output as emulated webcam?

Im working with the Intel Realsense Camera which outputs video in PXCImage format. 我正在使用Intel Realsense摄像头,该摄像头以PXCImage格式输出视频。 I want to read this in Java or C++, convert it to OpenCV Mat format and stream it live as a webcam stream which can be read by any other webcam application. 我想用Java或C ++进行阅读,将其转换为OpenCV Mat格式,并将其作为网络摄像头流进行实时流传输,任何其他网络摄像头应用程序均可读取。

Ive found code to read and convert the stream to Mat format, but Im stuck at the part where I have to output it as a webcam stream so it can be read by any arbitrary application. 我已经找到了读取流并将其转换为Mat格式的代码,但是我陷入了必须将其输出为网络摄像头流的部分,以便可以被任何任意应用程序读取。

Is there any way in C++ or java to emulate a webcam and output video through it ? C ++或Java中有什么方法可以模拟网络摄像头并通过它输出视频?

If you only want to re-stream the video ffserver would help. 如果您只想重新流式传输视频,则ffserver会有所帮助。 It's part of ffmpeg package which is a standalone application but with some tricks can also be called from C/C++. 它是ffmpeg程序包的一部分,后者是一个独立的应用程序,但也可以从C / C ++中调用一些技巧

Alternatively you can use kurento media server which allows you to write custom OpenCV plugin for manipulating the video stream. 或者,您可以使用kurento媒体服务器,该服务器允许您编写自定义的OpenCV插件来处理视频流。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM