Example #1
0
 private static void create_camera_component(CameraComponent camera, int camNumber)
 {
     Console.WriteLine($"Camera created name={camera.Name.Value} nativeName={camera.NativeName()}");
     //camera.Dump();
     camera.SetStereoscopicMode(StereoScopicMode.Default);
     camera.SetCameraNum(camNumber);
     if (camera.OutputCount == 0)
     {
         Console.WriteLine("Camera doesn't have output ports");
         return;
     }
     //camera sensor mode
     camera.SetSensorMode(0);
     //TODO : camera settings events
 }