草庐IT

c++ - OpenCV : Open Mobotix Camera Feed

我有一个Mobotix相机。这是一个网络摄像机。在API中,他们为我们提供了通过以下方式获取提要的可能性http://[user]:[password]@[ip_adress]:[port]/cgi-bin/faststream.jpg?[options]我试过的是像普通网络摄像头一样打开它:cv::VideoCapturecapture("http://...");cv::Matframe;if(capture.isOpened())//alwaysfalseanyway.while(1){capture.read(frame);cv::imshow("Hithere",frame)