public JsonResult FindPerson(string file) { var acquisition = new Acquisition(new ImageStore()); var mugMatcher = new MugMatcher(acquisition); var path = Directory.EnumerateFiles(MissingImageLocation).First(f => f.Contains(file)); var results = mugMatcher.Find(path, new ImageFetchRequest(null)); return(Json(results)); }
public void Find_WithLocalImageFetcher_FindsFace() { SetupKeys(); DeleteExistingTempFilesFiles(); const string faceToMatch = @"C:\Users\robert.marshall.FIOFFICE\Documents\HackManchester\TestImages\MissingPeople\Matt.jpg"; var acquisition = new Acquisition(new ImageStore()); var matcher = new MugMatcher(acquisition); var imageFetchRequest = new ImageFetchRequest(new GeoLocation()); var results = matcher.Find(faceToMatch, imageFetchRequest); Assert.That(results, Is.Not.Empty); }