Пример #1
0
 static void TestReplay(string path)
 {
     CeptonSDK.Initialize(ErrorCallback);
     CaptureReplay.Open(path);
     Thread.Sleep(1000);
     CeptonSDK.DeInitialize();
 }
Пример #2
0
 static void TestSensorOjbect()
 {
     CeptonSDK.Initialize(ErrorCallback);
     Thread.Sleep(1000);
     foreach (var s in CeptonSDK.Sensors)
     {
         var points = s.GetImagePoints(1000);
         foreach (var p in points)
         {
             Console.WriteLine(p);
         }
     }
     CeptonSDK.DeInitialize();
 }
Пример #3
0
        static void Main(string[] args)
        {
            // TestSensorOjbect();
            // TestReplay(args[0]);
            CeptonSDK.Initialize(ErrorCallback);
            Console.WriteLine("SDK initialized");
            Thread.Sleep(2000); // Wait for 2 seconds for sensor discovery
            Sensor s = CeptonSDK.Sensors.FirstOrDefault();

            if (s != null)
            {
                Console.WriteLine("Found sensor #{0}", s.SerialNumber);
                for (int i = 0; i < 10; i++)
                {
                    var image_points = s.GetImagePoints(100);
                    Console.WriteLine("Got {0} points", image_points.Length);
                }
            }

            CeptonSDK.DeInitialize();
            Console.WriteLine("SDK deinitialized");
        }