MJPEG stream fails to open in OpenCV 2.4

南笙酒味 提交于 2019-12-04 17:48:45

Try adding a dummy param, that hints at the mjpeg content:

const string videoStreamAddress = "http://192.168.0.28:8080/?action=stream&type=mjpg";

I found the answer, it is similar to what Hitesh suggested, I just needed to have a . before mjpg to make OpenCV think it was a URI to a file.

I found this in this answer to a similar question.

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