private void processGestureFrames(string gestureName) { int gestureClassLabel = dataService.gestureToClassLabel(gestureName); FeatureVectorPreprocessor featureVectorPreProcessor = new FeatureVectorPreprocessor(); List <FeatureVector> featureVectors = new List <FeatureVector>(); foreach (Frame gestureFrame in gestureFrames) { FeatureVector featureVector = featureVectorPreProcessor.createFeatureVector(gestureFrame); featureVector.GestureClassLabel = gestureClassLabel; featureVector.Gesture = gestureName; featureVectors.Add(featureVector); } dataService.InsertFeatureVectors(featureVectors); gestureFrames.Clear(); }
public void startFreeMode() { leapControllerProvider = leapController.GetComponent <LeapServiceProvider>(); featureVectorPreprocessor = new FeatureVectorPreprocessor(); StartCoroutine(coroutineName); }