Example #1
0
 public HandDataSource(IShapeDataSource shapeDataSource, HandDataSourceSettings settings)
     : base(shapeDataSource)
 {
     this.factory      = new ShapeHandDataFactory(settings);
     this.size         = shapeDataSource.Size;
     this.CurrentValue = new HandCollection();
 }
Example #2
0
 public ShapeHandDataFactory(HandDataSourceSettings settings)
 {
     this.settings            = settings;
     this.fingerPointDetector = new FingerPointDetector(settings);
     this.fingerBaseDetector  = new FingerBaseDetector(settings);
     this.palmFinder          = new PalmFinder(settings);
     this.currentValue        = new HandCollection();
 }
Example #3
0
 public ShapeHandDataFactory(HandDataSourceSettings settings)
 {
     this.settings = settings;
     this.fingerPointDetector = new FingerPointDetector(settings);
     this.fingerBaseDetector = new FingerBaseDetector(settings);
     this.palmFinder = new PalmFinder(settings);
     this.currentValue = new HandCollection();
 }
Example #4
0
        public static void SetToDefault(HandDataSourceSettings settings)
        {
            settings.MinimumDistanceBetweenFingerPoints           = 25;
            settings.MinimumDistanceIntersectionPoints            = 30;
            settings.MinimumDistanceFingerPointToIntersectionLine = 22;
            settings.MaximumDistanceBetweenIntersectionPoints     = 27;

            settings.DetectFingers         = true;
            settings.DetectCenterOfPalm    = true;
            settings.DetectFingerDirection = true;

            settings.PalmAccuracySearchRadius = 8;
            settings.PalmContourReduction     = 8;

            settings.FingerBaseIndexOffset    = 10;
            settings.FingerBaseOffsetDistance = 770;

            settings.FramesForNewFingerPoint          = 3;
            settings.FramesForDiscontinuedFingerPoint = 2;
        }
Example #5
0
        public static void SetToDefault(HandDataSourceSettings settings)
        {
            settings.MinimumDistanceBetweenFingerPoints = 25;
            settings.MinimumDistanceIntersectionPoints = 30;
            settings.MinimumDistanceFingerPointToIntersectionLine = 22;
            settings.MaximumDistanceBetweenIntersectionPoints = 27;

            settings.DetectFingers = true;
            settings.DetectCenterOfPalm = true;
            settings.DetectFingerDirection = true;

            settings.PalmAccuracySearchRadius = 8;
            settings.PalmContourReduction = 8;

            settings.FingerBaseIndexOffset = 10;
            settings.FingerBaseOffsetDistance = 770;

            settings.FramesForNewFingerPoint = 3;
            settings.FramesForDiscontinuedFingerPoint = 2;
        }
Example #6
0
 public FingerBaseDetector(HandDataSourceSettings settings)
 {
     this.indexOffset    = settings.FingerBaseIndexOffset;
     this.offsetDistance = settings.FingerBaseOffsetDistance;
 }
Example #7
0
 public PalmFinder(HandDataSourceSettings settings)
 {
     this.searchRadius = settings.PalmAccuracySearchRadius;
     this.contourReduction = settings.PalmContourReduction;
 }
Example #8
0
 public FingerPointDetector(HandDataSourceSettings settings)
 {
     this.settings = settings;
     this.lineThinner = new LineThinner(this.settings.MinimumDistanceBetweenFingerPoints, true);
 }
Example #9
0
 public FingerBaseDetector(HandDataSourceSettings settings)
 {
     this.indexOffset = settings.FingerBaseIndexOffset;
     this.offsetDistance = settings.FingerBaseOffsetDistance;
 }
Example #10
0
 public FingerPointDetector(HandDataSourceSettings settings)
 {
     this.settings    = settings;
     this.lineThinner = new LineThinner(this.settings.MinimumDistanceBetweenFingerPoints, true);
 }
Example #11
0
 public PalmFinder(HandDataSourceSettings settings)
 {
     this.searchRadius     = settings.PalmAccuracySearchRadius;
     this.contourReduction = settings.PalmContourReduction;
 }