Example #1
0
        public override bool Start()
        {
            var model = new CapModel();

            pointDetector = new KeypointDetector(settings);
            pointLabeler  = new PointLabeler(settings);
            poseEstimator = new P3PoseEstimator(settings, model);
            return(true);
        }
Example #2
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);
 }