Beispiel #1
0
 public override bool Stop()
 {
     imageCleaner.CleanUpAll();             // might leave some images left
     pointDetector = null;
     pointLabeler  = null;
     poseEstimator = null;
     return(true);
 }
Beispiel #2
0
        public override bool Start()
        {
            var model = new CapModel();

            pointDetector = new KeypointDetector(settings);
            pointLabeler  = new PointLabeler(settings);
            poseEstimator = new P3PoseEstimator(settings, model);
            return(true);
        }
Beispiel #3
0
        public P3CapTracker(EquipmentSettings settings) : base()
        {
            if (settings == null)
            {
                throw new ArgumentNullException("settings");
            }
            this.settings      = new EquipmentSettings(settings);
            this.pointDetector = null;
            this.pointLabeler  = null;
            this.poseEstimator = null;
            IRasterImageBase frame = new TrackerVideoFrame(1, 1, new byte[1]);

            this.imageOut     = SharedRef.Create(frame);
            this.imageCleaner = new SharedRefCleaner(32);
            this.trackerSync  = new object();
        }
Beispiel #4
0
 public override bool ApplySettings(EquipmentSettings settings)
 {
     if (settings == null)
     {
         throw new ArgumentNullException("settings");
     }
     lock (trackerSync) {
         this.settings = new EquipmentSettings(settings);
         if (Running)
         {
             var model = new CapModel();
             pointDetector = new KeypointDetector(this.settings);
             pointLabeler  = new PointLabeler(this.settings);
             poseEstimator = new P3PoseEstimator(this.settings, model);
         }
     }
     return(true);
 }