C#联合Visionpro开发之实时显示
标签:开发 fit col gre isp fifo ogre box bsp
1 ///
2 ///1#相机实时显示
3 ///
4 ///
5 ///
6 private void checkBox1_CheckedChanged(object sender, EventArgs e)
7 {
8 //首先判断相机是否连接好了。
9
10 //调用实时显示方法
11 if (checkBox1.Checked)
12 {
13 ICogAcqFifo myCamera;
14 CogAcqFifoTool myAcqFifoTooL = Variable.myToolBlock[0].Tools["CogAcqFifoTool1"] as CogAcqFifoTool;
15 try
16 {
17 myAcqFifoTooL.Run();
18 if (myAcqFifoTooL.OutputImage == null)
19 {
20 MessageBox.Show("1#相机连接异常!!!");
21 ShowMsg("1#相机连接异常!!!");
22 return;
23 }
24 }
25 catch
26 {
27 ShowMsg("1#实时显示失败!!");
28 return;
29 }
30 myCamera = myAcqFifoTooL.Operator;
31 cogRecordDisplay1.StartLiveDisplay(myCamera, false);//实时显示
32 cogRecordDisplay1.AutoFit = true;
33 }
34 else
35 {
36 //停止实时显示
37 cogRecordDisplay1.StopLiveDisplay();
38 }
39
40 }
C#联合Visionpro开发之实时显示
标签:开发 fit col gre isp fifo ogre box bsp
原文地址:https://www.cnblogs.com/MaZai/p/10280856.html
评论