コード例 #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();
        }