// Wait for a camera to be detected. static void WaitForCamera() { Console.WriteLine("Waiting for a camera "); while (Pv.CameraCount() == 0) { Console.Write("."); Thread.Sleep(250); } Console.WriteLine(""); }