示例#1
0
 public Sign()
 {
     SignName = "";
     SignClass = HandShapes.NoClass;
     ImgLocation = "";
     VidLocation = "";
     SignModel = null;
 }
示例#2
0
 public Sign(string signName, HandShapes signClass, string imgLocation, string vidLocation, EngineModel signModel)
 {
     SignName = signName;
     SignClass = signClass;
     ImgLocation = imgLocation;
     VidLocation = vidLocation;
     SignModel = signModel;
 }
示例#3
0
        public void TestSavingThenLoadingResultsInNoChanges()
        {
            var engine = new EngineModel(skelHMM, handHMM);
            var orig = new Sign(SignName, HandShape, ImageFile, VideoFile, engine);
            var saveLocation = Sign.ToFile(orig);

            var loaded = Sign.FromFile(saveLocation);
            TestSignResourcesAreValid(loaded);
            Directory.GetCurrentDirectory();
            TestSignsLessResourcesAreEqual(orig, loaded);
        }
示例#4
0
 private void OnTimerEvent(object sender, EventArgs eventArgs)
 {
     if (currentCount < 0)
     {
         lblCountDown.Content    = "";
         lblCountDown.Visibility = Visibility.Hidden;
         StopTimer();
         // record this training sequence
         if (examples.Count == 0 && s.VidLocation == "")
         {
             Model.RecordSequenceWithVideo(AddTrainingExampleWithVideo, LowEntropyHandler, HighEntropyHandler);
         }
         else
         {
             Model.RecordSequence(AddTrainingExample, LowEntropyHandler, HighEntropyHandler);
         }
     }
     else
     {
         // Count down each training (Count down 3...2...1.)
         lblCountDown.Content = (currentCount == 0) ? "Start!" : (currentCount).ToString();
         currentCount--;
     }
 }