Exemplo n.º 1
0
        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>();
        }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public HandTrackerViewModel(TrackerConfig config)
 {
     _config = config;
     Tracker = new HandTracker(config);
 }