public void DoToggleAnnotate(bool annotate) { Camera.Annotate = annotate; ConsoleService.Write("Annotate: " + annotate); // reload image if (Camera.Design) { TrackerService.Start(); } }
public void DoToggleTracking(bool enabled) { if (enabled) { if (CameraService.Enabled) { CameraService.Stop(); } Camera.Tracking = TrackerService.Start(); } else { Camera.Tracking = TrackerService.Stop(); if (Camera.ShowImage) { CameraService.Start(); } } ConsoleService.Write("Tracking: " + enabled); }