public MainUIHandler(IMainUserInterface mainUserInterface)
 {
     this.mainUserInterface = mainUserInterface;
     visionService          = new VisionService();
     visionService.FaceApiSubscriptionKey  = Resources.face_api_subscription_key;
     visionService.VideoApiSubscriptionKey = Resources.video_api_subscription_key;
     visionService.Logable = mainUserInterface;
     outputFacesDir        = Resources.output_dir_name;
     if (!Directory.Exists(outputFacesDir))
     {
         Directory.CreateDirectory(outputFacesDir);
     }
 }
Esempio n. 2
0
 public SparseArrayLuncher(IMainUserInterface userInterface, IStringsCollector stringsCollector, IStringMatcher stringMatcher)
 {
     _userInterface    = userInterface;
     _stringsCollector = stringsCollector;
     _stringMatcher    = stringMatcher;
 }