Tag: ip camera

如何将IP摄像机流转换为C#?

我已经使用AForge库来制作这个小程序,它显示从网络摄像头到PictureBox的实时馈送。 private FilterInfoCollection VideoCaptureDevices; private VideoCaptureDevice FinalVideoDevice; private void Form1_Load(object sender, EventArgs e) { VideoCaptureDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice); try { foreach (FilterInfo VidCapDev in VideoCaptureDevices) { comboBox1.Items.Add(VidCapDev.Name); comboBox1.SelectedIndex = 0; } FinalVideoDevice = new VideoCaptureDevice(VideoCaptureDevices[comboBox1.SelectedIndex].MonikerString); FinalVideoDevice.NewFrame += new NewFrameEventHandler(FinalVideoDevice_NewFrame); FinalVideoDevice.Start(); } catch { MessageBox.Show(“No camera found. Please connect your camera and click RESET.”); } } […]

如何使用c#在Visual Studio上创建实时video录制程序?

我目前正在为学校做一个项目,迫切需要帮助。 该项目的主要要点: 我在演讲期间使用3台博世Dinion IP摄像机给学生拍照。 我必须在Visual Studio上创建一个程序,使讲师能够在一个屏幕上查看所有3个摄像头,能够记录所有3个片段,然后将它们保存在数据库中。 关于博世的事情是,我在网上提到的材料非常有限。 我已经提到了Bosch和Ozeki的SDK,但我似乎无法弄清楚代码。 我寻求一些人的帮助,他们告诉我使用Onvif(我不确定如何使用它)。 我非常感谢能得到的所有帮助,如果可能的话,我会用简单的语言解释。 非常感谢!

一段时间后,IP Camera停止流式传输

我正在开发一个应用程序,我想使用IP camera显示video流,以及对IP Camera捕获的图像进行一些其他主要操作。 摄像头捕获中使用的库用于摄像头捕获: Emgu.CV库 下面是我在C#中使用的代码。 变量声明 private Capture capture; //takes images from camera as image frames private Emgu.CV.UI.ImageBox img; // Dynamic Picture Controls private int nCam; // no of cameras 处理图像的代码 private void ProcessFrame(object sender, EventArgs arg) { try { // Live Streaming Display Image ImageFrame = capture.QueryFrame(); // If Ip camera try to […]