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); }
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(); }
public ColourDetectorInput() { Settings = new ColourDetectSettings(); ErodeDilateIterations = 1; }
public ColourDetectorInput() { Settings = new ColourDetectSettings(); }
public ColorDetectRunner(ICaptureGrab capture, ColourDetectSettings settings) : base(capture) { Settings = settings; }