예제 #1
0
        private static void Main(string[] args)
        {
            ServicesWorker.Registration(new CoreModule());

            var faceRecognizerService = ServicesWorker.GetInstance<FaceRecognizerService>();
            faceRecognizerService.FaceCascadeClassifier =
                new CascadeClassifier(Application.StartupPath + "\\Cascade\\haarcascade_frontalface_default.xml");
            faceRecognizerService.Recognized += WriteResult;
            faceRecognizerService.GenderRecognized += WriteResult;
            faceRecognizerService.OnGenderCount += WriteGenderRecognizedCount;
            faceRecognizerService.OnCount += WriteCount;
            faceRecognizerService.Load();

            var app = new CommandProcessor.Application();
            app.Run();
            Console.ReadKey();
        }
예제 #2
0
        private static void Main(string[] args)
        {
            ServicesWorker.Registration(new CoreModule());

            var faceRecognizerService = ServicesWorker.GetInstance <FaceRecognizerService>();

            faceRecognizerService.FaceCascadeClassifier =
                new CascadeClassifier(Application.StartupPath + "\\Cascade\\haarcascade_frontalface_default.xml");
            faceRecognizerService.Recognized       += WriteResult;
            faceRecognizerService.GenderRecognized += WriteResult;
            faceRecognizerService.OnGenderCount    += WriteGenderRecognizedCount;
            faceRecognizerService.OnCount          += WriteCount;
            faceRecognizerService.Load();

            var app = new CommandProcessor.Application();

            app.Run();
            Console.ReadKey();
        }
예제 #3
0
 public HelpCommand(Application app)
 {
     _app = app;
 }
예제 #4
0
 public ExitCommand(Application app)
 {
     _app = app;
 }