12345678910111213141516171819202122232425 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using bbiwarg.Recognition.Tracking;
- namespace bbiwarg.Recognition.HandRecognition
- {
- class HandTracker : Tracker<Hand, TrackedHand>
- {
- public List<Hand> Hands { get { return getCurrentObjectsWithState(TrackingState.Tracked); } }
- public HandTracker()
- : base(Constants.HandTrackerMinSimilarity)
- {
- }
- protected override TrackedHand createTrackedObject(Hand detectedObject)
- {
- return new TrackedHand(idPool.getNextUnusedID(), detectedObject, Constants.HandTrackerNumFramesDetectedUntilTracked, Constants.HandTrackerNumFramesLostUntilDeleted);
- }
- }
- }
|