无法将相机 IP 与 Emgu 连接
Can't connect camera ip with Emgu
像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
。
非常感谢!!!
我建议的一件事是确保您使用的是 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;
}
像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
。
非常感谢!!!
我建议的一件事是确保您使用的是 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;
}