Esempio n. 1
0
 /// <summary>
 /// Returns an instance of Bear model.
 /// </summary>
 public Bear()
 {
     string codeBase = Assembly.GetExecutingAssembly().CodeBase;
     UriBuilder uri = new UriBuilder(codeBase);
     string dllpath = Uri.UnescapeDataString(uri.Path);
     string modelpath = Path.Combine(Path.GetDirectoryName(dllpath), "Bear");
     string path = Path.Combine(modelpath, "00000001");
     manager = new ModelManager(path, true);
     manager.InitModel(modelName, int.MaxValue);
 }
Esempio n. 2
0
 /// <summary>
 /// Returns instance of Bear model instantiated from exported model path.
 /// </summary>
 /// <param name="path">Exported model directory.</param>
 public Bear(string path)
 {
     manager = new ModelManager(path, true);
     manager.InitModel(modelName, int.MaxValue);
 }