我在连接像http://192.168.1.101这样的摄像头IP时遇到了问题。
我在emgu文档中看到了url必须喜欢的内容:
Capture cap = new Capture("rtsp://username:password@[IP Address]/mpeg4/media.amp");但我的相机用在局域网里。
如何将摄像头与IP http://连接?如果不可能,我希望任何人都能说出任何解决办法。
比如将http:// protocol转换为rtsp:// protocol。
非常感谢!
发布于 2015-07-31 11:19:35
我建议的一件事是,确保您使用的是Emgu CV V3,而不是任何较低的版本。
如果您在局域网中使用它,它将仍然有一个IP地址和一个RTSP端口,
我为我的相机输入的东西是:
Capture cap = new Capture("rtsp://username:password@cameraIP:RtspPort");
cap.ImageGrabbed += ProcessFrame;
cap.Start();那么我的ProcessFrame看起来是这样的:
private void ProcessFrame(object sender, EventArgs e)
{
Mat image = new Mat();
_capture.Retrieve(image);
imageBox1.BackgroundImage = image.Bitmap;
}https://stackoverflow.com/questions/31714730
复制相似问题