private void Run() { surveillance.ImageGrabbed += SurveillanceOnImageGrabbed; surveillance.FaceDetected += SurveillanceOnFaceDetected; surveillance.RecognitionSuccessfull += Surveillance_RecognitionSuccessfull; surveillance.Start(); }
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(); }