Example #1
0
 public ColorDetectRunner(ICaptureGrab capture)
     : base(capture)
 {
     Settings = new ColourDetectSettings();
     // useful defaults - red under lights
     Settings.LowThreshold = new MCvScalar(140, 57, 25);
     Settings.HighThreshold = new MCvScalar(187, 153, 82);
     Settings.MomentArea = new RangeF(200,400);
 }
Example #2
0
        public ServoSorter(
            ICaptureGrab capture
            ,ConsoleOptions options) : base(capture)
        {
            _servoPosition = 70;

            Settings = options.ColourSettings;

            _debounceWatch = new Stopwatch();

            var deviceFactory = new Pca9685DeviceFactory();
            var device = deviceFactory.GetDevice(options.UseFakeDevice);
            SetLogLevel(device);
            
            _pwmControl = new ServoSortPwmControl(device);
            _pwmControl.Init();

            _detector = new ColourDetector();
        }
Example #3
0
 public ColourDetectorInput()
 {
     Settings = new ColourDetectSettings();
     ErodeDilateIterations = 1;
 }
Example #4
0
 public ColourDetectorInput()
 {
     Settings = new ColourDetectSettings();
 }
Example #5
0
 public ColourDetectorInput()
 {
     Settings = new ColourDetectSettings();
     ErodeDilateIterations = 1;
 }
Example #6
0
 public ColorDetectRunner(ICaptureGrab capture, ColourDetectSettings settings)
     : base(capture)
 {
     Settings = settings;
 }