public HandTracker(TrackerConfig trackerConfig) { if (trackerConfig == null || trackerConfig.BufferDuration <= 0) { throw new Exception("storage duration must be greater than 0"); } TrackerConfig = trackerConfig; _samples = new Queue <HandTrackerSample>(); _allFrames = new Queue <DateTime>(); }
public static Config Default() { Config config = new Config(); //config.BinaryThreshold = MinMax.Default(); //config.HSVThreshold = HSVThresholdConfig.Default(); config.BlurConfig = BlurConfig.Default(); config.FaceConfig = FaceConfig.Default(); config.MorphConfig = MorphConfig.Default(); config.BackGroundRemoveConfig = BackGroundRemoveConfig.Default(); config.ScaleDownConfig = ResizeConfig.Default(); config.TrackerConfig = TrackerConfig.Default(); config.ColorSkinCalibrationConfig = ColorSkinCalibrationConfig.Default(); config.BackGroundRemoveConfig = BackGroundRemoveConfig.Default(); //config.YCrCbThresholdConfig = YCrCbThresholdConfig.Default(); config.SkinDetectConfig = SkinDetectConfig.Default(); return(config); }
public HandTrackerViewModel(TrackerConfig config) { _config = config; Tracker = new HandTracker(config); }