FingerTracker.cs 699 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using bbiwarg.Recognition.Tracking;
  7. using bbiwarg.Utility;
  8. namespace bbiwarg.Recognition.FingerRecognition
  9. {
  10. class FingerTracker : Tracker<Finger, TrackedFinger>
  11. {
  12. public List<Finger> Fingers { get { return getCurrentObjectsWithState(TrackingState.Tracked); } }
  13. protected override TrackedFinger createTrackedObject(Finger detectedObject)
  14. {
  15. return new TrackedFinger(idPool.getNextUnusedID(), detectedObject, Parameters.FingerTrackerNumFramesDetectedUntilTracked, Parameters.FingerTrackerNumFramesLostUntilDeleted);
  16. }
  17. }
  18. }