public void Initialize() { var model = modelInitializer.CreateModel(activationCountsPerLayer, activationFunction); trainingInputOutputPairs = dataSource.GetData(DataPurpose.Training); testInputOutputPairs = dataSource.GetData(DataPurpose.Test); learner.Initialize(model); }
public void Initialize(Image <Gray, byte> frame, IBoundingBox bb) { _objectModel.Initialize(); if (_useTracker) { _tracker.Initialize(frame, bb); } if (_useDetector) { _detector.Initialize(frame, bb); } if (_useLearner) { _learner.Initialize(frame, bb); } _boundingBoxes = new List <IBoundingBox>(); _currentFrame = frame; _currentBb = bb; _currentBbValid = true; }