CIContext CreateContext() { var options = new CIContextOptions { UseSoftwareRenderer = false }; return(CIContext.FromOptions(options)); }
public override void ViewDidLoad() { base.ViewDidLoad(); this.Title = "Intelligent Kiosk"; SetupSource(); var options = new CIContextOptions(); faceDetector = CIDetector.CreateFaceDetector(null, true); borderImage = UIImage.FromFile("square.png"); UIDevice.CurrentDevice.BeginGeneratingDeviceOrientationNotifications(); }