如何对摄像头传来的实时视频截图
现在自己有个问题解决不了,如何对于摄像头传来的实时视频进行处理,对它进行截图,截成jpg文件--------------------编程问答-------------------- http://wenku.baidu.com/view/bca8f6d0240c844769eaeed4.html --------------------编程问答-------------------- 你的意思不在本地抓? --------------------编程问答-------------------- 我也是准备在做摄像头拍摄的项目,与楼主共同学习 --------------------编程问答-------------------- 回复2楼 你的意思不在本地抓?
不是本地的摄像头,是通过网络传过来的摄像头视频流!怎么对它们进行截图?
不止一个摄像头,多个摄像头每个摄像头都有一个ip地址 --------------------编程问答-------------------- 自己顶一下 --------------------编程问答-------------------- 我有一个可以参考,不知道对你有没有用
axVitaminCtrl1.RemoteIPAddr = "192.168.x.x";
axVitaminCtrl1.UserName = "x";
axVitaminCtrl1.Password = "x";
axVitaminCtrl1.AutoServerModelType = true;
axVitaminCtrl1.Connect();
axVitaminCtrl1.Visible = true;
......
try
{
Thread.Sleep(50);
string path = Directory.GetCurrentDirectory() + "\\Capture";
string capturepath = path + "\\" + DateTime.Now.ToString().Replace(":", ".") + ".jpg"; //摄像头抓拍
if (strRst1 == "IPOK")
{
axVitaminCtrl1.SaveSnapshot(VITAMINDECODERLib.EPictureFormat.ePicFmtBmp, capturepath);
pictureBox1.Image = Image.FromFile(capturepath);
Console.WriteLine(direction_flag.ToString());
Console.WriteLine("Capture picture!");
}
pictureBox1.Visible = true;
}
catch
{
pictureBox1.Visible = false;
Console.WriteLine("wrong with photo");
}
引用了AxInterop.VITAMINDECODERLib.dll
补充:.NET技术 , C#