2016-12-05 52 views
0

如今我使用霍尼韦尔IP摄像头进行图像处理应用。但不幸的是,我无法在c#编程中使用opencvsharp打开它。用c#访问Honeywell-Box(HICC-P-2100X)IP摄像机?

所以,我想分享我的代码的一部分,我使用以太网电缆直接连接它(从我的笔记本电脑到IP摄像机)。我定义了静态IP到我的笔记本电脑,我可以连接它使用默认的IP配置通过Internet Explorer.But我无法连接并使用C#编程打开此摄像头。

我试过所有相关的链接,使其工作如下。任何帮助将高度apreciated。

string v2 = @"http://192.168.0.101:5060/h264"; 
CvCapture camera = new CvCapture(v2) 

string v2 = @"http://admin:[email protected]:564/h264"; 
string v2 = @"rtsp://admin:[email protected]:564/h264"; 
string v2 = @"http://192.168.0.101:564/img/video.mjpeg"; 
string v2 = @"http://admin:[email protected]:564/img/video.mjpeg"; 
string v2 = @"http://192.168.0.101:564/img/video.mjpeg"; 
string v2 = @"http://192.168.0.101:564/img/video.asf"; 
string v2 = @"http://192.168.0.101:564/img/video.mjpeg"; 

所有这些方法是按照下面的相关链接定义(我几乎尝试了所有,但我不能成功 http://www.camera-sdk.com/p_183-how-to-connect-to-your-honeywell-ip-camera-onvif.html``

related image

+0

不是c#但也许有用:https://stackoverflow.com/questions/21324785/ip-camera-access-using-opencv?rq=1 – C1sc0

回答

0

您可以使用http://www.aforgenet.com/framework/docs/html/dbf7400d-fbe9-e770-57aa-f63bc507c917.htm JPGStream捕捉到你的视频。

_videoSource = new JPEGStream(ConnectionString); 


_videoSource.NewFrame += new NewFrameEventHandler(video_NewFrame); 
_videoSource.Start(); 

而且在捕获后你可以用ope NCV。

+0

但我想告诉你,“CvCapture”方法正在与我的摄像头。我定义为“CvCapture摄像头=新CvCapture(0)”,它打开我的网络摄像头图像处理应用程序正确。但不幸的是我不能应用相同的方法为IP摄像头。我认为我的定义(链接)对于这台相机,你可以看到上面。 – Xspacex