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(); }
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(); }
public HelpCommand(Application app) { _app = app; }
public ExitCommand(Application app) { _app = app; }