Stream OpenCV output as emulated webcam?

自闭症网瘾萝莉.ら 提交于 2019-12-23 04:44:05

问题


Im working with the Intel Realsense Camera which outputs video in PXCImage format. 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.

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.

Is there any way in C++ or java to emulate a webcam and output video through it ?


回答1:


If you only want to re-stream the video ffserver would help. It's part of ffmpeg package which is a standalone application but with some tricks can also be called from C/C++.

Alternatively you can use kurento media server which allows you to write custom OpenCV plugin for manipulating the video stream.



来源:https://stackoverflow.com/questions/37827867/stream-opencv-output-as-emulated-webcam

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!