Esempio n. 1
0
 /// <summary>
 /// 使用序列号初始化相机
 /// </summary>
 /// <param name="serial"></param>
 /// <returns></returns>
 public bool InitCamera(uint serial)
 {
     try
     {
         Dispose();
         system = new GoSystem();
         sensor = system.FindSensorById(serial);
         sensor.Connect();
         Console.WriteLine("InitCamera :" + serial);
         return(true);
     }
     catch (Exception ex)
     {
         Console.WriteLine("InitCamera Error:" + ex.Message);
         return(false);
     }
 }