Beispiel #1
0
 public RecognitionClass(string dir_path, string model_path,
                         All_Results all_results, CancellationToken token, CancellationTokenSource cancelTokenSource)
 {
     this.dir_path          = dir_path;
     this.model_path        = model_path;
     this.all_results       = all_results;
     this.token             = token;
     this.cancelTokenSource = cancelTokenSource;
 }
Beispiel #2
0
 public Inferencer(string dir_path, string model_path, CancellationToken token,
                   All_Results all_results, AutoResetEvent waitHandler)
 {
     this.dir_path    = dir_path + "\\";
     this.model_path  = model_path;
     this.token       = token;
     this.files       = (Directory.GetFiles(dir_path));
     this.all_results = all_results;
     this.waitHandler = waitHandler;
 }