private RecognitionResult RunFacialRecognitionProcessor(FacialRecognitionProcessor processor) { var testFrame = new Bitmap("testframe.png"); var recoResult = new RecognitionResult { OriginalBitmap = testFrame, ProcessedBitmap = (Bitmap)testFrame.Clone() }; var trackingResults = Newtonsoft.Json.JsonConvert.DeserializeObject<TrackingResults>(File.ReadAllText("testframe.json")); var sw = new Stopwatch(); sw.Start(); processor.Process(recoResult, trackingResults); sw.Stop(); return recoResult; }