Ejemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="tomatoSets">
 /// The tomato set divided into training and validation.
 /// In the training set, the classificator learns the svm params.
 /// The classifier predicts label on the validation set.
 /// </param>
 public Controller(
     IDictionary <SetType, List <Tomato> > tomatoSets)
 {
     this.images    = new List <VisualEvent>();
     imageExtractor = new LBPExtractor(true);
     imageExtractor.VisualEventManager += OnImageComputed;
     classifier      = new TomatoClassifier(new LBPExtractor(false), SVMClassifier.Linear(0.43f));
     this.tomatoSets = tomatoSets;
 }
Ejemplo n.º 2
0
        static TomatoClassifier standardClassifier()
        {
            var extractor = new LBPExtractor(false);

            return(new TomatoClassifier(extractor, SVMClassifier.Linear(0.43f))); //best performance with 0.43
        }