Пример #1
0
 public void OnSoftmaxFire(object soruce, cmdEventArgs e)
 {
     if (e.prediction != null)
     {
         ThreadHelperClass.SetText(this, label1, e.prediction);
     }
     else
     {
         ThreadHelperClass.SetText(this, label1, "Recognizing.......");
     }
 }
Пример #2
0
 public void OnSoftmaxFire(object soruce, cmdEventArgs e)
 {
     if (e.prediction != null)
     {
         ThreadHelperClass.SetText(this, simbolLabel, "acc= " + e.acc + "%");
         PredictionDisplay.Image =
             VisualExamples.img_dic[currentWritingSystem][Int32.Parse(e.prediction)];
     }
     else
     {
         ThreadHelperClass.SetText(this, simbolLabel, "Recognizing.......");
     }
 }
Пример #3
0
 protected virtual void OnSoftmaxFire(Process process, string stream)
 {
     // Debug.Print("loaded3");
     if (SoftmaxFire != null)
     {
         //  Debug.Print("loaded3.5");
         string[]     args = stream.Split('#');
         cmdEventArgs e    = new cmdEventArgs();
         e.prediction = args[0];
         e.acc        = args[1];
         // Debug.Print("loaded4.5");
         e.process = process;
         SoftmaxFire(this, e);
     }
 }