// Process new frame public override void process_Frame1(VsImage lastFrame) { try { if (cvAlgo == null) { width = lastFrame.Image.Width; height = lastFrame.Image.Height; cvAlgo = new VsCvEllipseDetection(1, 1, width, height, cvDepth.Depth8U, 3); cvAlgo.VsInit(); return; } cvAlgo.VsConfiguration(int.Parse(AnalyzerConfiguration["Threshold"].ToString())); lastFrame.Image = cvAlgo.VsProcess(lastFrame.Image); lastFrame.Result = cvAlgo.VsResult(); lastFrame.IsAnalyzed = true; lastFrame.IsDetected = true; } catch { } }