EmguCV 不读取相机
EmguCV not reading camera
我在使用 EmguCV 3.1
的正常 windows 表单应用程序中有以下代码
public Form1()
{
InitializeComponent();
_capture = new Capture("http://root:pass@192.168.1.27:80/axis-cgi/mjpg/video.cgi");
_capture.ImageGrabbed += ProcessFrame;
}
private void Form1_Load(object sender, EventArgs e)
{
_capture.Start();
}
private void ProcessFrame(object sender, EventArgs e)
{
Mat image = new Mat();
_capture.Retrieve(image);
imageBox1.BackgroundImage = image.Bitmap;
}
我已经在浏览器中测试了上面的 link 它有效,我也使用 iSpy 测试了它它也在那里有效但是从未达到使用 EmguCV ProcessFrame
我也尝试过使用 Luxand 连接到相机并且效果很好但 Luxand 不是免费的所以我必须使用 EmguCV 进行人脸检测和识别
查看此 post,尝试在 url 中的 .cgi 之后添加 ?x.mjpeg。
我在使用 EmguCV 3.1
的正常 windows 表单应用程序中有以下代码 public Form1()
{
InitializeComponent();
_capture = new Capture("http://root:pass@192.168.1.27:80/axis-cgi/mjpg/video.cgi");
_capture.ImageGrabbed += ProcessFrame;
}
private void Form1_Load(object sender, EventArgs e)
{
_capture.Start();
}
private void ProcessFrame(object sender, EventArgs e)
{
Mat image = new Mat();
_capture.Retrieve(image);
imageBox1.BackgroundImage = image.Bitmap;
}
我已经在浏览器中测试了上面的 link 它有效,我也使用 iSpy 测试了它它也在那里有效但是从未达到使用 EmguCV ProcessFrame
我也尝试过使用 Luxand 连接到相机并且效果很好但 Luxand 不是免费的所以我必须使用 EmguCV 进行人脸检测和识别
查看此 post,尝试在 url 中的 .cgi 之后添加 ?x.mjpeg。