public void OnSoftmaxFire(object soruce, cmdEventArgs e) { if (e.prediction != null) { ThreadHelperClass.SetText(this, label1, e.prediction); } else { ThreadHelperClass.SetText(this, label1, "Recognizing......."); } }
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......."); } }
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); } }