Пример #1
0
 private void Run()
 {
     surveillance.ImageGrabbed           += SurveillanceOnImageGrabbed;
     surveillance.FaceDetected           += SurveillanceOnFaceDetected;
     surveillance.RecognitionSuccessfull += Surveillance_RecognitionSuccessfull;
     surveillance.Start();
 }
Пример #2
0
        private static void RunOptions(FaceRecognitionParams facePars)
        {
            //var c = new CudaFaceEyeDetector("a", "b");
            var surveillance = new Surveillance(
                VideoGrabFactory.GetMockCamera(facePars.TestSet), new FileSystemDAL(facePars.DataSet), facePars.Confidence);

            surveillance.EnsureTrained();
            surveillance.Start();
            //RunTestData(surveillance, DebugHelper.OutputPath);
            Console.ReadKey();
        }